]> git.ardis.lu - csvio/commitdiff
Move prepack script to a JS file
authorArdis Lu <ardisglu@gmail.com>
Sun, 15 Jun 2025 08:47:11 +0000 (01:47 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 15 Jun 2025 08:47:11 +0000 (01:47 -0700)
To facilitate future more complex transformations that would be easier to manage in a code file.

npm/prepack.js [new file with mode: 0644]
package.json

diff --git a/npm/prepack.js b/npm/prepack.js
new file mode 100644 (file)
index 0000000..6242837
--- /dev/null
@@ -0,0 +1,3 @@
+import { execSync } from 'node:child_process';
+
+execSync('npm run types');
index 2c11dbb9e495862677875c2e568a2264e8218009..050048306817911202edb68ff541251ced2c08a4 100644 (file)
@@ -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",
This page took 0.037844 seconds and 4 git commands to generate.