Skip to content

build: rename npm2 to npm as rules_nodejs based npm workspace has been removed#30179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
load("@aspect_rules_ts//ts:defs.bzl", rules_js_tsconfig = "ts_config")
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "copy_to_bin")

package(default_visibility = ["//visibility:public"])
Expand Down
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line numberDiff line numberDiff line change
Expand Up@@ -130,7 +130,7 @@ esbuild_repositories(
load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock")

npm_translate_lock(
name = "npm2",
name = "npm",
custom_postinstalls = {
# TODO: Standardize browser management for `rules_js`
"webdriver-manager": "node ./bin/webdriver-manager update --standalone false --gecko false --versions.chrome 106.0.5249.21",
Expand DownExpand Up@@ -178,7 +178,7 @@ npm_translate_lock(
verify_node_modules_ignored = "//:.bazelignore",
)

load("@npm2//:repositories.bzl", "npm_repositories")
load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

Expand Down
2 changes: 1 addition & 1 deletion modules/testing/builder/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "jasmine_test", "ts_project")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/build/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
load("@devinfra//bazel/api-golden:index_rjs.bzl", "api_golden_test_npm_package")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//:constants.bzl", "BASELINE_DATE")
load("//tools:defaults.bzl", "copy_to_bin", "jasmine_test", "npm_package", "ts_project")
load("//tools:ts_json_schema.bzl", "ts_json_schema")
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/cli/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.dev/license

load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "jasmine_test", "npm_package", "ts_project")
load("//tools:ng_cli_schema_generator.bzl", "cli_json_schema")
load("//tools:ts_json_schema.bzl", "ts_json_schema")
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/pwa/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.dev/license

load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "jasmine_test", "npm_package", "ts_project")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

Expand Down
2 changes: 1 addition & 1 deletion packages/angular/ssr/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
load("@devinfra//bazel/api-golden:index_rjs.bzl", "api_golden_test_npm_package")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@rules_pkg//:pkg.bzl", "pkg_tar")
load("//tools:defaults.bzl", "ng_package", "ts_project")

Expand Down
2 changes: 1 addition & 1 deletion packages/angular/ssr/third_party/beasties/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
load("@aspect_rules_js//js:defs.bzl", "js_library")
load("@npm2//:rollup/package_json.bzl", rollup = "bin")
load("@npm//:rollup/package_json.bzl", rollup = "bin")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/architect/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
# found in the LICENSE file at https://angular.dev/license

load("@devinfra//bazel/api-golden:index_rjs.bzl", "api_golden_test_npm_package")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "jasmine_test", "npm_package", "ts_project")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/architect_cli/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "npm_package", "ts_project")

# Copyright Google Inc. All Rights Reserved.
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_angular/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
# found in the LICENSE file at https://angular.dev/license

load("@devinfra//bazel/api-golden:index_rjs.bzl", "api_golden_test_npm_package")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "copy_to_bin", "jasmine_test", "npm_package", "ts_project")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_webpack/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
# found in the LICENSE file at https://angular.dev/license

load("@devinfra//bazel/api-golden:index_rjs.bzl", "api_golden_test_npm_package")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "jasmine_test", "npm_package", "ts_project")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/core/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
load("@devinfra//bazel/api-golden:index_rjs.bzl", "api_golden_test_npm_package")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "jasmine_test", "npm_package", "ts_project")

# Copyright Google Inc. All Rights Reserved.
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/schematics/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
load("@devinfra//bazel/api-golden:index_rjs.bzl", "api_golden_test_npm_package")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "jasmine_test", "npm_package", "ts_project")

# Copyright Google Inc. All Rights Reserved.
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/schematics_cli/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "npm_package", "ts_project")
load("//tools:ts_json_schema.bzl", "ts_json_schema")

Expand Down
2 changes: 1 addition & 1 deletion packages/ngtools/webpack/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,7 +4,7 @@
# found in the LICENSE file at https://angular.dev/license

load("@devinfra//bazel/api-golden:index_rjs.bzl", "api_golden_test_npm_package")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "jasmine_test", "npm_package", "ts_project")

licenses(["notice"])
Expand Down
2 changes: 1 addition & 1 deletion packages/schematics/angular/BUILD.bazel
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,7 +3,7 @@
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file at https://angular.dev/license

load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//:constants.bzl", "BASELINE_DATE")
load("//tools:defaults.bzl", "copy_to_bin", "jasmine_test", "npm_package", "ts_project")
load("//tools:ts_json_schema.bzl", "ts_json_schema")
Expand Down
2 changes: 1 addition & 1 deletion tests/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")

# Copyright Google Inc. All Rights Reserved.
#
Expand Down
2 changes: 1 addition & 1 deletion tests/legacy-cli/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
load("@aspect_bazel_lib//lib:directory_path.bzl", "directory_path")
load("@npm2//:rollup/package_json.bzl", rollup = "bin")
load("@npm//:rollup/package_json.bzl", rollup = "bin")
load("//tools:defaults.bzl", "ts_project")
load(":e2e.bzl", "e2e_suites")

Expand Down
2 changes: 1 addition & 1 deletion tools/baseline_browserslist/BUILD.bazel
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
load("@aspect_rules_js//js:defs.bzl", "js_binary")
load("@aspect_rules_ts//ts:defs.bzl", "ts_config")
load("@npm2//:defs.bzl", "npm_link_all_packages")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("//tools:defaults.bzl", "jasmine_test", "ts_project")

npm_link_all_packages()
Expand Down
Loading
close