From 4ab1227767dc5bd39434ad407594c314a60e6abd Mon Sep 17 00:00:00 2001 From: Syd Rosa Date: Mon, 8 Mar 2021 09:52:34 -0600 Subject: [PATCH 1/2] Fix: update package.json scripts for npm users The script for `dev:clean` is currently `yarn build && yarn clean` or something like this. If a user is utilizing npm as a package manager instead of yarn, or don't have yarn installed on their machine, they will continue to see error when running `npm run dev:clean`. --- packages/example/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/example/package.json b/packages/example/package.json index 099844662..80a48dc85 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -5,7 +5,7 @@ "license": "Apache 2.0", "scripts": { "dev": "gatsby develop -H 0.0.0.0", - "dev:clean": "yarn clean && yarn dev", + "dev:clean": "gatsby clean && gatsby develop -H 0.0.0.0", "build": "gatsby build", "build:clean": "yarn clean && gatsby build", "serve": "gatsby serve", From 66e17df00e3f49b9a89ab863fc31ee3617a2cdbf Mon Sep 17 00:00:00 2001 From: Syd Rosa Date: Mon, 8 Mar 2021 09:52:34 -0600 Subject: [PATCH 2/2] fix(package.json): update script to support npm --- packages/example/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/example/package.json b/packages/example/package.json index 099844662..80a48dc85 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -5,7 +5,7 @@ "license": "Apache 2.0", "scripts": { "dev": "gatsby develop -H 0.0.0.0", - "dev:clean": "yarn clean && yarn dev", + "dev:clean": "gatsby clean && gatsby develop -H 0.0.0.0", "build": "gatsby build", "build:clean": "yarn clean && gatsby build", "serve": "gatsby serve",