build(docs-infra): avoid race condition in aio-builds-setup/
npm scripts (#25671)
Previously, due to multiple scripts re-building during `yarn dev` initialization, there could be race conditions that led to errors. This commit fixes it by ensuring `yarn build` is run once (before the main `yarn dev` script). PR Close #25671
This commit is contained in:
parent
5881f34787
commit
e3a73dff45
@ -7,17 +7,22 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prebuild": "yarn clean-dist",
|
"prebuild": "yarn clean-dist",
|
||||||
"build": "tsc",
|
"build": "yarn ~~build",
|
||||||
"build-watch": "yarn build --watch",
|
"prebuild-watch": "yarn prebuild",
|
||||||
|
"build-watch": "yarn ~~build-watch",
|
||||||
"clean-dist": "node --eval \"require('shelljs').rm('-rf', 'dist')\"",
|
"clean-dist": "node --eval \"require('shelljs').rm('-rf', 'dist')\"",
|
||||||
"dev": "concurrently --kill-others --raw --success first \"yarn build-watch\" \"yarn test-watch\"",
|
"predev": "yarn build",
|
||||||
|
"dev": "concurrently --kill-others --raw --success first \"yarn ~~build-watch\" \"yarn ~~test-watch\"",
|
||||||
"lint": "tslint --project tsconfig.json",
|
"lint": "tslint --project tsconfig.json",
|
||||||
"pre~~test-only": "yarn lint",
|
|
||||||
"~~test-only": "node dist/test",
|
|
||||||
"pretest": "yarn build",
|
"pretest": "yarn build",
|
||||||
"test": "yarn ~~test-only",
|
"test": "yarn ~~test-only",
|
||||||
"pretest-watch": "yarn build",
|
"pretest-watch": "yarn pretest",
|
||||||
"test-watch": "nodemon --exec \"yarn ~~test-only\" --watch dist"
|
"test-watch": "yarn ~~test-watch",
|
||||||
|
"~~build": "tsc",
|
||||||
|
"~~build-watch": "yarn ~~build --watch",
|
||||||
|
"pre~~test-only": "yarn lint",
|
||||||
|
"~~test-only": "node dist/test",
|
||||||
|
"~~test-watch": "nodemon --delay 1 --exec \"yarn ~~test-only\" --watch dist"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"body-parser": "^1.18.2",
|
"body-parser": "^1.18.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user