generate exports before compile
This commit is contained in:
@@ -36,11 +36,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "cp ../../README.md . && cp ../../LICENSE . && tsup library/main.ts --target node16 --format cjs,esm --dts --sourcemap",
|
"build": "cp ../../README.md . && cp ../../LICENSE . && tsx scripts/generate-exports.ts && tsup",
|
||||||
"build-watch": "pnpm build --watch",
|
"build-watch": "pnpm build --watch",
|
||||||
"test-manual": "tsx watch ./scripts/manual-test.tsx",
|
"test-manual": "tsx watch ./scripts/manual-test.tsx",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit"
|
||||||
"release": "bash scripts/release.sh"
|
},
|
||||||
|
"tsup": {
|
||||||
|
"entry": [
|
||||||
|
"library/main.ts"
|
||||||
|
],
|
||||||
|
"sourcemap": true,
|
||||||
|
"target": "node16",
|
||||||
|
"format": [
|
||||||
|
"cjs",
|
||||||
|
"esm"
|
||||||
|
],
|
||||||
|
"dts": true
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "*",
|
"@types/node": "*",
|
||||||
|
|||||||
Reference in New Issue
Block a user