From 0e4da8b158a85af5160e2f4ba5eb097a8dc65cb1 Mon Sep 17 00:00:00 2001 From: Daniel Bankhead Date: Thu, 22 Aug 2024 10:19:57 -0700 Subject: [PATCH] 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 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index cfa52a392..bcaba5a1d 100644 --- a/package.json +++ b/package.json @@ -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",