Skip to content

Commit fb4de37

Browse files
committed
chore: don't use npm-run-all to build packages
1 parent 04f9509 commit fb4de37

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/gatsby-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"scripts": {
9696
"build:babel": "babel src --out-dir lib --ignore \"**/__tests__\" --ignore \"src/reporter/loggers/ink/**/*\" --extensions \".ts,.js,.tsx\"",
9797
"build:rollup": "rollup -c",
98-
"build": "npm-run-all --npm-path npm -p build:babel build:rollup",
98+
"build": "npm run build:babel && npm run build:rollup",
9999
"prepare": "cross-env NODE_ENV=production npm run build && npm run typegen",
100100
"typegen": "rimraf \"lib/**/*.d.ts\" && tsc --emitDeclarationOnly --declaration --declarationDir lib/",
101101
"watch:babel": "npm run build:babel -- --watch",

packages/gatsby-graphiql-explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"build:app": "webpack --config ./src/app/webpack.config.js",
88
"build:babel": "babel src/index.js --out-dir . --ignore \"**/__tests__\"",
9-
"build": "npm-run-all --npm-path npm --parallel build:app build:babel",
9+
"build": "npm run build:app && npm run build:babel",
1010
"prepare": "cross-env NODE_ENV=production npm run build",
1111
"test": "echo \"Error: no test specified\" && exit 1",
1212
"watch:app": "npm run build:app -- --watch",

packages/gatsby-legacy-polyfills/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"license": "MIT",
1717
"scripts": {
18-
"build": "npm-run-all --npm-path npm -p build:*",
18+
"build": "npm run build:exclude && npm run build:polyfills",
1919
"build:exclude": "cpy \"src/exclude.js\" \"./dist\"",
2020
"build:polyfills": "microbundle -f iife -i src/polyfills.js --no-sourcemap --external=none",
2121
"prepare": "cross-env NODE_ENV=production npm run build",

packages/gatsby-plugin-image/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gatsby-plugin-image",
33
"version": "2.15.0-next.2",
44
"scripts": {
5-
"build": "npm-run-all --npm-path npm -s clean -p build:*",
5+
"build": "npm run clean && npm run build:gatsby-node && npm run build:gatsby-ssr && npm run build:server && npm run build:browser",
66
"build:gatsby-node": "tsc --jsx react --downlevelIteration true --skipLibCheck true --esModuleInterop true --outDir dist/ src/gatsby-node.ts src/babel-plugin-parse-static-images.ts src/resolver-utils.ts src/types.d.ts -d --declarationDir dist/src",
77
"build:gatsby-ssr": "microbundle -i src/gatsby-ssr.tsx -f cjs -o ./[name].js --no-pkg-main --jsx React.createElement --no-compress --external=common-tags,react --no-sourcemap",
88
"build:server": "microbundle -f cjs,es --jsx React.createElement --define SERVER=true",

packages/gatsby-sharp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"scripts": {
3838
"build": "babel src --out-file dist/index.js --ignore \"**/__tests__\" --extensions \".ts,.js\"",
3939
"typegen": "tsc --emitDeclarationOnly --declaration --declarationDir dist/",
40-
"prepare": "cross-env NODE_ENV=production npm-run-all --npm-path npm -s build typegen",
40+
"prepare": "cross-env NODE_ENV=production npm run build && cross-env NODE_ENV=production npm run typegen",
4141
"watch": "babel -w src --out-file dist/index.js --ignore \"**/__tests__\" --extensions \".ts,.js\""
4242
}
4343
}

0 commit comments

Comments
 (0)