Skip to content

Commit a6c4e1f

Browse files
committed
test: add platform specific optional deps test
1 parent c4a21c7 commit a6c4e1f

23 files changed

+5090
-430
lines changed

e2e/pnpm_lockfiles/MODULE.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ npm = use_extension(
102102
# Vendored tarball
103103
"lock-%s__lodash__file_.._vendored_lodash-4.17.21.tgz" % version,
104104
"lock-%s__lodash__file_.._vendored_lodash-4.17.21.tgz__links" % version,
105+
106+
# optional deps, os/cpu conditions
107+
"lock-%s__esbuild__0.27.0__links" % version,
105108
)
106109
for version in PNPM_LOCK_VERSIONS
107110
]

e2e/pnpm_lockfiles/base/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"@aspect-test-custom-scope/a": "npm:@aspect-test/a",
1111
"@isaacs/cliui": "8.0.2",
1212
"debug": "ngokevin/debug#9742c5f383a6f8046241920156236ade8ec30d53",
13+
"esbuild": "0.27.0",
1314
"jsonify": "https://github.com/aspect-build/test-packages/releases/download/0.0.0/@foo-jsonify-0.0.0.tgz",
1415
"jquery-git-ssh-e61fccb": "git+ssh://[email protected]/jquery/jquery.git#e61fccb9d736235b4b011f89cba6866bc0b8997d",
1516
"jquery-git-ssh-399b201": "git+ssh://[email protected]:jquery/jquery#399b201bb3143a3952894cf3489b4848fc003967",

e2e/pnpm_lockfiles/lockfile-test.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ BZLMOD_FILES = {
2828
# file: tarball packages
2929
"lodash_resolved.json": "@REPO_NAME//VERSION:lodash/resolved.json",
3030
"lodash-4.17.21_tgz_defs.bzl": "@REPO_NAME__lodash__file_.._vendored_lodash-4.17.21.tgz__links//:defs.bzl",
31+
32+
# optional deps, os/cpu conditions
33+
"esbuild_links_defs.bzl": "@REPO_NAME__esbuild__0.27.0__links//:defs.bzl",
3134
}
3235

3336
WKSP_FILES = {

e2e/pnpm_lockfiles/v101/pnpm-lock.yaml

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

0 commit comments

Comments
 (0)