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

Commit e1f1374

Browse files
committed
chore: build bundle during prepublishOnly phase
1 parent 8daa153 commit e1f1374

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
"test:interface:http-js": "lerna run test:interface:http-js",
2323
"test:interface:message-port-client": "lerna run test:interface:message-port-client",
2424
"coverage": "lerna run coverage",
25-
"build": "lerna run build",
25+
"build": "lerna run prepublishOnly",
2626
"clean": "lerna run clean",
2727
"lint": "lerna run lint",
2828
"dep-check": "lerna run dep-check",
29-
"configure-examples": "run-s configure-examples:* release:pre:reinstall release:pre:build",
29+
"configure-examples": "run-s configure-examples:* release:pre:reinstall release:pre:bundle",
3030
"configure-examples:pre:add-examples": "json -I -f ./lerna.json -e \"this.packages.push('examples/*'); this.packages = [...new Set(this.packages)]\"",
3131
"configure-examples:add-hoisted-modules": "json -I -f ./lerna.json -e \"this.command.bootstrap.nohoist = ['ipfs-css', 'tachyons']; this.command.bootstrap.nohoist = [...new Set(this.command.bootstrap.nohoist)]\"",
3232
"release": "run-s release:pre:* release:publish docker:release release:post:*",
3333
"release:pre:non-dirty-repo": "git diff --quiet",
3434
"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",
3535
"release:pre:reinstall": "npm run reset && npm i && rimraf package-lock.json packages/*/package-lock.json",
36-
"release:pre:build": "NODE_ENV=production npm run build -- --scope={ipfs,ipfs-core,ipfs-*client,ipfs-message-port-*}",
36+
"release:pre:bundle": "NODE_ENV=production npm run build -- --scope={ipfs,ipfs-core,ipfs-*client,ipfs-message-port-*}",
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",

packages/ipfs-client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"test": "aegir test",
3434
"lint": "aegir lint",
3535
"prepare": "aegir build --no-bundle",
36-
"build": "aegir build",
36+
"prepublishOnly": "aegir build",
3737
"coverage": "npx nyc -r html npm run test:node -- --bail",
3838
"clean": "rimraf ./dist",
3939
"dep-check": "aegir dep-check -i aegir -i rimraf"

packages/ipfs-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"scripts": {
4141
"lint": "aegir lint",
4242
"prepare": "aegir build --no-bundle",
43-
"build": "aegir build",
43+
"prepublishOnly": "aegir build",
4444
"test": "aegir test",
4545
"test:node": "aegir test -t node",
4646
"test:browser": "aegir test -t browser",

packages/ipfs-grpc-client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"test": "aegir test",
3434
"lint": "aegir lint",
3535
"prepare": "aegir build --no-bundle",
36-
"build": "aegir build",
36+
"prepublishOnly": "aegir build",
3737
"coverage": "npx nyc -r html npm run test:node -- --bail",
3838
"clean": "rimraf ./dist",
3939
"dep-check": "aegir dep-check -i aegir -i rimraf -i ipfs-grpc-protocol"

packages/ipfs-http-client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"url": "git+https://github.com/ipfs/js-ipfs.git"
3636
},
3737
"scripts": {
38-
"build": "aegir build",
38+
"prepublishOnly": "aegir build",
3939
"test": "aegir test",
4040
"test:node": "aegir test -t node",
4141
"test:browser": "aegir test -t browser",

packages/ipfs-message-port-client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test:interface:message-port-client": "npm run prepare && aegir test -t browser -f ./test/interface-message-port-client.js",
3535
"lint": "aegir lint",
3636
"prepare": "aegir build --no-bundle && aegir build -- --config ./test/util/webpack.config.js",
37-
"build": "aegir build && aegir build -- --config ./test/util/webpack.config.js",
37+
"prepublishOnly": "aegir build && aegir build -- --config ./test/util/webpack.config.js",
3838
"coverage": "npx nyc -r html npm run test:node -- --bail",
3939
"clean": "rimraf ./dist",
4040
"dep-check": "aegir dep-check -i ipfs-core -i rimraf -i ipfs-core-types"

packages/ipfs-message-port-server/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"test:firefox": "aegir test -t browser -t webworker -- --browsers FirefoxHeadless",
3838
"lint": "aegir lint",
3939
"prepare": "aegir build --no-bundle",
40-
"build": "aegir build",
40+
"prepublishOnly": "aegir build",
4141
"coverage": "npx nyc -r html npm run test:node -- --bail",
4242
"clean": "rimraf ./dist",
4343
"dep-check": "aegir dep-check -i rimraf"

packages/ipfs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"scripts": {
2525
"lint": "aegir lint",
2626
"prepare": "aegir build --no-bundle",
27-
"build": "aegir build",
27+
"prepublishOnly": "aegir build",
2828
"test": "echo 'Only interface tests live here'",
2929
"test:interface:core": "aegir test -f test/interface-core.js",
3030
"test:interface:client": "aegir test -f test/interface-client.js",

0 commit comments

Comments
 (0)