From: Ardis Lu Date: Sun, 15 Jun 2025 08:47:11 +0000 (-0700) Subject: Move prepack script to a JS file X-Git-Tag: v0.1.2~12 X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=05d2a1ace6234900c54fbcc65a8f2e27cac76b4d;p=csvio Move prepack script to a JS file To facilitate future more complex transformations that would be easier to manage in a code file. --- diff --git a/npm/prepack.js b/npm/prepack.js new file mode 100644 index 0000000..6242837 --- /dev/null +++ b/npm/prepack.js @@ -0,0 +1,3 @@ +import { execSync } from 'node:child_process'; + +execSync('npm run types'); diff --git a/package.json b/package.json index 2c11dbb..0500483 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "test:large": "node --test --test-name-pattern=\"/^large:/\"", "test:coverage": "npm run test -- --experimental-test-coverage", "bench": "node ./benchmark/core.bench.js", - "prepack": "npm run types" + "prepack": "node ./npm/prepack.js" }, "devDependencies": { "@types/node": "^24.0.0",