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