-
-
Notifications
You must be signed in to change notification settings - Fork 937
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: license ls should work even when there is a patched git protocol…
- Loading branch information
Showing
6 changed files
with
84 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@pnpm/plugin-commands-licenses": patch | ||
"@pnpm/license-scanner": patch | ||
"pnpm": patch | ||
--- | ||
|
||
`pnpm license ls` should work even when there is a patched git protocol dependency [#6595](https://github.com/pnpm/pnpm/issues/6595) |
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
12 changes: 12 additions & 0 deletions
12
reviewing/plugin-commands-licenses/test/fixtures/with-git-protocol-patched-deps/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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "with-patched-deps", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"is-positive": "github:kevva/is-positive" | ||
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"is-positive@3.1.0": "patches/is-positive@3.1.0.patch" | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...nds-licenses/test/fixtures/with-git-protocol-patched-deps/patches/is-positive@3.1.0.patch
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,10 @@ | ||
diff --git a/index.js b/index.js | ||
index ce27efbbbf6aaecfae5709f67181a15fe20dc602..4ba2734688ebdd8e8041bf6d373e5434c1c38ddb 100644 | ||
--- a/index.js | ||
+++ b/index.js | ||
@@ -1,4 +1,5 @@ | ||
'use strict'; | ||
+console.log('patched') | ||
module.exports = function (n) { | ||
return toString.call(n) === '[object Number]' && n > 0; | ||
}; |
7 changes: 7 additions & 0 deletions
7
reviewing/plugin-commands-licenses/test/fixtures/with-git-protocol-peer-deps/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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "with-git-protocol-peer-deps", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"ajv-keywords": "github:ajv-validator/ajv-keywords" | ||
} | ||
} |
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