From fa1bc486bff814e770b8f964af0f454c1502bd59 Mon Sep 17 00:00:00 2001 From: Shreyaschorge Date: Fri, 22 Nov 2024 21:45:13 +0530 Subject: [PATCH] fix import type issue --- package.json | 11 +---------- tsconfig.json | 8 +++----- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 8d398bfa..4b318f0a 100644 --- a/package.json +++ b/package.json @@ -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/**/*" ], diff --git a/tsconfig.json b/tsconfig.json index 39b14f26..55dc178b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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. */ @@ -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"] }