Skip to content

Commit

Permalink
fix(commit-plugin): lint staged patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov committed Jul 3, 2024
1 parent 818bc44 commit 9130131
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 29 deletions.
18 changes: 9 additions & 9 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
17 changes: 0 additions & 17 deletions .yarn/patches/lint-staged-npm-13.2.2-e66c493ac4.patch

This file was deleted.

29 changes: 29 additions & 0 deletions .yarn/patches/lint-staged-npm-13.3.0-f729900eb4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
diff --git a/lib/resolveConfig.js b/lib/resolveConfig.js
index cb4ab0bde520aff5a75f1c6ab7438ba15188915f..8ca27d5a652e12b081dfc826a2278cfcc6428ec2 100644
--- a/lib/resolveConfig.js
+++ b/lib/resolveConfig.js
@@ -4,10 +4,11 @@ import { createRequire } from 'node:module'
* require() does not exist for ESM, so we must create it to use require.resolve().
* @see https://nodejs.org/api/module.html#modulecreaterequirefilename
*/
-const require = createRequire(import.meta.url)

export function resolveConfig(configPath) {
try {
+ const require = createRequire(import.meta.url);
+
return require.resolve(configPath)
} catch {
return configPath
diff --git a/package.json b/package.json
index b1087a402b178693fc08c048f22e31b88a91fa82..0e49ada9dcc860d617eb1d71acbd0050f19bdc78 100644
--- a/package.json
+++ b/package.json
@@ -73,5 +73,6 @@
"check",
"format",
"validate"
- ]
+ ],
+ "packageManager": "[email protected]+sha512.af78262d7d125afbfeed740602ace8c5e4405cd7f4735c08feb327286b2fdb2390fbca01589bfd1f50b1240548b74806767f5a063c94b67e431aabd0d86f7774"
}
24 changes: 22 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ __metadata:
commitizen: "npm:4.3.0"
force-stdin-tty: "npm:0.0.1"
ink: "npm:3.2.0"
lint-staged: "npm:^13.2.0"
lint-staged: "patch:lint-staged@npm%3A13.3.0#~/.yarn/patches/lint-staged-npm-13.3.0-f729900eb4.patch"
react: "npm:^18.3.1"
word-wrap: "npm:1.2.5"
peerDependencies:
Expand Down Expand Up @@ -10072,7 +10072,7 @@ __metadata:
languageName: node
linkType: hard

"lint-staged@npm:^13.2.0":
"lint-staged@npm:13.3.0":
version: 13.3.0
resolution: "lint-staged@npm:13.3.0"
dependencies:
Expand All @@ -10092,6 +10092,26 @@ __metadata:
languageName: node
linkType: hard

"lint-staged@patch:lint-staged@npm%3A13.3.0#~/.yarn/patches/lint-staged-npm-13.3.0-f729900eb4.patch":
version: 13.3.0
resolution: "lint-staged@patch:lint-staged@npm%3A13.3.0#~/.yarn/patches/lint-staged-npm-13.3.0-f729900eb4.patch::version=13.3.0&hash=30ac46"
dependencies:
chalk: "npm:5.3.0"
commander: "npm:11.0.0"
debug: "npm:4.3.4"
execa: "npm:7.2.0"
lilconfig: "npm:2.1.0"
listr2: "npm:6.6.1"
micromatch: "npm:4.0.5"
pidtree: "npm:0.6.0"
string-argv: "npm:0.3.2"
yaml: "npm:2.3.1"
bin:
lint-staged: bin/lint-staged.js
checksum: 10/afe62cbc440218dab69d42ab5d8670fbd86dc1addb98f81d8e01379df9b6fa0a79503a4587f153eb4019c6fdcbc001aae0ba4f071ff5b31f3eb005dca84ae2e1
languageName: node
linkType: hard

"listr2@npm:6.6.1":
version: 6.6.1
resolution: "listr2@npm:6.6.1"
Expand Down
2 changes: 1 addition & 1 deletion yarn/plugin-commit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"commitizen": "4.3.0",
"force-stdin-tty": "0.0.1",
"ink": "3.2.0",
"lint-staged": "^13.2.0",
"lint-staged": "patch:lint-staged@npm%3A13.3.0#~/.yarn/patches/lint-staged-npm-13.3.0-f729900eb4.patch",
"react": "^18.3.1",
"word-wrap": "1.2.5"
},
Expand Down

0 comments on commit 9130131

Please sign in to comment.