Skip to content

Commit

Permalink
fix import type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyaschorge committed Nov 22, 2024
1 parent 54b8cfa commit fa1bc48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
11 changes: 1 addition & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
{
"name": "@neynar/nodejs-sdk",
"version": "2.0.1",
"version": "2.0.2",
"description": "SDK to interact with Neynar APIs (https://docs.neynar.com/reference/quickstart)",
"main": "./build/index.js",
"types": "./build/index.d.ts",
"exports": {
".": {
"require": "./build/index.js",
"import": "./build/index.js",
"types": "./build/index.d.ts"
},
"./api": "./build/api/index.js",
"./hub-api": "./build/hub-api/index.js"
},
"files": [
"build/**/*"
],
Expand Down
8 changes: 3 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,8 @@
"module": "commonjs" /* Specify what module code is generated. */,
// "rootDir": "./", /* Specify the root folder within your source files. */
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
"baseUrl": "./" /* Specify the base directory to resolve non-relative module names. */,
"paths": {
"@neynar/nodejs-sdk/*": ["./src/*"]
} /* Specify a set of entries that re-map imports to additional lookup locations. */,
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
Expand Down Expand Up @@ -109,5 +107,5 @@
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["src/**/*"],
"exclude": ["scripts/**/*", "**/*.spec.ts", "node_modules", "build"]
"exclude": ["scripts/**/*", "**/*.spec.ts"]
}

0 comments on commit fa1bc48

Please sign in to comment.