From 939b80ffcf5d964d7535cea216f00ba62aeaaace Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Fri, 8 Mar 2019 15:26:36 -0800 Subject: [PATCH 1/2] fix: remove "prepare" npm script that runs "dist" --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index a3fda99e..82b16931 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,6 @@ "now-start": "next start", "now-test": "npm-run-all -s now-build now-start", "postpublish": "script/postpublish", - "prepare": "npm run dist", "prepublishOnly": "script/prepublish", "publish-storybook": "script/publish-storybook", "start": "next dev", From 2ffa61f000c9edc3f94857d5cbdd2c55668e337e Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Fri, 8 Mar 2019 15:58:50 -0800 Subject: [PATCH 2/2] run dist before next build --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 82b16931..d5ca3268 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "lint": "npm-run-all -s lint-css lint-js", "lint-css": "stylelint --quiet --syntax scss src/**/*.scss", "lint-js": "eslint lib docs .storybook", - "now-build": "next build", + "now-build": "npm run dist && next build", "now-start": "next start", "now-test": "npm-run-all -s now-build now-start", "postpublish": "script/postpublish",