Skip to content

Commit

Permalink
fix: include declarations in npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiphe committed May 13, 2023
1 parent a22da2b commit c8cfa83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage
node_modules
src
!dist/src
.*
jest.config.js
tsconfig.json
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"scripts": {
"prepare": "rm -rf dist && npm run build",
"build": "npm run build:esm && npm run build:cjs && npm run build:declarations",
"build": "npm run build:declarations && npm run build:esm && npm run build:cjs",
"build:declarations": "tsc && rm dist/src/*.spec.d.ts; rm -rf dist/examples && rm dist/src/testHelpers.d.ts",
"build:esm": "esbuild src/index.ts --outfile=dist/index.mjs --format=esm --bundle --target=es2020 --sourcemap --minify",
"build:cjs": "esbuild src/index.ts --outfile=dist/index.cjs --format=cjs --bundle --target=es2016 --sourcemap",
Expand Down

0 comments on commit c8cfa83

Please sign in to comment.