1.0.0 • Published 3 years ago

set-package-script v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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