1
0

add esbuild

This commit is contained in:
2024-02-21 19:59:14 +01:00
parent a9e83968b9
commit 93082884fa
4 changed files with 8 additions and 3 deletions

4
.gitignore vendored
View File

@@ -145,4 +145,6 @@ dist
# Custom # Custom
/index.js /index.js
/index.d.ts /index.d.ts
/utils.js
/utils.d.ts

View File

@@ -6,4 +6,6 @@ coverage/
vite.config.ts vite.config.ts
src/ src/
tests/ tests/
tsconfig.json tsconfig.json
utils.*
*.tgz

View File

@@ -9,7 +9,7 @@
"node": ">=18" "node": ">=18"
}, },
"scripts": { "scripts": {
"build": "tsc", "build": "tsc & esbuild --bundle --target=esnext --platform=neutral --outfile=index.js src/index.ts & wait",
"test": "vitest" "test": "vitest"
}, },
"repository": { "repository": {

View File

@@ -5,6 +5,7 @@
"target": "esnext", "target": "esnext",
"lib": ["esnext"], "lib": ["esnext"],
"declaration": true, "declaration": true,
"emitDeclarationOnly": true,
"strict": true, "strict": true,
"noImplicitAny": true, "noImplicitAny": true,
"strictNullChecks": true, "strictNullChecks": true,