From 963decbf95f245a5d9baf31e3eb6a2cfa45f564b Mon Sep 17 00:00:00 2001 From: 3y3 <3y3@ya.ru> Date: Sat, 2 Nov 2024 02:24:17 +0300 Subject: [PATCH] fix: Fix types publishing --- package.json | 2 +- tsconfig.publish.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 tsconfig.publish.json diff --git a/package.json b/package.json index 2242cce..ee1d78c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "types": "./lib/indexer/index.d.ts", "scripts": { "build": "npm run build:clean && npm run build:code", - "build:code": "node esbuild/build.mjs && tsc --emitDeclarationOnly", + "build:code": "node esbuild/build.mjs && tsc --emitDeclarationOnly -p tsconfig.publish.json", "build:clean": "rm -rf lib", "prepublishOnly": "npm run build", "test": "npm run build && jest", diff --git a/tsconfig.publish.json b/tsconfig.publish.json new file mode 100644 index 0000000..69e238e --- /dev/null +++ b/tsconfig.publish.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "baseUrl": "./src", + "outDir": "./lib" + }, + "include": ["src"] +}