Skip to content

Commit

Permalink
refactor(@angular/cli): remove duplicate npmrc logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored and clydin committed Jun 16, 2021
1 parent 277b356 commit e680aa1
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 233 deletions.
7 changes: 3 additions & 4 deletions packages/angular/cli/src/commands/update/schematic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ import { logging, tags } from '@angular-devkit/core';
import { Rule, SchematicContext, SchematicsException, Tree } from '@angular-devkit/schematics';
import * as npa from 'npm-package-arg';
import * as semver from 'semver';
import { getNpmPackageJson } from './npm';
import { NpmRepositoryPackageJson } from './npm-package-json';
import { Dependency, JsonSchemaForNpmPackageJsonFiles } from './package-json';
import { Dependency, JsonSchemaForNpmPackageJsonFiles } from '../../../../utilities/package-json';
import { NpmRepositoryPackageJson, getNpmPackageJson } from '../../../../utilities/package-metadata';
import { Schema as UpdateSchema } from './schema';

type VersionRange = string & { __VERSION_RANGE: void };
Expand Down Expand Up @@ -818,7 +817,7 @@ export default function (options: UpdateSchema): Rule {
const allPackageMetadata = await Promise.all(
Array.from(npmDeps.keys()).map((depName) =>
getNpmPackageJson(depName, logger, {
registryUrl: options.registry,
registry: options.registry,
usingYarn,
verbose: options.verbose,
}),
Expand Down

This file was deleted.

166 changes: 0 additions & 166 deletions packages/angular/cli/src/commands/update/schematic/npm.ts

This file was deleted.

Loading

0 comments on commit e680aa1

Please sign in to comment.