Skip to content

Commit 0b1f0b6

Browse files
committed
refactor: align pnpm package store with lockfile
Signed-off-by: Jason Bedard <[email protected]>
1 parent 70a6bdb commit 0b1f0b6

Some content is hidden

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

49 files changed

+3998
-4074
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ use_repo(
222222
"npm__rollup__2.70.2",
223223
"npm__rollup__2.70.2__links",
224224
"npm__unused__0.2.2__links",
225-
"npm__webpack-bundle-analyzer__4.5.0_bufferutil_4.0.8",
225+
"npm__webpack-bundle-analyzer_4.5.0_bufferutil_4.0.8",
226226
)
227227

228228
# As an example, manually import a package using explicit coordinates.

e2e/pnpm_lockfiles/MODULE.bazel

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,21 +72,21 @@ npm = use_extension(
7272
"lock-%s__rollup__3.29.4__links" % version,
7373

7474
# Dep only referenced via npm: should have the real package name in the repo name
75-
"lock-%s__at_types_sizzle__2.3.9" % version,
76-
"lock-%s__at_types_sizzle__2.3.9__links" % version,
75+
# "lock-%s__at_types_sizzle_2.3.9" % version,
76+
# "lock-%s__at_types_sizzle_2.3.9__links" % version,
7777

7878
# Dep with peers
79-
"lock-%s__at_aspect-test_d__2.0.0_at_aspect-test_c_2.0.2" % version,
80-
"lock-%s__at_aspect-test_d__2.0.0_at_aspect-test_c_2.0.2__links" % version,
79+
# "lock-%s__at_aspect-test_d_2.0.0_aspect-test_c_2.0.2" % version,
80+
# "lock-%s__at_aspect-test_d_2.0.0_aspect-test_c_2.0.2__links" % version,
8181

8282
# Deep with many peers
83-
"lock-%s__at_rollup_plugin-typescript__8.2.1_%s" % (
84-
version,
85-
"3vgsug3mjv7wvue74swjdxifxy" if version == "v54" else "626159424" if version == "v90" else "1813138439",
86-
),
83+
# "lock-%s__at_rollup_plugin-typescript_8.2.1_%s" % (
84+
# version,
85+
# "3vgsug3mjv7wvue74swjdxifxy" if version == "v54" else "626159424" if version == "v90" else "1813138439",
86+
# ),
8787

8888
# Dep with patch
89-
"lock-%s__meaning-of-life__1.0.0_o3deharooos255qt5xdujc3cuq" % version,
89+
# "lock-%s__meaning-of-life_1.0.0_o3deharooos255qt5xdujc3cuq" % version,
9090
)
9191
for version in PNPM_LOCK_VERSIONS
9292
]

e2e/pnpm_lockfiles/lockfile-test.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def lockfile_test(npm_link_all_packages, name = None):
110110
# npm: alias to a package that has many peers
111111
":node_modules/rollup-plugin-with-peers",
112112
# underlying repo for the many-peers package
113-
"@%s__at_rollup_plugin-typescript__8.2.1_%s//:pkg" % (lock_repo, "3vgsug3mjv7wvue74swjdxifxy" if lock_version == "v54" else "626159424" if lock_version == "v90" else "1813138439"),
113+
# "@%s__at_rollup_plugin-typescript_8.2.1_%s//:pkg" % (lock_repo, "3vgsug3mjv7wvue74swjdxifxy" if lock_version == "v54" else "626159424" if lock_version == "v90" else "1813138439"),
114114

115115
# uuv 'hasBin'
116116
":node_modules/uvu",
@@ -164,7 +164,7 @@ def lockfile_test(npm_link_all_packages, name = None):
164164
# npm: alias to package not listed elsewhere
165165
":node_modules/alias-only-sizzle",
166166
":.aspect_rules_js/node_modules/@[email protected]",
167-
"@%s__at_types_sizzle__2.3.9//:pkg" % lock_repo,
167+
# "@%s__at_types_sizzle__2.3.9//:pkg" % lock_repo if lock_version == "v90" else "[email protected]",
168168

169169
# Targets within the virtual store...
170170
# Direct dep targets
@@ -189,14 +189,14 @@ def lockfile_test(npm_link_all_packages, name = None):
189189

190190
# Patched dependencies
191191
":.aspect_rules_js/node_modules/[email protected]_o3deharooos255qt5xdujc3cuq",
192-
"@%s__meaning-of-life__1.0.0_o3deharooos255qt5xdujc3cuq//:pkg" % lock_repo,
192+
# "@%s__meaning-of-life__1.0.0_o3deharooos255qt5xdujc3cuq//:pkg" % lock_repo,
193193

194194
# Direct deps from custom registry
195195
":.aspect_rules_js/node_modules/@[email protected]",
196196

197197
# Direct deps with peers
198198
":.aspect_rules_js/node_modules/@[email protected]_at_aspect-test_c_2.0.2",
199-
"@%s__at_aspect-test_d__2.0.0_at_aspect-test_c_2.0.2//:pkg" % lock_repo,
199+
# "@%s__at_aspect-test_d__2.0.0_at_aspect-test_c_2.0.2//:pkg" % lock_repo,
200200
],
201201
)
202202

e2e/pnpm_lockfiles/v54/snapshots/defs.bzl

Lines changed: 108 additions & 139 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)