@angular/cli 11.2.0-rc.1 → 11.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,4 +4,4 @@ When a project name is not supplied, it will execute for all projects.
4
4
  The default linting tool is [TSLint](https://palantir.github.io/tslint/), and the default configuration is specified in the project's `tslint.json` file.
5
5
 
6
6
  **Note**: TSLint has been discontinued and support has been deprecated in the Angular CLI. The options shown below are for the deprecated TSLint builder.
7
- To opt-in using the community driven ESLint builder, see [angular-eslint](https://github.com/angular-eslint/angular-eslint#migrating-from-codelyzer-and-tslint) README.
7
+ To opt-in using the community driven ESLint builder, see [angular-eslint](https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslint) README.
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NewCommand = void 0;
4
4
  const schematic_command_1 = require("../models/schematic-command");
5
- const package_manager_1 = require("../utilities/package-manager");
6
5
  class NewCommand extends schematic_command_1.SchematicCommand {
7
6
  constructor() {
8
7
  super(...arguments);
@@ -14,7 +13,6 @@ class NewCommand extends schematic_command_1.SchematicCommand {
14
13
  return super.initialize(options);
15
14
  }
16
15
  async run(options) {
17
- await package_manager_1.ensureCompatibleNpm(this.context.root);
18
16
  // Register the version of the CLI in the registry.
19
17
  const packageJson = require('../package.json');
20
18
  const version = packageJson.version;
@@ -383,6 +383,13 @@ class SchematicCommand extends command_1.Command {
383
383
  error = false;
384
384
  }
385
385
  });
386
+ // Temporary compatibility check for NPM 7
387
+ if (collectionName === '@schematics/angular' && schematicName === 'ng-new') {
388
+ if (!input.skipInstall &&
389
+ (input.packageManager === undefined || input.packageManager === 'npm')) {
390
+ await package_manager_1.ensureCompatibleNpm(this.context.root);
391
+ }
392
+ }
386
393
  return new Promise(resolve => {
387
394
  workflow
388
395
  .execute({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/cli",
3
- "version": "11.2.0-rc.1",
3
+ "version": "11.2.0",
4
4
  "description": "CLI tool for Angular",
5
5
  "main": "lib/cli/index.js",
6
6
  "bin": {
@@ -28,11 +28,11 @@
28
28
  },
29
29
  "homepage": "https://github.com/angular/angular-cli",
30
30
  "dependencies": {
31
- "@angular-devkit/architect": "0.1102.0-rc.1",
32
- "@angular-devkit/core": "11.2.0-rc.1",
33
- "@angular-devkit/schematics": "11.2.0-rc.1",
34
- "@schematics/angular": "11.2.0-rc.1",
35
- "@schematics/update": "0.1102.0-rc.1",
31
+ "@angular-devkit/architect": "0.1102.0",
32
+ "@angular-devkit/core": "11.2.0",
33
+ "@angular-devkit/schematics": "11.2.0",
34
+ "@schematics/angular": "11.2.0",
35
+ "@schematics/update": "0.1102.0",
36
36
  "@yarnpkg/lockfile": "1.1.0",
37
37
  "ansi-colors": "4.1.1",
38
38
  "debug": "4.3.1",
@@ -54,12 +54,12 @@
54
54
  "ng-update": {
55
55
  "migrations": "@schematics/angular/migrations/migration-collection.json",
56
56
  "packageGroup": {
57
- "@angular/cli": "11.2.0-rc.1",
58
- "@angular-devkit/architect": "0.1102.0-rc.1",
59
- "@angular-devkit/build-angular": "0.1102.0-rc.1",
60
- "@angular-devkit/build-webpack": "0.1102.0-rc.1",
61
- "@angular-devkit/core": "11.2.0-rc.1",
62
- "@angular-devkit/schematics": "11.2.0-rc.1"
57
+ "@angular/cli": "11.2.0",
58
+ "@angular-devkit/architect": "0.1102.0",
59
+ "@angular-devkit/build-angular": "0.1102.0",
60
+ "@angular-devkit/build-webpack": "0.1102.0",
61
+ "@angular-devkit/core": "11.2.0",
62
+ "@angular-devkit/schematics": "11.2.0"
63
63
  }
64
64
  },
65
65
  "engines": {
@@ -67,13 +67,14 @@ async function ensureCompatibleNpm(root) {
67
67
  try {
68
68
  const version = child_process_1.execSync('npm --version', { encoding: 'utf8', stdio: 'pipe' }).trim();
69
69
  const major = Number((_a = version.match(/^(\d+)\./)) === null || _a === void 0 ? void 0 : _a[1]);
70
- if (major === 6) {
70
+ if (major <= 6) {
71
71
  return;
72
72
  }
73
73
  // tslint:disable-next-line: no-console
74
- console.error(`npm version ${version} detected.\n` +
75
- 'The Angular CLI currently requires npm version 6.\n\n' +
76
- 'Please install a compatible version to proceed (`npm install --global npm@6`).\n');
74
+ console.error(`npm version ${version} detected. The Angular CLI temporarily requires npm version 6 while upstream issues are addressed.\n\n` +
75
+ 'Please install a compatible version to proceed (`npm install --global npm@6`).\n' +
76
+ 'For additional information and alternative workarounds, please see ' +
77
+ 'https://github.com/angular/angular-cli/issues/19957#issuecomment-775407654');
77
78
  process.exit(3);
78
79
  }
79
80
  catch (_b) {