From 05d2a1ace6234900c54fbcc65a8f2e27cac76b4d Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sun, 15 Jun 2025 01:47:11 -0700 Subject: [PATCH] Move prepack script to a JS file To facilitate future more complex transformations that would be easier to manage in a code file. --- npm/prepack.js | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 npm/prepack.js 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", -- 2.47.3