Skip to content

Commit a26eaa3

Browse files
fix: improve npm script lifecycle
1 parent 55a491e commit a26eaa3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"version": "0.0.1",
99
"description": "Monorepo for `@ast-grep/lang-*` packages",
1010
"scripts": {
11-
"preprepare": "pnpm -r copy-src",
11+
"postinstall": "pnpm -r compile && pnpm -r copy-src",
1212
"test": "echo \"Error: no test specified\" && exit 1"
1313
},
1414
"keywords": [],

packages/toml/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"copy-src": "node nursery.js copy",
88
"build": "tree-sitter build -o parser.so",
9-
"prepare": "node postinstall.js",
9+
"postinstall": "node postinstall.js",
1010
"test": "node nursery.js test"
1111
},
1212
"files": [

scripts/nursery/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"author": "",
99
"license": "ISC",
1010
"scripts": {
11-
"prepare": "tsc"
11+
"compile": "tsc"
1212
},
1313
"dependencies": {
1414
"@ast-grep/napi": "0.33.0",

0 commit comments

Comments
 (0)