-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support pnpm.onlyBuiltDependencies (#1723)
- Loading branch information
1 parent
20c2b68
commit 541154f
Showing
27 changed files
with
69 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
node_modules/ | ||
projects/a/node_modules | ||
projects/b/node_modules | ||
projects/c/node_modules | ||
v54/node_modules/ | ||
v60/node_modules/ | ||
v61/node_modules/ | ||
v54/projects/a/node_modules | ||
v54/projects/b/node_modules | ||
v54/projects/c/node_modules | ||
v60/projects/a/node_modules | ||
v60/projects/b/node_modules | ||
v60/projects/c/node_modules | ||
v61/projects/a/node_modules | ||
v61/projects/b/node_modules | ||
v61/projects/c/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
exports_files(["patched-dependencies-test.js"]) | ||
exports_files(["base/patched-dependencies-test.js"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,12 +30,9 @@ npm = use_extension( | |
npm.npm_translate_lock( | ||
name = "lock-%s" % version, | ||
data = [ | ||
"//:package.json", | ||
"//%s:package.json" % version, | ||
"//%s:patches/[email protected]" % version, | ||
"//:pnpm-workspace.yaml", | ||
], | ||
npmrc = "//:.npmrc", | ||
patch_args = {"*": ["-p1"]}, | ||
pnpm_lock = "//%s:pnpm-lock.yaml" % version, | ||
verify_node_modules_ignored = "//:.bazelignore", | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,9 @@ load("@aspect_rules_js//npm:repositories.bzl", "npm_translate_lock") | |
npm_translate_lock( | ||
name = "lock-%s" % version, | ||
data = [ | ||
"//:package.json", | ||
"//%s:package.json" % version, | ||
"//%s:patches/[email protected]" % version, | ||
"//:pnpm-workspace.yaml", | ||
], | ||
npmrc = "//:.npmrc", | ||
patch_args = {"*": ["-p1"]}, | ||
pnpm_lock = "//%s:pnpm-lock.yaml" % version, | ||
verify_node_modules_ignored = "//:.bazelignore", | ||
) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: | ||
- '.' | ||
- '../projects/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ | |
# 6.0 - pnpm v8.0.0 bumped the lockfile version to 6.0; this included breaking changes | ||
# 6.1 - pnpm v8.6.0 bumped the lockfile version to 6.1 | ||
|
||
mv v54/pnpm-lock.yaml . && npx pnpm@^7.0 install --lockfile-only && mv pnpm-lock.yaml v54/ | ||
mv v54/pnpm-lock.yaml base && pushd base && npx pnpm@^7.0 install --lockfile-only && mv pnpm-lock.yaml ../v54/ && popd | ||
|
||
# pnpm v8.0.0 bumped the lockfile version to 6.0, 8.6.0 bumped it to 6.1 which was then reverted to 6.0 | ||
# while still presenting minor differences from <8.6.0. | ||
mv v60/pnpm-lock.yaml . && npx [email protected] install --lockfile-only && mv pnpm-lock.yaml v60/ | ||
mv v61/pnpm-lock.yaml . && npx [email protected] install --lockfile-only && mv pnpm-lock.yaml v61/ | ||
mv v60/pnpm-lock.yaml base && pushd base && npx [email protected] install --lockfile-only && mv pnpm-lock.yaml ../v60/ && popd | ||
mv v61/pnpm-lock.yaml base && pushd base && npx [email protected] install --lockfile-only && mv pnpm-lock.yaml ../v61/ && popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../base/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../patches | ||
../base/patches |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../base/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../patches | ||
../base/patches |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../base/package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../patches | ||
../base/patches |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters