Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): remove left-over `forkTypeChecker…
Browse files Browse the repository at this point in the history
…` option

(cherry picked from commit 4c8e032)
  • Loading branch information
alan-agius4 committed Apr 22, 2021
1 parent 7c288c8 commit 57ac7f3
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 14 deletions.
5 changes: 0 additions & 5 deletions packages/angular_devkit/build_angular/src/browser/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,6 @@
"description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
"default": false
},
"forkTypeChecker": {
"type": "boolean",
"description": "Run the TypeScript type checker in a forked process.",
"default": true
},
"budgets": {
"description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.",
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ describe('Browser Builder rebuilds', () => {
`,
);

const overrides = { watch: true, forkTypeChecker: false };
const overrides = { watch: true };
const logger = new logging.Logger('');
let logs: string[] = [];
logger.subscribe(e => logs.push(e.message));
Expand Down Expand Up @@ -344,7 +344,7 @@ describe('Browser Builder rebuilds', () => {
// `selector must be a string` errors on VE are part of the emit result, but on Ivy they only
// show up in getNgSemanticDiagnostics. Since getNgSemanticDiagnostics is only called on the
// type checker, we must disable it to get a failing fourth build with Ivy.
const overrides = { watch: true, aot: true, forkTypeChecker: false };
const overrides = { watch: true, aot: true };
const logger = new logging.Logger('');
let logs: string[] = [];
logger.subscribe(e => logs.push(e.message));
Expand Down
5 changes: 0 additions & 5 deletions packages/angular_devkit/build_angular/src/server/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,6 @@
"description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.",
"default": false
},
"forkTypeChecker": {
"type": "boolean",
"description": "Run the TypeScript type checker in a forked process.",
"default": true
},
"watch": {
"type": "boolean",
"description": "Run build when files change.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export interface BuildOptions {
serviceWorker?: boolean;
webWorkerTsConfig?: string;
statsJson: boolean;
forkTypeChecker: boolean;
hmr?: boolean;
main: string;
polyfills?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export function normalizeBrowserSchema(
sourceMap: normalizedSourceMapOptions,
preserveSymlinks: options.preserveSymlinks === undefined ? process.execArgv.includes('--preserve-symlinks') : options.preserveSymlinks,
statsJson: options.statsJson || false,
forkTypeChecker: options.forkTypeChecker || false,
budgets: options.budgets || [],
scripts: options.scripts || [],
styles: options.styles || [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export default function (): Rule {
for (const [, options] of allTargetOptions(target)) {
delete options.experimentalRollupPass;
delete options.lazyModules;
delete options.forkTypeChecker;
}
}
});
Expand Down

0 comments on commit 57ac7f3

Please sign in to comment.