@pob/root 22.1.0 → 22.2.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [22.2.0](https://github.com/christophehurpeau/pob/compare/@pob/root@22.1.0...@pob/root@22.2.0) (2026-03-12)
7
+
8
+ ### Bug Fixes
9
+
10
+ * reformat yarnrc when changed
11
+
12
+ Version bump for dependency: @pob/pretty-pkg
13
+ Version bump for dependency: @pob/version
14
+ Version bump for dependency: pob-dependencies
15
+
16
+
6
17
  ## [22.1.0](https://github.com/christophehurpeau/pob/compare/@pob/root@22.0.0...@pob/root@22.1.0) (2026-03-01)
7
18
 
8
19
  Version bump for dependency: @pob/version
@@ -7,11 +7,26 @@ const pm = whichPmRuns();
7
7
 
8
8
  assertYarnBerry(pm);
9
9
 
10
- const { lockfile, installAndDedupe } = (() => {
10
+ const { lockfile, configfile, installAndDedupe } = (() => {
11
11
  if (pm.name === "yarn") {
12
12
  return {
13
13
  lockfile: "yarn.lock",
14
- installAndDedupe: ["yarn", "yarn dedupe"],
14
+ configfile: ".yarnrc.yml",
15
+ installAndDedupe: [
16
+ // suppress useless error codes and reformat and sort yarnrc.yml.
17
+ `yarn config set logFilters --json '[
18
+ {"code": "YN0002","level": "discard"},
19
+ {"code": "YN0007","level": "discard"},
20
+ {"code": "YN0008","level": "discard"},
21
+ {"code": "YN0013","level": "discard"},
22
+ {"code": "YN0018","level": "discard"},
23
+ {"code": "YN0060","level": "discard"},
24
+ {"code": "YN0061","level": "discard"}
25
+ ]'`,
26
+ "yarn",
27
+ "yarn dedupe",
28
+ "yarn config unset logFilters",
29
+ ],
15
30
  };
16
31
  }
17
32
  if (pm.name === "npm") {
@@ -49,7 +64,7 @@ export default function createLintStagedConfig() {
49
64
  const srcDirectories = getSrcDirectories();
50
65
 
51
66
  return {
52
- [`{${lockfile},package.json${
67
+ [`{${lockfile},${configfile ? `${configfile},` : ""}package.json${
53
68
  workspaces
54
69
  ? `,${workspaces
55
70
  .map((workspacePath) => `${workspacePath}/package.json`)
@@ -67,7 +82,7 @@ export default function createLintStagedConfig() {
67
82
  packagejsonFilenames.length === 0
68
83
  ? undefined
69
84
  : `pretty-pkg "${packagejsonFilenames.join('" "')}"`,
70
- `git add ${lockfile}${pm.name === "yarn" ? " .yarn .yarnrc.yml" : ""}`,
85
+ `git add ${lockfile}${configfile ? ` ${configfile}` : ""}${pm.name === "yarn" ? " .yarn" : ""}`,
71
86
  ].filter(Boolean);
72
87
  },
73
88
  "!(package|package-lock|.eslintrc).json": ["prettier --write"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "22.1.0",
3
+ "version": "22.2.0",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -60,7 +60,7 @@
60
60
  ],
61
61
  "scripts": {
62
62
  "lint": "yarn run lint:eslint",
63
- "lint:eslint": "yarn ../.. run eslint --quiet '@pob/root'"
63
+ "lint:eslint": "yarn '../..' run eslint --quiet '@pob/root'"
64
64
  },
65
65
  "pob": {},
66
66
  "prettier": "@pob/root/prettier-config",
@@ -68,14 +68,14 @@
68
68
  "@commitlint/format": "20.4.0",
69
69
  "@commitlint/lint": "20.4.2",
70
70
  "@commitlint/types": "20.4.0",
71
- "@pob/pretty-pkg": "13.2.2",
72
- "@pob/version": "2.1.0",
71
+ "@pob/pretty-pkg": "13.2.3",
72
+ "@pob/version": "2.2.0",
73
73
  "conventional-changelog-conventionalcommits": "^9.1.0",
74
74
  "conventional-changelog-writer": "^8.2.0",
75
75
  "conventional-commits-parser": "^6.2.1",
76
76
  "json5": "^2.2.3",
77
77
  "lint-staged": "16.2.7",
78
- "pob-dependencies": "22.1.0",
78
+ "pob-dependencies": "22.2.0",
79
79
  "prettier": "3.8.1",
80
80
  "semver": "^7.7.3"
81
81
  }