Skip to content

Commit fa1bc48

Browse files
committed
fix import type issue
1 parent 54b8cfa commit fa1bc48

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

package.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
11
{
22
"name": "@neynar/nodejs-sdk",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "SDK to interact with Neynar APIs (https://docs.neynar.com/reference/quickstart)",
55
"main": "./build/index.js",
66
"types": "./build/index.d.ts",
7-
"exports": {
8-
".": {
9-
"require": "./build/index.js",
10-
"import": "./build/index.js",
11-
"types": "./build/index.d.ts"
12-
},
13-
"./api": "./build/api/index.js",
14-
"./hub-api": "./build/hub-api/index.js"
15-
},
167
"files": [
178
"build/**/*"
189
],

tsconfig.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@
2828
"module": "commonjs" /* Specify what module code is generated. */,
2929
// "rootDir": "./", /* Specify the root folder within your source files. */
3030
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
31-
"baseUrl": "./" /* Specify the base directory to resolve non-relative module names. */,
32-
"paths": {
33-
"@neynar/nodejs-sdk/*": ["./src/*"]
34-
} /* Specify a set of entries that re-map imports to additional lookup locations. */,
31+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
3533
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3634
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
3735
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
@@ -109,5 +107,5 @@
109107
"skipLibCheck": true /* Skip type checking all .d.ts files. */
110108
},
111109
"include": ["src/**/*"],
112-
"exclude": ["scripts/**/*", "**/*.spec.ts", "node_modules", "build"]
110+
"exclude": ["scripts/**/*", "**/*.spec.ts"]
113111
}

0 commit comments

Comments
 (0)