add esbuild
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -146,3 +146,5 @@ dist
|
|||||||
# Custom
|
# Custom
|
||||||
/index.js
|
/index.js
|
||||||
/index.d.ts
|
/index.d.ts
|
||||||
|
/utils.js
|
||||||
|
/utils.d.ts
|
||||||
@@ -7,3 +7,5 @@ vite.config.ts
|
|||||||
src/
|
src/
|
||||||
tests/
|
tests/
|
||||||
tsconfig.json
|
tsconfig.json
|
||||||
|
utils.*
|
||||||
|
*.tgz
|
||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user