build: exclude build-worker file from formatting (#40012)

Exclude the generated build-worker.js file from formatting as it is
generated and not subject to formatting restrictions.

PR Close #40012
This commit is contained in:
Joey Perrott 2020-12-07 10:57:43 -08:00 committed by Misko Hevery
parent c043ecf317
commit c05169318e
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ export const format: FormatConfig = {
'!**/*.d.ts',
// Do not format generated ng-dev script
'!dev-infra/ng-dev.js',
'!dev-infra/build-worker.js',
// Do not format compliance test-cases since they must match generated code
'!packages/compiler-cli/test/compliance/test_cases/**/*.js',
]

View File

@ -100,7 +100,8 @@
// Ignore zone.js directory
// TODO(JiaLiPassion): add zone.js back later
"./packages/zone.js/**/*",
"./dev-infra/ng-dev.js"
"./dev-infra/ng-dev.js",
"./dev-infra/build-worker.js"
]
}
}