MCPcopy
hub / github.com/angular/angularfire / replaceSchematicVersions

Function replaceSchematicVersions

tools/build.ts:277–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275}
276
277async function replaceSchematicVersions() {
278 const root = await rootPackage;
279 const packagesPath = dest('schematics', 'versions.json');
280 const dependencies = await import(packagesPath);
281 Object.keys(dependencies.peerDependencies).forEach(name => {
282 dependencies.peerDependencies[name].version = root.dependencies[name] || root.devDependencies[name];
283 });
284 Object.keys(dependencies.firebaseFunctionsDependencies).forEach(name => {
285 dependencies.firebaseFunctionsDependencies[name].version = root.dependencies[name] || root.devDependencies[name];
286 });
287 return writeFile(packagesPath, JSON.stringify(dependencies, null, 2));
288}
289
290function spawnPromise(command: string, args: string[]) {
291 return new Promise<void>((resolve, reject) => spawn(command, args, { stdio: 'inherit' }).on('close', code => {

Callers 1

compileSchematicsFunction · 0.85

Calls 2

destFunction · 0.85
forEachMethod · 0.65

Tested by

no test coverage detected