https://github.com/iansu/set-package-script
A replacement for the deprecated npm set-script command
https://github.com/iansu/set-package-script
Last synced: 7 months ago
JSON representation
A replacement for the deprecated npm set-script command
- Host: GitHub
- URL: https://github.com/iansu/set-package-script
- Owner: iansu
- Created: 2022-11-10T22:46:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T19:29:59.000Z (about 3 years ago)
- Last Synced: 2025-01-26T06:44:49.428Z (12 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# set-package-script
A replacement for the deprecated npm set-script command
## Usage
```sh
npx set-package-script [command]
```
## Examples
### Add a build script
```sh
npx set-package-script build "tsc -p tsconfig.json"
```
### Delete a prepare script
```sh
npx set-package-script prepare
```
If you don't provide a command and there's an existing script defined it will be removed