From 7e95657fd5cfe1a64b0cbfa54d727412095aee73 Mon Sep 17 00:00:00 2001 From: Drini Cami Date: Tue, 17 Sep 2019 17:12:22 -0700 Subject: [PATCH] [129/webpack] replace npm prepare step with preinstall Prepare was causing us to get this issue: https://github.com/yarnpkg/yarn/issues/7212 . preinstall is run before install but not before a publish; since we don't publish this package on npm anyways, this is fine. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 51a432266..fa4fe3eff 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ ] }, "scripts": { - "prepare": "npm run build", + "preinstall": "npm run build", "build": "npx webpack && npx sass ./src/css/BookReader.scss > ./BookReader/BookReader.css", "eslint": "eslint ./BookReader/BookReader.js", "lint": "eslint \"./**/*.js\"",