Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit fdc19a4

Browse files
authored
fix: build before reinstalling example deps (#3341)
During the release, build the minified files and ts defs before installing example deps, otherwise the symlinking breaks cross-package dependencies.
1 parent 66f2081 commit fdc19a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
"release:pre:non-dirty-repo": "git diff --quiet",
3131
"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",
3232
"release:pre:ignore-changes-to-lerna-config": "git update-index --assume-unchanged ./lerna.json",
33+
"release:pre:build": "NODE_ENV=production npm run build -- --scope={ipfs-core,ipfs,ipfs-http-client,ipfs-message-port-*}",
3334
"release:pre:add-examples": "json -I -f ./lerna.json -e \"this.packages.push('examples/*')\"",
3435
"release:pre:add-hoisted-modules": "json -I -f ./lerna.json -e \"this.command.bootstrap.nohoist = ['ipfs-css', 'tachyons']\"",
35-
"release:pre:reinstall": "npm run reset && npm i && rm -rf package-lock.json **/*/package-lock.json",
36-
"release:pre:build": "NODE_ENV=production npm run build -- --scope={ipfs-core,ipfs,ipfs-http-client,ipfs-message-port-*}",
36+
"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",
3737
"release:publish": "lerna publish",
3838
"docker:release": "run-s docker:release:*",
3939
"docker:release:build": "docker build . --no-cache --tag js-ipfs:latest --file ./Dockerfile.latest",

0 commit comments

Comments
 (0)