Skip to content

Commit

Permalink
add esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
tsndr committed Feb 21, 2024
1 parent a9e8396 commit 9308288
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,6 @@ dist

# Custom
/index.js
/index.d.ts
/index.d.ts
/utils.js
/utils.d.ts
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ coverage/
vite.config.ts
src/
tests/
tsconfig.json
tsconfig.json
utils.*
*.tgz
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"node": ">=18"
},
"scripts": {
"build": "tsc",
"build": "tsc & esbuild --bundle --target=esnext --platform=neutral --outfile=index.js src/index.ts & wait",
"test": "vitest"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"target": "esnext",
"lib": ["esnext"],
"declaration": true,
"emitDeclarationOnly": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
Expand Down

0 comments on commit 9308288

Please sign in to comment.