Skip to content

Commit 0e4da8b

Browse files
committed
feat: Add prepublishOnly script
Context: `prepublish` has been long deprecated and is not used in `npm publish` https://docs.npmjs.com/cli/v10/using-npm/scripts
1 parent 28e3334 commit 0e4da8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"lint:types": "tslint \"**/*.d.ts\" -e \"**/node_modules/**\" -t stylish -c config/tslint.json",
4141
"pages": "node scripts/pages",
4242
"prepublish": "cd cli && npm install && cd .. && npm run build",
43+
"prepublishOnly": "cd cli && npm install && cd .. && npm run build",
4344
"postinstall": "node scripts/postinstall",
4445
"prof": "node bench/prof",
4546
"test": "npm run test:sources && npm run test:types",

0 commit comments

Comments
 (0)