Skip to content

Commit

Permalink
feat: Add prepublishOnly script
Browse files Browse the repository at this point in the history
Context: `prepublish` has been long deprecated and is not used in `npm publish` https://docs.npmjs.com/cli/v10/using-npm/scripts
  • Loading branch information
danielbankhead committed Aug 22, 2024
1 parent 28e3334 commit 0e4da8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"lint:types": "tslint \"**/*.d.ts\" -e \"**/node_modules/**\" -t stylish -c config/tslint.json",
"pages": "node scripts/pages",
"prepublish": "cd cli && npm install && cd .. && npm run build",
"prepublishOnly": "cd cli && npm install && cd .. && npm run build",
"postinstall": "node scripts/postinstall",
"prof": "node bench/prof",
"test": "npm run test:sources && npm run test:types",
Expand Down

0 comments on commit 0e4da8b

Please sign in to comment.