Skip to content

Commit 573de60

Browse files
committed
docs: remove deprecated npm set-script
1 parent 3db28d4 commit 573de60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ npm install husky -D
1717
Edit `package.json > prepare` script and run it once:
1818

1919
```sh
20-
npm set-script prepare "husky install"
20+
npm pkg set scripts.prepare="husky install"
2121
npm run prepare
2222
```
2323

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ npm ci --omit=dev --ignore-scripts
262262
Alternatively, you can specifically disable `prepare` script with
263263

264264
```shell
265-
npm set-script prepare ""
265+
npm pkg delete scripts.prepare
266266
npm ci --omit=dev
267267
```
268268

0 commit comments

Comments
 (0)