From 8df56fe93aed33bba672619e57c3cd72094b3a8f Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Fri, 26 Jan 2018 18:05:52 +0200 Subject: [PATCH] build(aio): prevent Windows error on `serve-and-sync` (#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 #21806 --- aio/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aio/package.json b/aio/package.json index b32ad0a052..b83b23f518 100644 --- a/aio/package.json +++ b/aio/package.json @@ -44,7 +44,8 @@ "docs-lint": "eslint --ignore-path=\"tools/transforms/.eslintignore\" tools/transforms", "docs-test": "node tools/transforms/test.js", "tools-test": "./scripts/deploy-to-firebase.test.sh && yarn docs-test && yarn boilerplate:test && jasmine tools/ng-packages-installer/index.spec.js", - "serve-and-sync": "concurrently --kill-others \"yarn docs-watch\" \"yarn start\"", + "preserve-and-sync": "yarn docs", + "serve-and-sync": "concurrently --kill-others \"yarn docs-watch --watch-only\" \"yarn start\"", "boilerplate:add": "node ./tools/examples/example-boilerplate add", "boilerplate:remove": "node ./tools/examples/example-boilerplate remove", "boilerplate:test": "node tools/examples/test.js",