set-package-script

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i set-package-script

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.69 kB

Total Files

3

Last publish

Collaborators

  • iansu