Skip to content

Commit

Permalink
chore: workaround lerna + npm-run-all weirdness (#35595)
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed May 11, 2022
1 parent 3a87ea1 commit 8cc0970
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -139,7 +139,7 @@
"publish-rc": "node scripts/check-publish-access && node scripts/clear-package-dir prerelease --verbose && lerna publish prerelease --pre-dist-tag=rc --preid=rc --message=\"chore(release): Publish rc\"",
"publish-release": "node scripts/check-publish-access && node scripts/clear-package-dir patch --verbose && lerna publish patch",
"publish-premajor": "node scripts/release-next-major.js publish",
"test": "npm-run-all -s lint jest test:peril",
"test": "npm-run-all --npm-path npm -s lint jest test:peril",
"test:coverage": "jest --coverage",
"test:integration": "jest --config=integration-tests/jest.config.js",
"test:peril": "cd peril && yarn test",
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-cli/package.json
Expand Up @@ -96,12 +96,12 @@
"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 -p build:babel build:rollup",
"build": "npm-run-all --npm-path npm -p build:babel 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",
"watch:rollup": "npm run build:rollup -- -w",
"watch": "npm-run-all -p watch:babel watch:rollup",
"watch": "npm-run-all --npm-path npm -p watch:babel watch:rollup",
"postinstall": "node scripts/postinstall.js"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-graphiql-explorer/package.json
Expand Up @@ -6,12 +6,12 @@
"scripts": {
"build:app": "webpack --config ./src/app/webpack.config.js",
"build:babel": "babel src/index.js --out-dir . --ignore \"**/__tests__\"",
"build": "npm-run-all --parallel build:app build:babel",
"build": "npm-run-all --npm-path npm --parallel build:app 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",
"watch:babel": "npm run build:babel -- --watch",
"watch": "npm-run-all --parallel watch:app watch:babel"
"watch": "npm-run-all --npm-path npm --parallel watch:app watch:babel"
},
"keywords": [
"gatsby"
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-legacy-polyfills/package.json
Expand Up @@ -15,11 +15,11 @@
},
"license": "MIT",
"scripts": {
"build": "npm-run-all -p build:*",
"build": "npm-run-all --npm-path npm -p build:*",
"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",
"watch": "npm-run-all -p watch:*",
"watch": "npm-run-all --npm-path npm -p watch:*",
"watch:exclude": "npm run build:exclude && chokidar \"src/exclude.js\" -c \"npm run build:exclude\"",
"watch:polyfills": "microbundle -f iife -i src/polyfills.js --no-sourcemap --external=none --watch"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby-plugin-image/package.json
Expand Up @@ -2,13 +2,13 @@
"name": "gatsby-plugin-image",
"version": "2.15.0-next.1",
"scripts": {
"build": "npm-run-all -s clean -p build:*",
"build": "npm-run-all --npm-path npm -s clean -p build:*",
"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",
"build:browser": "microbundle -i src/index.browser.ts -f cjs,modern --jsx React.createElement -o dist/gatsby-image.browser --define SERVER=false",
"prepare": "yarn build",
"watch": "npm-run-all -s clean -p watch:*",
"watch": "npm-run-all --npm-path npm -s clean -p watch:*",
"watch:gatsby-node": "yarn build:gatsby-node --watch",
"watch:gatsby-ssr": "yarn build:gatsby-ssr watch",
"watch:server": "yarn build:server --no-compress watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-sharp/package.json
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 -s build typegen",
"prepare": "cross-env NODE_ENV=production npm-run-all --npm-path npm -s build typegen",
"watch": "babel -w src --out-file dist/index.js --ignore \"**/__tests__\" --extensions \".ts,.js\""
}
}

0 comments on commit 8cc0970

Please sign in to comment.