From 3df9f52c0a0926087b03a83c8b331da9cebc9b09 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 22 Oct 2020 13:48:12 +0100 Subject: [PATCH] fix: build before reinstalling example deps During the release, build the minified files and ts defs before installing example deps, otherwise the symlinking breaks cross-package dependencies. --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c417f387aa..bba0e10fa6 100644 --- a/package.json +++ b/package.json @@ -30,10 +30,10 @@ "release:pre:non-dirty-repo": "git diff --quiet", "release:pre:update-contributors": "aegir release --lint=false --test=false --bump=false --build=false --changelog=false --commit=false --tag=false --push=false --ghrelease=false --docs=false --publish=false", "release:pre:ignore-changes-to-lerna-config": "git update-index --assume-unchanged ./lerna.json", + "release:pre:build": "NODE_ENV=production npm run build -- --scope={ipfs-core,ipfs,ipfs-http-client,ipfs-message-port-*}", "release:pre:add-examples": "json -I -f ./lerna.json -e \"this.packages.push('examples/*')\"", "release:pre:add-hoisted-modules": "json -I -f ./lerna.json -e \"this.command.bootstrap.nohoist = ['ipfs-css', 'tachyons']\"", - "release:pre:reinstall": "npm run reset && npm i && rm -rf package-lock.json **/*/package-lock.json", - "release:pre:build": "NODE_ENV=production npm run build -- --scope={ipfs-core,ipfs,ipfs-http-client,ipfs-message-port-*}", + "release:pre:reinstall": "rm -rf node_modules */*/node_modules package-lock.json */*/package-lock.json && npm i && rm -rf package-lock.json */*/package-lock.json", "release:publish": "lerna publish", "docker:release": "run-s docker:release:*", "docker:release:build": "docker build . --no-cache --tag js-ipfs:latest --file ./Dockerfile.latest",