Skip to content

Commit 8df56fe

Browse files
gkalpakjasonaden
authored andcommitted
build(aio): prevent Windows error on serve-and-sync (angular#21806)
Running `yarn start` (which watches the `src/` directory) and `yarn docs-watch` (which cleans up files in `src/generated/api/`) often results in `ENOTEMPTY` errors. This commit solves it by ensuring that `yarn docs` has been completed before running `yarn start`. PR Close angular#21806
1 parent 676d9c2 commit 8df56fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aio/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"docs-lint": "eslint --ignore-path=\"tools/transforms/.eslintignore\" tools/transforms",
4545
"docs-test": "node tools/transforms/test.js",
4646
"tools-test": "./scripts/deploy-to-firebase.test.sh && yarn docs-test && yarn boilerplate:test && jasmine tools/ng-packages-installer/index.spec.js",
47-
"serve-and-sync": "concurrently --kill-others \"yarn docs-watch\" \"yarn start\"",
47+
"preserve-and-sync": "yarn docs",
48+
"serve-and-sync": "concurrently --kill-others \"yarn docs-watch --watch-only\" \"yarn start\"",
4849
"boilerplate:add": "node ./tools/examples/example-boilerplate add",
4950
"boilerplate:remove": "node ./tools/examples/example-boilerplate remove",
5051
"boilerplate:test": "node tools/examples/test.js",

0 commit comments

Comments
 (0)