@pob/root 24.3.0 → 24.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/pob-root-postinstall.js +8 -1
- package/bin/postinstall/github-workflows/push-renovate-build.yml +1 -1
- package/bin/postinstall/github-workflows/push-renovate-pob_root.yml +1 -1
- package/bin/postinstall/github-workflows/push-renovate-prettier.yml +1 -1
- package/createLintStagedConfig.js +1 -1
- package/package.json +5 -5
|
@@ -12,7 +12,14 @@ if (!process.env.INIT_CWD) {
|
|
|
12
12
|
process.exit(1);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
// PROJECT_CWD (yarn classic) is always the monorepo root, regardless of
|
|
16
|
+
// invocation directory, so honor it explicitly. Without it, npm/pnpm/bun
|
|
17
|
+
// already set cwd to this script's own package (the root) before running
|
|
18
|
+
// the lifecycle script; INIT_CWD instead reflects where the command was
|
|
19
|
+
// invoked (e.g. a sub-package), so it must not be used to chdir here.
|
|
20
|
+
if (process.env.PROJECT_CWD) {
|
|
21
|
+
process.chdir(process.env.PROJECT_CWD);
|
|
22
|
+
}
|
|
16
23
|
|
|
17
24
|
const pkg = JSON.parse(fs.readFileSync(path.resolve("package.json")));
|
|
18
25
|
|
|
@@ -80,10 +80,10 @@ export default function createLintStagedConfig() {
|
|
|
80
80
|
return [
|
|
81
81
|
...installAndDedupe,
|
|
82
82
|
pkg.scripts?.checks ? `${pm.name} run checks` : undefined,
|
|
83
|
-
"eslint --fix --quiet",
|
|
84
83
|
packagejsonFilenames.length === 0
|
|
85
84
|
? undefined
|
|
86
85
|
: `oxfmt "${packagejsonFilenames.join('" "')}"`,
|
|
86
|
+
"eslint --fix --quiet",
|
|
87
87
|
`git add ${lockfile}${configfile ? ` ${configfile}` : ""}${pm.name === "yarn" ? " .yarn" : ""}`,
|
|
88
88
|
].filter(Boolean);
|
|
89
89
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/root",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.4.1",
|
|
4
4
|
"description": "root package",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/christophehurpeau/pob",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"conventional-changelog-writer": "^8.2.0",
|
|
65
65
|
"conventional-commits-parser": "^6.2.1",
|
|
66
66
|
"json5": "^2.2.3",
|
|
67
|
-
"lint-staged": "17.0.
|
|
68
|
-
"oxfmt": "0.
|
|
67
|
+
"lint-staged": "17.0.8",
|
|
68
|
+
"oxfmt": "0.54.0",
|
|
69
69
|
"semver": "^7.7.3",
|
|
70
|
-
"
|
|
71
|
-
"pob
|
|
70
|
+
"pob-dependencies": "24.2.0",
|
|
71
|
+
"@pob/version": "4.2.0"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=22.18.0"
|