Skip to content

Commit

Permalink
chore: don't use npm-run-all to build packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed May 24, 2022
1 parent 04f9509 commit fb4de37
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/gatsby-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"scripts": {
"build:babel": "babel src --out-dir lib --ignore \"**/__tests__\" --ignore \"src/reporter/loggers/ink/**/*\" --extensions \".ts,.js,.tsx\"",
"build:rollup": "rollup -c",
"build": "npm-run-all --npm-path npm -p build:babel build:rollup",
"build": "npm run build:babel && npm run build:rollup",
"prepare": "cross-env NODE_ENV=production npm run build && npm run typegen",
"typegen": "rimraf \"lib/**/*.d.ts\" && tsc --emitDeclarationOnly --declaration --declarationDir lib/",
"watch:babel": "npm run build:babel -- --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-graphiql-explorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"build:app": "webpack --config ./src/app/webpack.config.js",
"build:babel": "babel src/index.js --out-dir . --ignore \"**/__tests__\"",
"build": "npm-run-all --npm-path npm --parallel build:app build:babel",
"build": "npm run build:app && npm run build:babel",
"prepare": "cross-env NODE_ENV=production npm run build",
"test": "echo \"Error: no test specified\" && exit 1",
"watch:app": "npm run build:app -- --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-legacy-polyfills/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"scripts": {
"build": "npm-run-all --npm-path npm -p build:*",
"build": "npm run build:exclude && npm run build:polyfills",
"build:exclude": "cpy \"src/exclude.js\" \"./dist\"",
"build:polyfills": "microbundle -f iife -i src/polyfills.js --no-sourcemap --external=none",
"prepare": "cross-env NODE_ENV=production npm run build",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gatsby-plugin-image",
"version": "2.15.0-next.2",
"scripts": {
"build": "npm-run-all --npm-path npm -s clean -p build:*",
"build": "npm run clean && npm run build:gatsby-node && npm run build:gatsby-ssr && npm run build:server && npm run build:browser",
"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",
"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",
"build:server": "microbundle -f cjs,es --jsx React.createElement --define SERVER=true",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-sharp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"scripts": {
"build": "babel src --out-file dist/index.js --ignore \"**/__tests__\" --extensions \".ts,.js\"",
"typegen": "tsc --emitDeclarationOnly --declaration --declarationDir dist/",
"prepare": "cross-env NODE_ENV=production npm-run-all --npm-path npm -s build typegen",
"prepare": "cross-env NODE_ENV=production npm run build && cross-env NODE_ENV=production npm run typegen",
"watch": "babel -w src --out-file dist/index.js --ignore \"**/__tests__\" --extensions \".ts,.js\""
}
}

0 comments on commit fb4de37

Please sign in to comment.