Skip to content

Commit

Permalink
chore: build bundle during prepublishOnly phase
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 2, 2021
1 parent 8daa153 commit e1f1374
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
"test:interface:http-js": "lerna run test:interface:http-js",
"test:interface:message-port-client": "lerna run test:interface:message-port-client",
"coverage": "lerna run coverage",
"build": "lerna run build",
"build": "lerna run prepublishOnly",
"clean": "lerna run clean",
"lint": "lerna run lint",
"dep-check": "lerna run dep-check",
"configure-examples": "run-s configure-examples:* release:pre:reinstall release:pre:build",
"configure-examples": "run-s configure-examples:* release:pre:reinstall release:pre:bundle",
"configure-examples:pre:add-examples": "json -I -f ./lerna.json -e \"this.packages.push('examples/*'); this.packages = [...new Set(this.packages)]\"",
"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)]\"",
"release": "run-s release:pre:* release:publish docker:release release:post:*",
"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:reinstall": "npm run reset && npm i && rimraf package-lock.json packages/*/package-lock.json",
"release:pre:build": "NODE_ENV=production npm run build -- --scope={ipfs,ipfs-core,ipfs-*client,ipfs-message-port-*}",
"release:pre:bundle": "NODE_ENV=production npm run build -- --scope={ipfs,ipfs-core,ipfs-*client,ipfs-message-port-*}",
"release:publish": "lerna publish",
"docker:release": "run-s docker:release:*",
"docker:release:build": "docker build . --no-cache --tag js-ipfs:latest --file ./Dockerfile.latest",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"test": "aegir test",
"lint": "aegir lint",
"prepare": "aegir build --no-bundle",
"build": "aegir build",
"prepublishOnly": "aegir build",
"coverage": "npx nyc -r html npm run test:node -- --bail",
"clean": "rimraf ./dist",
"dep-check": "aegir dep-check -i aegir -i rimraf"
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"scripts": {
"lint": "aegir lint",
"prepare": "aegir build --no-bundle",
"build": "aegir build",
"prepublishOnly": "aegir build",
"test": "aegir test",
"test:node": "aegir test -t node",
"test:browser": "aegir test -t browser",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-grpc-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"test": "aegir test",
"lint": "aegir lint",
"prepare": "aegir build --no-bundle",
"build": "aegir build",
"prepublishOnly": "aegir build",
"coverage": "npx nyc -r html npm run test:node -- --bail",
"clean": "rimraf ./dist",
"dep-check": "aegir dep-check -i aegir -i rimraf -i ipfs-grpc-protocol"
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-http-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"url": "git+https://github.com/ipfs/js-ipfs.git"
},
"scripts": {
"build": "aegir build",
"prepublishOnly": "aegir build",
"test": "aegir test",
"test:node": "aegir test -t node",
"test:browser": "aegir test -t browser",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-message-port-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"test:interface:message-port-client": "npm run prepare && aegir test -t browser -f ./test/interface-message-port-client.js",
"lint": "aegir lint",
"prepare": "aegir build --no-bundle && aegir build -- --config ./test/util/webpack.config.js",
"build": "aegir build && aegir build -- --config ./test/util/webpack.config.js",
"prepublishOnly": "aegir build && aegir build -- --config ./test/util/webpack.config.js",
"coverage": "npx nyc -r html npm run test:node -- --bail",
"clean": "rimraf ./dist",
"dep-check": "aegir dep-check -i ipfs-core -i rimraf -i ipfs-core-types"
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-message-port-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"test:firefox": "aegir test -t browser -t webworker -- --browsers FirefoxHeadless",
"lint": "aegir lint",
"prepare": "aegir build --no-bundle",
"build": "aegir build",
"prepublishOnly": "aegir build",
"coverage": "npx nyc -r html npm run test:node -- --bail",
"clean": "rimraf ./dist",
"dep-check": "aegir dep-check -i rimraf"
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"scripts": {
"lint": "aegir lint",
"prepare": "aegir build --no-bundle",
"build": "aegir build",
"prepublishOnly": "aegir build",
"test": "echo 'Only interface tests live here'",
"test:interface:core": "aegir test -f test/interface-core.js",
"test:interface:client": "aegir test -f test/interface-client.js",
Expand Down

0 comments on commit e1f1374

Please sign in to comment.