pob 27.0.0 → 28.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 +57 -0
- package/README.md +6 -6
- package/lib/generators/common/testing/CommonTestingGenerator.js +2 -2
- package/lib/generators/common/transpiler/CommonTranspilerGenerator.js +2 -2
- package/lib/generators/core/package/CorePackageGenerator.js +5 -1
- package/lib/generators/monorepo/PobMonorepoGenerator.js +7 -0
- package/package.json +19 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,63 @@
|
|
|
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
|
+
## [28.1.0](https://github.com/christophehurpeau/pob/compare/pob@28.0.0...pob@28.1.0) (2025-04-27)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **deps:** update dependency @yeoman/types to v1.6.0 ([#2506](https://github.com/christophehurpeau/pob/issues/2506)) ([cb74360](https://github.com/christophehurpeau/pob/commit/cb743603418a9854930b7d0a57ff36655f2e3b6d))
|
|
11
|
+
* **deps:** update yarn monorepo ([#2508](https://github.com/christophehurpeau/pob/issues/2508)) ([c2b37b6](https://github.com/christophehurpeau/pob/commit/c2b37b6b5422fa39c224043cb863217bc83a1c05))
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **deps:** update dependency yeoman-generator to v7.5.1 ([#2502](https://github.com/christophehurpeau/pob/issues/2502)) ([a09c1a0](https://github.com/christophehurpeau/pob/commit/a09c1a0b53258a720789f8d3774fc4c0a10ba32b))
|
|
16
|
+
|
|
17
|
+
Version bump for dependency: yarn-workspace-utils
|
|
18
|
+
Version bump for dependency: @pob/root
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## [28.0.0](https://github.com/christophehurpeau/pob/compare/pob@27.1.0...pob@28.0.0) (2025-04-27)
|
|
22
|
+
|
|
23
|
+
### ⚠ BREAKING CHANGES
|
|
24
|
+
|
|
25
|
+
* **deps:** update @pob/eslint-config to v60 (major) (#2501)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **deps:** update @pob/eslint-config to v60 (major) ([#2501](https://github.com/christophehurpeau/pob/issues/2501)) ([853ba41](https://github.com/christophehurpeau/pob/commit/853ba41a2d29036f45acba272f30ffb34ec99dd2))
|
|
30
|
+
* **deps:** update dependency eslint to v9.25.1 ([#2500](https://github.com/christophehurpeau/pob/issues/2500)) ([8b4a0e2](https://github.com/christophehurpeau/pob/commit/8b4a0e25684355b89ade0186b2ad8fbea8726bc1))
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* **deps:** update dependency typescript to v5.8.3 ([#2497](https://github.com/christophehurpeau/pob/issues/2497)) ([3c7473b](https://github.com/christophehurpeau/pob/commit/3c7473bfce5df93a8686d9aaf290e5bc52d77032))
|
|
35
|
+
* **pob:** only use tsconfig.test.json if tsTestUtil is ts-node ([ce24468](https://github.com/christophehurpeau/pob/commit/ce244681d8f4fe84da81aa48e07cc603d807b0c5))
|
|
36
|
+
* **pob:** use @pob/rollup-esbuild in monorepo to avoid having wrong rollup version ([340edc0](https://github.com/christophehurpeau/pob/commit/340edc0ead936b731c719d7c23010ec63da0b732))
|
|
37
|
+
|
|
38
|
+
Version bump for dependency: @pob/sort-object
|
|
39
|
+
Version bump for dependency: @pob/sort-pkg
|
|
40
|
+
Version bump for dependency: yarn-workspace-utils
|
|
41
|
+
Version bump for dependency: @pob/root
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## [27.1.0](https://github.com/christophehurpeau/pob/compare/pob@27.0.0...pob@27.1.0) (2025-04-27)
|
|
45
|
+
|
|
46
|
+
### Features
|
|
47
|
+
|
|
48
|
+
* use glob from nodejs ([2ffacbe](https://github.com/christophehurpeau/pob/commit/2ffacbebb7ea1f13d6e8761a7a223c62841e993b))
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* **deps:** update @pob/eslint-config to v59.8.1 ([#2479](https://github.com/christophehurpeau/pob/issues/2479)) ([253120f](https://github.com/christophehurpeau/pob/commit/253120f7e45e74f8ed2f55319fdfee96a35aa3f1))
|
|
53
|
+
* **deps:** update dependency @prettier/sync to v0.5.5 ([#2493](https://github.com/christophehurpeau/pob/issues/2493)) ([f2dc529](https://github.com/christophehurpeau/pob/commit/f2dc529398d8c3525a865d27f682de6e372d81a4))
|
|
54
|
+
* make sure we use node 22 >= 22.14 ([2fe4ec5](https://github.com/christophehurpeau/pob/commit/2fe4ec525e73793e3af520cf6243be5b8bec8de3))
|
|
55
|
+
* use node 20.11.0 with backported import.meta ([d8d1c3b](https://github.com/christophehurpeau/pob/commit/d8d1c3b0d9e53536846b3d337f1530de71ebbf8d))
|
|
56
|
+
|
|
57
|
+
Version bump for dependency: @pob/sort-object
|
|
58
|
+
Version bump for dependency: @pob/sort-pkg
|
|
59
|
+
Version bump for dependency: yarn-workspace-utils
|
|
60
|
+
Version bump for dependency: @pob/root
|
|
61
|
+
|
|
62
|
+
|
|
6
63
|
## [27.0.0](https://github.com/christophehurpeau/pob/compare/pob@26.11.0...pob@27.0.0) (2025-04-27)
|
|
7
64
|
|
|
8
65
|
### ⚠ BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<
|
|
1
|
+
<h1 align="center">
|
|
2
2
|
pob
|
|
3
|
-
</
|
|
3
|
+
</h1>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://npmjs.org/package/pob"><img src="https://img.shields.io/npm/v/pob.svg?style=flat-square"></a>
|
|
11
|
-
<a href="https://npmjs.org/package/pob"><img src="https://img.shields.io/npm/dw/pob.svg?style=flat-square"></a>
|
|
12
|
-
<a href="https://npmjs.org/package/pob"><img src="https://img.shields.io/node/v/pob.svg?style=flat-square"></a>
|
|
13
|
-
<a href="https://npmjs.org/package/pob"><img src="https://img.shields.io/npm/types/pob.svg?style=flat-square"></a>
|
|
10
|
+
<a href="https://npmjs.org/package/pob"><img src="https://img.shields.io/npm/v/pob.svg?style=flat-square" alt="npm version"></a>
|
|
11
|
+
<a href="https://npmjs.org/package/pob"><img src="https://img.shields.io/npm/dw/pob.svg?style=flat-square" alt="npm downloads"></a>
|
|
12
|
+
<a href="https://npmjs.org/package/pob"><img src="https://img.shields.io/node/v/pob.svg?style=flat-square" alt="node version"></a>
|
|
13
|
+
<a href="https://npmjs.org/package/pob"><img src="https://img.shields.io/npm/types/pob.svg?style=flat-square" alt="types"></a>
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
## How to install
|
|
@@ -327,7 +327,7 @@ export default class CommonTestingGenerator extends Generator {
|
|
|
327
327
|
: ""
|
|
328
328
|
}node ${
|
|
329
329
|
this.options.typescript ? `${tsTestLoaderOption} ` : ""
|
|
330
|
-
}${this.fs.exists("src/test-setup.ts") ? "--import ./src/test-setup.ts " : ""}--test${experimentalTestCoverage && (coverage || coverageJson) ? " --experimental-test-coverage" : ""} ${this.options.monorepo ? `${workspacesPattern}
|
|
330
|
+
}${this.fs.exists("src/test-setup.ts") ? "--import ./src/test-setup.ts " : ""}--test${experimentalTestCoverage && (coverage || coverageJson) ? " --experimental-test-coverage" : ""} ${this.options.monorepo ? `${workspacesPattern}/*/` : ""}${`${
|
|
331
331
|
hasTestFolder ? "test/*" : `${this.options.srcDirectory}/**/*.test`
|
|
332
332
|
}.${this.options.typescript ? "ts" : "js"}`}`;
|
|
333
333
|
}
|
|
@@ -491,7 +491,7 @@ export default class CommonTestingGenerator extends Generator {
|
|
|
491
491
|
}
|
|
492
492
|
} else {
|
|
493
493
|
const tsconfigTestPath = this.destinationPath("tsconfig.test.json");
|
|
494
|
-
if (
|
|
494
|
+
if (tsTestUtil === "ts-node" && withTypescript) {
|
|
495
495
|
const nodeVersion = this.options.onlyLatestLTS
|
|
496
496
|
? `${latestLTS}`
|
|
497
497
|
: `${maintenanceLTS}`;
|
|
@@ -639,7 +639,7 @@ export default class CommonTranspilerGenerator extends Generator {
|
|
|
639
639
|
!pkg.engines.node ||
|
|
640
640
|
!pkg.engines.node.startsWith(">=22")
|
|
641
641
|
) {
|
|
642
|
-
pkg.engines.node = ">=20.
|
|
642
|
+
pkg.engines.node = ">=20.11.0";
|
|
643
643
|
}
|
|
644
644
|
break;
|
|
645
645
|
case "22":
|
|
@@ -667,7 +667,7 @@ export default class CommonTranspilerGenerator extends Generator {
|
|
|
667
667
|
packageUtils.removeDevDependencies(pkg, ["@types/node"]);
|
|
668
668
|
|
|
669
669
|
// Supports oldest current or active LTS version of node
|
|
670
|
-
const minVersion = this.options.onlyLatestLTS ? "22.14.0" : "20.
|
|
670
|
+
const minVersion = this.options.onlyLatestLTS ? "22.14.0" : "20.11.0";
|
|
671
671
|
|
|
672
672
|
if (
|
|
673
673
|
!pkg.engines.node ||
|
|
@@ -64,7 +64,11 @@ export default class CorePackageGenerator extends Generator {
|
|
|
64
64
|
)
|
|
65
65
|
) {
|
|
66
66
|
// this might be overridden by babel generator
|
|
67
|
-
pkg.engines.node = ">=20.
|
|
67
|
+
pkg.engines.node = ">=20.11.0"; // .9.0 is the first lts node 20 version, 20.11.0 is the version with backported import.meta feature
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (pkg.engines.node.startsWith(">=22.11.")) {
|
|
71
|
+
pkg.engines.node = ">=22.14.0"; // 22.14 is the first version with findPackageJSON
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
if (!this.options.isRoot) {
|
|
@@ -386,6 +386,13 @@ export default class PobMonorepoGenerator extends Generator {
|
|
|
386
386
|
(rollupKinds.size === 0 || rollupKinds.has("babel")),
|
|
387
387
|
["@babel/core", "pob-babel"],
|
|
388
388
|
);
|
|
389
|
+
|
|
390
|
+
packageUtils.addOrRemoveDevDependencies(pkg, rollupKinds.has("esbuild"), [
|
|
391
|
+
"@pob/rollup-esbuild",
|
|
392
|
+
]);
|
|
393
|
+
if (rollupKinds.has("esbuild")) {
|
|
394
|
+
packageUtils.removeDevDependencies(pkg, ["rollup"]);
|
|
395
|
+
}
|
|
389
396
|
this.fs.writeJSON(this.destinationPath("package.json"), pkg);
|
|
390
397
|
}
|
|
391
398
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pob",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.1.0",
|
|
4
4
|
"description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skeleton"
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"bin"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
|
+
"build": "yarn run build:definitions",
|
|
36
|
+
"build:definitions": "tsc -p tsconfig.json",
|
|
35
37
|
"format": "prettier --write",
|
|
36
38
|
"lint": "yarn run lint:eslint",
|
|
37
39
|
"lint:eslint": "yarn ../.. run eslint --quiet packages/pob"
|
|
@@ -41,18 +43,18 @@
|
|
|
41
43
|
},
|
|
42
44
|
"prettier": "@pob/root/prettier-config",
|
|
43
45
|
"dependencies": {
|
|
44
|
-
"@pob/eslint-config": "
|
|
45
|
-
"@pob/eslint-config-typescript": "
|
|
46
|
-
"@pob/eslint-config-typescript-react": "
|
|
47
|
-
"@pob/sort-object": "9.0.
|
|
48
|
-
"@pob/sort-pkg": "11.0.
|
|
49
|
-
"@prettier/sync": "0.5.
|
|
46
|
+
"@pob/eslint-config": "60.0.0",
|
|
47
|
+
"@pob/eslint-config-typescript": "60.0.0",
|
|
48
|
+
"@pob/eslint-config-typescript-react": "60.0.0",
|
|
49
|
+
"@pob/sort-object": "9.0.2",
|
|
50
|
+
"@pob/sort-pkg": "11.0.3",
|
|
51
|
+
"@prettier/sync": "0.5.5",
|
|
50
52
|
"@types/inquirer": "9.0.7",
|
|
51
|
-
"@yarnpkg/cli": "4.
|
|
52
|
-
"@yarnpkg/core": "4.
|
|
53
|
+
"@yarnpkg/cli": "4.9.1",
|
|
54
|
+
"@yarnpkg/core": "4.4.1",
|
|
53
55
|
"@yarnpkg/fslib": "3.1.2",
|
|
54
|
-
"@yeoman/types": "1.
|
|
55
|
-
"eslint": "9.
|
|
56
|
+
"@yeoman/types": "1.6.0",
|
|
57
|
+
"eslint": "9.25.1",
|
|
56
58
|
"findup-sync": "^5.0.0",
|
|
57
59
|
"git-remote-url": "^1.0.1",
|
|
58
60
|
"github-username": "^9.0.0",
|
|
@@ -64,17 +66,17 @@
|
|
|
64
66
|
"mem-fs-editor": "11.1.4",
|
|
65
67
|
"minimist": "1.2.8",
|
|
66
68
|
"parse-author": "2.0.0",
|
|
67
|
-
"pob-dependencies": "
|
|
69
|
+
"pob-dependencies": "19.0.0",
|
|
68
70
|
"prettier": "3.5.3",
|
|
69
71
|
"semver": "7.7.1",
|
|
70
|
-
"typescript": "5.8.
|
|
72
|
+
"typescript": "5.8.3",
|
|
71
73
|
"validate-npm-package-name": "^6.0.0",
|
|
72
|
-
"yarn-workspace-utils": "8.
|
|
74
|
+
"yarn-workspace-utils": "8.7.0",
|
|
73
75
|
"yeoman-environment": "4.4.3",
|
|
74
|
-
"yeoman-generator": "7.5.
|
|
76
|
+
"yeoman-generator": "7.5.1"
|
|
75
77
|
},
|
|
76
78
|
"devDependencies": {
|
|
77
|
-
"@pob/root": "
|
|
78
|
-
"@types/node": "22.
|
|
79
|
+
"@pob/root": "18.0.1",
|
|
80
|
+
"@types/node": "22.15.2"
|
|
79
81
|
}
|
|
80
82
|
}
|