Skip to content

Commit

Permalink
fix: import bug
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Aug 3, 2024
1 parent e2a5dac commit 82bf84e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
16 changes: 8 additions & 8 deletions bin/scratch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dotenv/config'

import restoreCursor from 'restore-cursor'

import { WikipediaClient } from '../src'
import { SerperClient } from '../src'

/**
* Scratch pad for testing.
Expand Down Expand Up @@ -131,14 +131,14 @@ async function main() {
// json: true
// })

// const serper = new SerpAPIClient()
// const res = await serper.search({
// q: 'elon musk'
// })
const wikipedia = new WikipediaClient()
const res = await wikipedia.getPageSummary({
title: 'Elon_musk'
const serper = new SerperClient()
const res = await serper.search({
q: 'elon musk'
})
// const wikipedia = new WikipediaClient()
// const res = await wikipedia.getPageSummary({
// title: 'Elon_musk'
// })

console.log(JSON.stringify(res, null, 2))
}
Expand Down
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@
"types": "./dist/services/twitter/index.d.ts",
"import": "./dist/services/twitter/index.js",
"default": "./dist/services/twitter/index.js"
},
"./github": {
"types": "./dist/services/github-client.d.ts",
"import": "./dist/services/github-client.js",
"default": "./dist/services/github-client.js"
},
"./wikidata": {
"types": "./dist/services/wikidata-client.d.ts",
"import": "./dist/services/wikidata-client.js",
"default": "./dist/services/wikidata-client.js"
}
},
"files": [
Expand Down
2 changes: 0 additions & 2 deletions src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export * from './dexa-client'
export * from './diffbot-client'
export * from './exa-client'
export * from './firecrawl-client'
export * from './github-client'
export * from './hacker-news-client'
export * from './hunter-client'
export * from './jina-client'
Expand All @@ -24,6 +23,5 @@ export * from './social-data-client'
export * from './tavily-client'
export * from './twilio-client'
export * from './weather-client'
export * from './wikidata-client'
export * from './wikipedia-client'
export * from './wolfram-alpha-client'
2 changes: 2 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export default defineConfig([
'src/sdks/langchain.ts',
'src/sdks/llamaindex.ts',
'src/services/twitter/index.ts',
'src/services/github-client.ts',
'src/services/wikidata-client.ts',
'src/tools/calculator.ts',
'src/tools/e2b.ts'
],
Expand Down

0 comments on commit 82bf84e

Please sign in to comment.