From 2dc769f4109ecf36136993414918f48438abaa1f Mon Sep 17 00:00:00 2001 From: Alan Agius <alanagius@google.com> Date: Fri, 15 Dec 2023 11:46:08 +0000 Subject: [PATCH] refactor(@angular/cli): remove no longer relevant regexps from `ng version` checks Bazel and NgUniversal packages information is not needed in version 17. (cherry picked from commit 30efb76c460955399c6c920451a5241736ebd15e) --- packages/angular/cli/src/commands/version/cli.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/angular/cli/src/commands/version/cli.ts b/packages/angular/cli/src/commands/version/cli.ts index 1595f3874ad3..fe029b6c1321 100644 --- a/packages/angular/cli/src/commands/version/cli.ts +++ b/packages/angular/cli/src/commands/version/cli.ts @@ -6,8 +6,8 @@ * found in the LICENSE file at https://angular.io/license */ -import nodeModule from 'module'; -import { resolve } from 'path'; +import nodeModule from 'node:module'; +import { resolve } from 'node:path'; import { Argv } from 'yargs'; import { CommandModule, CommandModuleImplementation } from '../../command-builder/command-module'; import { colors } from '../../utilities/color'; @@ -28,9 +28,7 @@ const SUPPORTED_NODE_MAJORS = [18, 20]; const PACKAGE_PATTERNS = [ /^@angular\/.*/, /^@angular-devkit\/.*/, - /^@bazel\/.*/, /^@ngtools\/.*/, - /^@nguniversal\/.*/, /^@schematics\/.*/, /^rxjs$/, /^typescript$/,