From 573de60f674c85efc0665f27cb16e01652c23d8f Mon Sep 17 00:00:00 2001 From: typicode Date: Tue, 8 Nov 2022 05:07:09 +0100 Subject: [PATCH] docs: remove deprecated npm set-script --- .github/README.md | 2 +- docs/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/README.md b/.github/README.md index 7ceca62e7..63615beb8 100644 --- a/.github/README.md +++ b/.github/README.md @@ -17,7 +17,7 @@ npm install husky -D Edit `package.json > prepare` script and run it once: ```sh -npm set-script prepare "husky install" +npm pkg set scripts.prepare="husky install" npm run prepare ``` diff --git a/docs/README.md b/docs/README.md index 0ed7babd2..3848d5ff6 100644 --- a/docs/README.md +++ b/docs/README.md @@ -262,7 +262,7 @@ npm ci --omit=dev --ignore-scripts Alternatively, you can specifically disable `prepare` script with ```shell -npm set-script prepare "" +npm pkg delete scripts.prepare npm ci --omit=dev ```