@pob/root 18.0.2 → 18.1.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/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
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
+ ## [18.1.1](https://github.com/christophehurpeau/pob/compare/@pob/root@18.1.0...@pob/root@18.1.1) (2025-06-08)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **deps:** update dependency lint-staged to v15.5.2 ([#2528](https://github.com/christophehurpeau/pob/issues/2528)) ([555ad62](https://github.com/christophehurpeau/pob/commit/555ad62a4b47deb1030e94fa1228f6442f74ebfd))
11
+
12
+ Version bump for dependency: yarn-version
13
+
14
+
15
+ ## [18.1.0](https://github.com/christophehurpeau/pob/compare/@pob/root@18.0.2...@pob/root@18.1.0) (2025-06-08)
16
+
17
+ ### Features
18
+
19
+ * improve presentation based on problem matcher ([3cf0439](https://github.com/christophehurpeau/pob/commit/3cf0439a8af56ea38cb093b560a9fba311bff6ac))
20
+ * prefer using corepack to update yarn ([98507d0](https://github.com/christophehurpeau/pob/commit/98507d028f3cb1003c876d3641c1245d378315e3))
21
+ * update yarn to 4.9.2 ([5784269](https://github.com/christophehurpeau/pob/commit/5784269f885b4e918a43040d17056d8abe2c6d1b))
22
+
23
+ ### Bug Fixes
24
+
25
+ * **deps:** update dependency @commitlint/cli to v19.8.1 ([#2522](https://github.com/christophehurpeau/pob/issues/2522)) ([046243c](https://github.com/christophehurpeau/pob/commit/046243c275d18e99dfab38a15008fc22d2fd1458))
26
+ * install workflow push-renovate-build if @pob/rollup-* is used ([d9ca414](https://github.com/christophehurpeau/pob/commit/d9ca4142294ac724e99e04a73288c341aa7f8697))
27
+
28
+ Version bump for dependency: yarn-version
29
+
30
+
6
31
  ## [18.0.2](https://github.com/christophehurpeau/pob/compare/@pob/root@18.0.1...@pob/root@18.0.2) (2025-04-27)
7
32
 
8
33
  ### Bug Fixes
@@ -48,7 +48,9 @@ export default function installGithubWorkflows({ pkg, pm }) {
48
48
  ensureWorkflowUninstalled("push-renovate-typedoc");
49
49
  if (
50
50
  pkg.devDependencies &&
51
- pkg.devDependencies.rollup &&
51
+ (pkg.devDependencies.rollup ||
52
+ pkg.devDependencies["@pob/rollup-esbuild"] ||
53
+ pkg.devDependencies["@pob/rollup-typescript"]) &&
52
54
  pkg.scripts?.build
53
55
  ) {
54
56
  installWorkflow("push-renovate-build", pmCommands);
@@ -52,13 +52,17 @@ export default async function installVscodeTasks({ pkg }) {
52
52
  return;
53
53
  }
54
54
 
55
+ const problemMatcher = getProblemMatcherFromScriptName(scriptName);
55
56
  const task = {
56
57
  label: scriptName,
57
- problemMatcher: getProblemMatcherFromScriptName(scriptName),
58
+ problemMatcher,
58
59
  type: "npm",
59
60
  script: scriptName,
60
61
  group: getGroupNameFromScriptName(scriptName),
61
62
  presentation: {
63
+ ...(problemMatcher.length > 0
64
+ ? { close: true, revealProblems: "onProblem" }
65
+ : {}),
62
66
  panel: "dedicated",
63
67
  group: getGroupNameFromScriptName(scriptName),
64
68
  clear: true,
@@ -1,17 +1,38 @@
1
1
  import { execSync } from "node:child_process";
2
2
  import semver from "semver";
3
3
 
4
+ const isCorepackInstalled = () => {
5
+ try {
6
+ execSync("corepack --version", { stdio: "ignore" });
7
+ return true;
8
+ } catch {
9
+ return false;
10
+ }
11
+ };
12
+
4
13
  export default function updateYarn({ pkg, pm }) {
5
14
  if (pm.name !== "yarn" || !pm.version) return;
6
15
 
7
- if (semver.lt(pm.version, "4.7.0")) {
16
+ if (semver.lt(pm.version, "4.9.2")) {
8
17
  // Upgrade from yarn 1
9
18
  if (semver.lt(pm.version, "2.0.0")) {
10
19
  console.log("-- Install yarn berry --");
11
20
  } else {
12
21
  console.log("-- Update yarn --");
13
22
  }
14
- execSync("yarn set version stable", { stdio: "inherit" });
23
+
24
+ if (isCorepackInstalled()) {
25
+ console.log("Updating yarn using corepack...");
26
+ // bypass corepack asking for confirmation
27
+ execSync("corepack yarn set version stable", {
28
+ stdio: "inherit",
29
+ });
30
+ } else {
31
+ console.log("Updating yarn...");
32
+ execSync("yarn set version stable", {
33
+ stdio: "inherit",
34
+ });
35
+ }
15
36
 
16
37
  // removes yarn paths (can have 2) to use the newly installed yarn
17
38
  const paths = process.env.PATH.split(":");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "18.0.2",
3
+ "version": "18.1.1",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -68,18 +68,18 @@
68
68
  "pob": {},
69
69
  "prettier": "@pob/root/prettier-config",
70
70
  "dependencies": {
71
- "@commitlint/cli": "19.8.0",
71
+ "@commitlint/cli": "19.8.1",
72
72
  "@pob/pretty-pkg": "12.1.1",
73
73
  "conventional-changelog-conventionalcommits": "^8.0.0",
74
74
  "cosmiconfig": "^9.0.0",
75
75
  "husky": "~9.1.7",
76
76
  "json5": "^2.2.3",
77
- "lint-staged": "15.5.1",
78
- "pob-dependencies": "19.0.0",
77
+ "lint-staged": "15.5.2",
78
+ "pob-dependencies": "19.1.1",
79
79
  "prettier": "3.5.3",
80
80
  "repository-check-dirty": "10.0.2",
81
81
  "semver": "^7.3.7",
82
82
  "which-pm-runs": "1.1.0",
83
- "yarn-version": "7.0.1"
83
+ "yarn-version": "7.0.3"
84
84
  }
85
85
  }