@pob/root 18.0.2 → 18.1.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,22 @@
|
|
|
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.0](https://github.com/christophehurpeau/pob/compare/@pob/root@18.0.2...@pob/root@18.1.0) (2025-06-08)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* improve presentation based on problem matcher ([3cf0439](https://github.com/christophehurpeau/pob/commit/3cf0439a8af56ea38cb093b560a9fba311bff6ac))
|
|
11
|
+
* prefer using corepack to update yarn ([98507d0](https://github.com/christophehurpeau/pob/commit/98507d028f3cb1003c876d3641c1245d378315e3))
|
|
12
|
+
* update yarn to 4.9.2 ([5784269](https://github.com/christophehurpeau/pob/commit/5784269f885b4e918a43040d17056d8abe2c6d1b))
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **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))
|
|
17
|
+
* install workflow push-renovate-build if @pob/rollup-* is used ([d9ca414](https://github.com/christophehurpeau/pob/commit/d9ca4142294ac724e99e04a73288c341aa7f8697))
|
|
18
|
+
|
|
19
|
+
Version bump for dependency: yarn-version
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [18.0.2](https://github.com/christophehurpeau/pob/compare/@pob/root@18.0.1...@pob/root@18.0.2) (2025-04-27)
|
|
7
23
|
|
|
8
24
|
### 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
|
|
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.
|
|
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
|
-
|
|
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
|
|
3
|
+
"version": "18.1.0",
|
|
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.
|
|
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
77
|
"lint-staged": "15.5.1",
|
|
78
|
-
"pob-dependencies": "19.
|
|
78
|
+
"pob-dependencies": "19.1.0",
|
|
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.
|
|
83
|
+
"yarn-version": "7.0.2"
|
|
84
84
|
}
|
|
85
85
|
}
|