@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.
@@ -12,7 +12,14 @@ if (!process.env.INIT_CWD) {
12
12
  process.exit(1);
13
13
  }
14
14
 
15
- process.chdir(process.env.PROJECT_CWD || process.env.INIT_CWD);
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
 
@@ -12,7 +12,7 @@ jobs:
12
12
  run-rollup-build:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
- - uses: actions/checkout@v6
15
+ - uses: actions/checkout@v7
16
16
  with:
17
17
  ssh-key: ${{ secrets.PUSH_DEPLOY_KEY }}
18
18
 
@@ -14,7 +14,7 @@ jobs:
14
14
  run-install-and-commit-modified-files:
15
15
  runs-on: ubuntu-latest
16
16
  steps:
17
- - uses: actions/checkout@v6
17
+ - uses: actions/checkout@v7
18
18
  with:
19
19
  ssh-key: ${{ secrets.PUSH_DEPLOY_KEY }}
20
20
 
@@ -13,7 +13,7 @@ jobs:
13
13
  run-prettier:
14
14
  runs-on: ubuntu-latest
15
15
  steps:
16
- - uses: actions/checkout@v6
16
+ - uses: actions/checkout@v7
17
17
  with:
18
18
  ssh-key: ${{ secrets.PUSH_DEPLOY_KEY }}
19
19
 
@@ -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.0",
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.7",
68
- "oxfmt": "0.51.0",
67
+ "lint-staged": "17.0.8",
68
+ "oxfmt": "0.54.0",
69
69
  "semver": "^7.7.3",
70
- "@pob/version": "4.1.1",
71
- "pob-dependencies": "24.1.1"
70
+ "pob-dependencies": "24.2.0",
71
+ "@pob/version": "4.2.0"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=22.18.0"