Skip to content

Commit 935d9c2

Browse files
committed
remove name = "node_modules"
1 parent 62b009d commit 935d9c2

File tree

86 files changed

+5422
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+5422
-60
lines changed

e2e/bzlmod/BUILD.bazel

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ not_windows = select({
1212
})
1313

1414
npm_link_all_packages(
15-
name = "node_modules",
1615
imported_links = [
1716
npm_link_meaning_of_life,
1817
],

e2e/bzlmod/other_module/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@npm_other_module//:defs.bzl", "npm_link_all_packages")
22
load("@npm_other_module//:pyright/package_json.bzl", pyright = "bin")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
pyright.pyright_binary(
77
name = "pyright",

e2e/gyp_no_install_script/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
22
load("@aspect_rules_js//js:defs.bzl", "js_test")
33
load("@npm//:defs.bzl", "npm_link_all_packages")
44

5-
npm_link_all_packages(name = "node_modules")
5+
npm_link_all_packages()
66

77
js_test(
88
name = "test",

e2e/js_image_docker/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ load("@io_bazel_rules_docker//container:layer.bzl", "container_layer")
66
load("@io_bazel_rules_docker//contrib:test.bzl", "container_test")
77
load("@npm//:defs.bzl", "npm_link_all_packages")
88

9-
npm_link_all_packages(name = "node_modules")
9+
npm_link_all_packages()
1010

1111
platform(
1212
name = "arm64_linux",

e2e/js_image_oci/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
load("@npm//:defs.bzl", "npm_link_all_packages")
22

3-
npm_link_all_packages(name = "node_modules")
3+
npm_link_all_packages()

e2e/js_image_oci/pkg/a/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@aspect_rules_js//npm:defs.bzl", "npm_package")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
npm_package(
77
name = "pkg",

e2e/js_image_oci/pkg/b/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@aspect_rules_js//js:defs.bzl", "js_library")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
js_library(
77
name = "pkg",

e2e/js_run_devserver/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@bazel_skylib//rules:build_test.bzl", "build_test")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
build_test(
77
name = "test",

e2e/npm_link_package-esm/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ load("@bazel_skylib//rules:build_test.bzl", "build_test")
44
load("@foo//:@aspect-test/a/package_json.bzl", aspect_test_a_bin = "bin")
55
load("@npm//:defs.bzl", "npm_link_all_packages")
66

7-
npm_link_all_packages(name = "node_modules")
7+
npm_link_all_packages()
88

99
npm_link_package(
1010
name = "node_modules/@e2e/lib",

e2e/npm_link_package-rerooted/root/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ load("@bazel_skylib//rules:build_test.bzl", "build_test")
44
load("@foo//:@aspect-test/a/package_json.bzl", aspect_test_a_bin = "bin")
55
load("@npm//:defs.bzl", "npm_link_all_packages")
66

7-
npm_link_all_packages(name = "node_modules")
7+
npm_link_all_packages()
88

99
npm_link_package(
1010
name = "node_modules/@e2e/lib",

e2e/npm_link_package/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ load("@bazel_skylib//rules:build_test.bzl", "build_test")
44
load("@foo//:@aspect-test/a/package_json.bzl", aspect_test_a_bin = "bin")
55
load("@npm//:defs.bzl", "npm_link_all_packages")
66

7-
npm_link_all_packages(name = "node_modules")
7+
npm_link_all_packages()
88

99
npm_link_package(
1010
name = "node_modules/@e2e/lib",

e2e/npm_translate_lock/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
22
load("@bazel_skylib//rules:build_test.bzl", "build_test")
33
load("@npm//:defs.bzl", "npm_link_all_packages")
44

5-
npm_link_all_packages(name = "node_modules")
5+
npm_link_all_packages()
66

77
build_test(
88
name = "test",

e2e/npm_translate_lock_auth/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@bazel_skylib//rules:build_test.bzl", "build_test")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
build_test(
77
name = "test",

e2e/npm_translate_lock_disable_hooks/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
22
load("@bazel_skylib//rules:build_test.bzl", "build_test")
33
load("@npm//:defs.bzl", "npm_link_all_packages")
44

5-
npm_link_all_packages(name = "node_modules")
5+
npm_link_all_packages()
66

77
build_test(
88
name = "test",

e2e/npm_translate_lock_empty/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
22
load("@bazel_skylib//rules:build_test.bzl", "build_test")
33
load("@npm//:defs.bzl", "npm_link_all_packages")
44

5-
npm_link_all_packages(name = "node_modules")
5+
npm_link_all_packages()
66

77
build_test(
88
name = "test",

e2e/npm_translate_lock_exclude_package_contents/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@npm//:defs.bzl", "npm_link_all_packages")
22

3-
npm_link_all_packages(name = "node_modules")
3+
npm_link_all_packages()
44

55
sh_test(
66
name = "test_sh",

e2e/npm_translate_lock_git+ssh/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@bazel_skylib//rules:build_test.bzl", "build_test")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
build_test(
77
name = "test",

e2e/npm_translate_lock_partial_clone/root/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@bazel_skylib//rules:build_test.bzl", "build_test")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
build_test(
77
name = "test",

e2e/npm_translate_lock_replace_packages/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ load("@aspect_rules_js//npm:defs.bzl", "npm_package")
44
load("@bazel_skylib//rules:build_test.bzl", "build_test")
55
load("@npm//:defs.bzl", "npm_link_all_packages")
66

7-
npm_link_all_packages(name = "node_modules")
7+
npm_link_all_packages()
88

99
js_test(
1010
name = "test",

e2e/npm_translate_lock_subdir_patch/subdir/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@aspect_rules_js//js:defs.bzl", "js_test")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
js_test(
77
name = "test",

e2e/npm_translate_package_lock/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@bazel_skylib//rules:build_test.bzl", "build_test")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
build_test(
77
name = "test",

e2e/npm_translate_yarn_lock/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@bazel_skylib//rules:build_test.bzl", "build_test")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
build_test(
77
name = "test",

e2e/package_json_module/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@npm//:defs.bzl", "npm_link_all_packages")
22
load("@npm//:mocha/package_json.bzl", mocha_bin = "bin")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
mocha_bin.mocha_test(
77
name = "test",

e2e/patch_from_repo/BUILD.bazel

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@bazel_skylib//rules:build_test.bzl", "build_test")
22
load("@npm//:defs.bzl", "npm_link_all_packages")
33

4-
npm_link_all_packages(name = "node_modules")
4+
npm_link_all_packages()
55

66
build_test(
77
name = "test",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
load("@bazel_skylib//rules:build_test.bzl", "build_test")
2+
load("@docusaurus-direct-peer-v6//:defs.bzl", docusaurus_direct_with_peers_v6_link_all = "npm_link_all_packages")
3+
4+
exports_files(["pnpm-lock.yaml"])
5+
6+
docusaurus_direct_with_peers_v6_link_all()
7+
8+
build_test(
9+
name = "docusaurus_direct_with_peers",
10+
targets = [
11+
":node_modules",
12+
":node_modules/@docusaurus/module-type-aliases",
13+
],
14+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"pnpm": {
3+
"onlyBuiltDependencies": []
4+
}
5+
}

0 commit comments

Comments
 (0)