Run build on install as yarn workspaces don't handle install lifecycle

This commit is contained in:
Zalmoxisus 2018-12-13 03:31:17 +02:00
parent b4f0c59ebd
commit f23cebaa2a
3 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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": [

View File

@ -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": [