From 701510b0bd2b1ac3474bbb4120907dc69e173cd6 Mon Sep 17 00:00:00 2001 From: Drini Cami Date: Thu, 19 Sep 2019 08:12:33 -0700 Subject: [PATCH] [129/webpack] TMP: use npm `preinstall` step instead of `prepare` We're experiencing what looks like https://github.com/yarnpkg/yarn/issues/7212 when we try to install the bookreader repo through yarn. It says the prepare step on a git:// referenced dependency (which is what we use) might be causing this error (although this error doesn't happen at all when run on @jbuckner's machine with that exact setup :/). Trying the `preinstall` hook to see if that fixes things. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index c06a7c516..fa4fe3eff 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ ] }, "scripts": { + "preinstall": "npm run build", "build": "npx webpack && npx sass ./src/css/BookReader.scss > ./BookReader/BookReader.css", "eslint": "eslint ./BookReader/BookReader.js", "lint": "eslint \"./**/*.js\"",