Skip to content

Commit

Permalink
fix: Fix types publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Nov 1, 2024
1 parent 3a6a4ba commit 963decb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.publish.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"baseUrl": "./src",
"outDir": "./lib"
},
"include": ["src"]
}

0 comments on commit 963decb

Please sign in to comment.