@@ -26,7 +26,6 @@ import {TargetedEntryPointFinder} from './entry_point_finder/targeted_entry_poin
26
26
import { getAnalyzeEntryPointsFn } from './execution/analyze_entry_points' ;
27
27
import { Executor } from './execution/api' ;
28
28
import { ClusterExecutor } from './execution/cluster/executor' ;
29
- import { ClusterPackageJsonUpdater } from './execution/cluster/package_json_updater' ;
30
29
import { getCreateCompileFn } from './execution/create_compile_function' ;
31
30
import { SingleProcessExecutorAsync , SingleProcessExecutorSync } from './execution/single_process_executor' ;
32
31
import { CreateTaskCompletedCallback , TaskProcessingOutcome } from './execution/tasks/api' ;
@@ -105,11 +104,7 @@ export function mainNgcc({
105
104
return ;
106
105
}
107
106
108
- // NOTE: To avoid file corruption, ensure that each `ngcc` invocation only creates _one_ instance
109
- // of `PackageJsonUpdater` that actually writes to disk (across all processes).
110
- // This is hard to enforce automatically, when running on multiple processes, so needs to be
111
- // enforced manually.
112
- const pkgJsonUpdater = getPackageJsonUpdater ( inParallel , fileSystem ) ;
107
+ const pkgJsonUpdater = new DirectPackageJsonUpdater ( fileSystem ) ;
113
108
114
109
const analyzeEntryPoints = getAnalyzeEntryPointsFn (
115
110
logger , finder , fileSystem , supportedPropertiesToConsider , compileAllFormats ,
@@ -151,11 +146,6 @@ function ensureSupportedProperties(properties: string[]): EntryPointJsonProperty
151
146
return supportedProperties ;
152
147
}
153
148
154
- function getPackageJsonUpdater ( inParallel : boolean , fs : FileSystem ) : PackageJsonUpdater {
155
- const directPkgJsonUpdater = new DirectPackageJsonUpdater ( fs ) ;
156
- return inParallel ? new ClusterPackageJsonUpdater ( directPkgJsonUpdater ) : directPkgJsonUpdater ;
157
- }
158
-
159
149
function getCreateTaskCompletedCallback (
160
150
pkgJsonUpdater : PackageJsonUpdater , errorOnFailedEntryPoint : boolean , logger : Logger ,
161
151
fileSystem : FileSystem ) : CreateTaskCompletedCallback {
0 commit comments