-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support in npm_translate_lock patch_args dict (#722)
- Loading branch information
1 parent
b15abd3
commit ceade5f
Showing
6 changed files
with
16 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,11 +126,13 @@ npm_translate_lock( | |
}, | ||
npmrc = "//:.npmrc", | ||
patch_args = { | ||
"@gregmagolan/test-a": ["-p1"], | ||
"*": ["-p1"], | ||
"@gregmagolan/test-a": ["-p4"], | ||
}, | ||
patches = { | ||
"@gregmagolan/test-a": ["//examples/npm_deps:patches/test-a.patch"], | ||
"@gregmagolan/[email protected]": ["//examples/npm_deps:patches/[email protected]"], | ||
"@gregmagolan/test-b": ["//examples/npm_deps:patches/test-b.patch"], | ||
}, | ||
pnpm_lock = "//:pnpm-lock.yaml", | ||
pnpm_version = "7.17.1", | ||
|
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,5 +1,5 @@ | ||
--- a/main.js | ||
+++ b/main.js | ||
--- a/node_modules/@gregmagolan/test-a/main.js | ||
+++ b/node_modules/@gregmagolan/test-a/main.js | ||
@@ -1 +1,2 @@ | ||
module.exports = 'test-a-0.0.1'; | ||
+console.log("Hello world!") |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- a/main.js | ||
+++ b/main.js | ||
@@ -1 +1,2 @@ | ||
module.exports = 'test-b-0.0.1'; | ||
+console.log("Hello world!") |
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 |
---|---|---|
|
@@ -1216,7 +1216,7 @@ def npm_repositories(): | |
"@gregmagolan/test-a": ["0.0.1"], | ||
}, | ||
patches = ["//examples/npm_deps:patches/test-a.patch", "//examples/npm_deps:patches/[email protected]"], | ||
patch_args = ["-p1"], | ||
patch_args = ["-p4"], | ||
) | ||
|
||
npm_import( | ||
|
@@ -1239,6 +1239,8 @@ def npm_repositories(): | |
"@gregmagolan/test-b": ["0.0.2"], | ||
"@gregmagolan/test-a": ["0.0.1"], | ||
}, | ||
patches = ["//examples/npm_deps:patches/test-b.patch"], | ||
patch_args = ["-p1"], | ||
) | ||
|
||
npm_import( | ||
|