set-package-script
v1.0.0
Published
A replacement for the deprecated npm set-script command
Downloads
2
Readme
set-package-script
A replacement for the deprecated npm set-script command
Usage
npx set-package-script <script-name> [command]
Examples
Add a build script
npx set-package-script build "tsc -p tsconfig.json"
Delete a prepare script
npx set-package-script prepare
If you don't provide a command and there's an existing script defined it will be removed