From f23cebaa2a53a120bab04aa8b86b2872372de0dd Mon Sep 17 00:00:00 2001 From: Zalmoxisus Date: Thu, 13 Dec 2018 03:31:17 +0200 Subject: [PATCH] Run build on install as yarn workspaces don't handle install lifecycle --- package.json | 2 +- packages/redux-devtools-instrument/package.json | 2 +- packages/redux-devtools/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 59509515..bad6fc19 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ }, "scripts": { "lerna": "lerna", - "prepublishOnly": "lerna run prepublishOnly", + "prepare": "lerna run prepare --since master --stream --sort -- --scripts-prepend-node-path", "publish": "lerna publish", "canary": "lerna publish --canary preminor --npm-tag alpha", "next": "lerna publish --bump prerelease --npm-tag next", diff --git a/packages/redux-devtools-instrument/package.json b/packages/redux-devtools-instrument/package.json index 03b2d815..a03b3337 100644 --- a/packages/redux-devtools-instrument/package.json +++ b/packages/redux-devtools-instrument/package.json @@ -10,7 +10,7 @@ "test": "NODE_ENV=test mocha --compilers js:babel-core/register --recursive", "test:watch": "NODE_ENV=test mocha --compilers js:babel-core/register --recursive --watch", "test:cov": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive", - "postinstall": "npm run build", + "prepare": "npm run build", "prepublishOnly": "npm run lint && npm run test && npm run clean && npm run build" }, "files": [ diff --git a/packages/redux-devtools/package.json b/packages/redux-devtools/package.json index 45fdc37c..75f620ad 100644 --- a/packages/redux-devtools/package.json +++ b/packages/redux-devtools/package.json @@ -10,7 +10,7 @@ "test": "cross-env NODE_ENV=test mocha --compilers js:babel-core/register --recursive", "test:watch": "cross-env NODE_ENV=test mocha --compilers js:babel-core/register --recursive --watch", "test:cov": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha -- --recursive", - "postinstall": "npm run build", + "prepare": "npm run build", "prepublishOnly": "npm run lint && npm run test && npm run clean && npm run build" }, "files": [