generate exports before compile

This commit is contained in:
itsMapleLeaf
2022-08-05 11:41:08 -05:00
parent 339bf5a24f
commit f97b2f4816

View File

@@ -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": "*",