pob 29.0.0 → 29.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,46 @@
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
+ ## [29.2.0](https://github.com/christophehurpeau/pob/compare/pob@29.1.0...pob@29.2.0) (2025-09-17)
7
+
8
+ ### Features
9
+
10
+ * **deps:** update dependency @yeoman/types to v1.7.1 ([#2558](https://github.com/christophehurpeau/pob/issues/2558)) ([0067f0f](https://github.com/christophehurpeau/pob/commit/0067f0f95af5ecba55967229605f776ddcc49293))
11
+ * update actions/setup-node to v5 ([#2580](https://github.com/christophehurpeau/pob/issues/2580)) ([c93f9bb](https://github.com/christophehurpeau/pob/commit/c93f9bb8b0969ec2c0884109994c39f9e9773368))
12
+ * update dependencies ([ef7157a](https://github.com/christophehurpeau/pob/commit/ef7157a6db8fc3b6b927cf8d739b65c8f590d3fc))
13
+ * use @pob/root/commitlint-config ([c0a9daa](https://github.com/christophehurpeau/pob/commit/c0a9daa689397134eba9ac11ac4c72c0819b13f9))
14
+
15
+ ### Bug Fixes
16
+
17
+ * config can be undefined ([a1b70c4](https://github.com/christophehurpeau/pob/commit/a1b70c4a2e31669a96ce56495d416d1a10b1827a))
18
+ * **deps:** update yarn monorepo to v4.9.4 ([#2554](https://github.com/christophehurpeau/pob/issues/2554)) ([60218ed](https://github.com/christophehurpeau/pob/commit/60218ed2f22e77ab5c0a6828b4151b798fef8324))
19
+
20
+ Version bump for dependency: @pob/sort-object
21
+ Version bump for dependency: @pob/sort-pkg
22
+ Version bump for dependency: yarn-workspace-utils
23
+ Version bump for dependency: @pob/root
24
+
25
+
26
+ ## [29.1.0](https://github.com/christophehurpeau/pob/compare/pob@29.0.0...pob@29.1.0) (2025-08-24)
27
+
28
+ ### Features
29
+
30
+ * **deps:** update dependency eslint to v9.34.0 ([#2559](https://github.com/christophehurpeau/pob/issues/2559)) ([54fa249](https://github.com/christophehurpeau/pob/commit/54fa249bb7fbe343f0bfb1d94d05b59d70f7b39e))
31
+ * **deps:** upgrade yarn to version 4.9.3 and update related dependencies ([1edd0bf](https://github.com/christophehurpeau/pob/commit/1edd0bf4cedb355171d395fc27a91cf7ce92d966))
32
+ * update typescript ([fbe3295](https://github.com/christophehurpeau/pob/commit/fbe3295071c209e4bd58d8b2030607a19e3ccb54))
33
+ * upgrade actions/checkout from v4 to v5 across multiple workflow files ([d699e07](https://github.com/christophehurpeau/pob/commit/d699e079f2247fbc3a5378cdce782e174185cd43))
34
+
35
+ ### Bug Fixes
36
+
37
+ * adjust config import logic in Rollup config template for better handling of conditional imports ([8220667](https://github.com/christophehurpeau/pob/commit/8220667a4622a6db98b72b8414c712e6ddaae255))
38
+ * refine bundler condition to ensure it checks for string type before applying startsWith for better reliability ([29ebf3f](https://github.com/christophehurpeau/pob/commit/29ebf3f37698eee638e171e2d0296f12b97ef8c3))
39
+ * update bundler condition to use startsWith for improved compatibility ([1c47fab](https://github.com/christophehurpeau/pob/commit/1c47fab91e1e77162fb88644e5a83e80182edf83))
40
+ * update CI configuration references in PobBaseGenerator to use projectConfig ([1e4582f](https://github.com/christophehurpeau/pob/commit/1e4582f20a06ced6b7830943b9a002335ee495ad))
41
+
42
+ Version bump for dependency: yarn-workspace-utils
43
+ Version bump for dependency: @pob/root
44
+
45
+
6
46
  ## [29.0.0](https://github.com/christophehurpeau/pob/compare/pob@28.4.0...pob@29.0.0) (2025-08-24)
7
47
 
8
48
  ### ⚠ BREAKING CHANGES
@@ -78,7 +78,7 @@ export default class PobAppGenerator extends Generator {
78
78
  async prompting() {
79
79
  const config = this.appConfig;
80
80
 
81
- if (config.ci !== undefined) {
81
+ if (config?.ci !== undefined) {
82
82
  delete config.ci;
83
83
  }
84
84
 
@@ -84,14 +84,12 @@ export default class CommonHuskyGenerator extends Generator {
84
84
 
85
85
  pkg.commitlint = {
86
86
  extends: [
87
- "@pob/commitlint-config",
87
+ "@pob/root/commitlint-config",
88
88
  // '@commitlint/config-lerna-scopes',
89
89
  ].filter(Boolean),
90
90
  };
91
91
 
92
- if (pkg.name !== "pob-monorepo") {
93
- packageUtils.addDevDependencies(pkg, ["@pob/commitlint-config"]);
94
- }
92
+ packageUtils.removeDevDependencies(pkg, ["@pob/commitlint-config"]);
95
93
 
96
94
  // if (packageUtils.hasLerna(pkg)) {
97
95
  // packageUtils.addScripts(pkg, {
@@ -28,13 +28,17 @@ jobs:
28
28
  release:
29
29
  runs-on: ubuntu-latest
30
30
  steps:
31
- - uses: actions/checkout@v4
31
+ - uses: actions/checkout@v5
32
32
  with:
33
33
  token: ${{ secrets.GH_TOKEN }}
34
34
  fetch-depth: 0
35
35
  fetch-tags: true
36
+ <% if (packageManager === 'yarn') { -%>
36
37
 
37
- - uses: actions/setup-node@v4
38
+ - name: Enable Corepack
39
+ run: corepack enable
40
+ <% } -%>
41
+ - uses: actions/setup-node@v5
38
42
  with:
39
43
  node-version: <%= nodeLatestMajorVersion %>
40
44
  check-latest: true
@@ -49,8 +53,6 @@ jobs:
49
53
  fi
50
54
 
51
55
  <% if (packageManager === 'yarn') { -%>
52
- - name: Enable Corepack
53
- run: corepack enable
54
56
 
55
57
  - name: Install Dependencies
56
58
  <% if (disableYarnGitCache) { -%>
@@ -265,7 +265,8 @@ export default class CommonTranspilerGenerator extends Generator {
265
265
 
266
266
  packageUtils.addOrRemoveDevDependencies(
267
267
  pkg,
268
- bundler === "rollup-babel" &&
268
+ typeof bundler === "string" &&
269
+ bundler.startsWith("rollup") &&
269
270
  this.options.isApp &&
270
271
  !this.options.isAppLibrary &&
271
272
  this.options.useAppConfig,
@@ -1,13 +1,15 @@
1
1
  import { dirname } from 'node:path';
2
2
  import { fileURLToPath } from 'node:url';
3
- <% if (config) { -%>
4
- import config from 'alp-rollup-plugin-config';
5
- <% } -%>
6
3
  import createRollupConfig from '@pob/<%= rollupConfigLib %>/createRollupConfig.js';
7
4
  <% if (enableRun) { -%>
8
5
  import run from '@pob/<%= rollupConfigLib %>/plugin-run.cjs';
6
+ <% if (config) { -%>
7
+ import config from 'alp-rollup-plugin-config';
8
+ <% } -%>
9
9
 
10
10
  const watch = process.env.ROLLUP_WATCH === 'true';
11
+ <% } else if (config) { -%>
12
+ import config from 'alp-rollup-plugin-config';
11
13
  <% } -%>
12
14
 
13
15
  export default createRollupConfig({
@@ -8,17 +8,19 @@ jobs:
8
8
  create-documentation-and-deploy:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
- - uses: actions/checkout@v4
11
+ - uses: actions/checkout@v5
12
12
 
13
- - uses: actions/setup-node@v4
13
+ <% if (packageManager === 'yarn') { -%>
14
+ - name: Enable Corepack
15
+ run: corepack enable
16
+
17
+ <% } -%>
18
+ - uses: actions/setup-node@v5
14
19
  with:
15
20
  node-version: <%= nodeLatestMajorVersion %>
16
21
  check-latest: true
17
22
 
18
23
  <% if (packageManager === 'yarn') { -%>
19
- - name: Enable Corepack
20
- run: corepack enable
21
-
22
24
  - name: Install Dependencies
23
25
  <% if (disableYarnGitCache) { -%>
24
26
  run: yarn install --immutable
@@ -8,16 +8,16 @@ jobs:
8
8
  runs-on: ubuntu-latest
9
9
 
10
10
  steps:
11
- - uses: actions/checkout@v4
11
+ - uses: actions/checkout@v5
12
12
 
13
- - uses: actions/setup-node@v4
13
+ - name: Enable Corepack
14
+ run: corepack enable
15
+
16
+ - uses: actions/setup-node@v5
14
17
  with:
15
18
  node-version: <%= nodeLatestMajorVersion %>
16
19
  check-latest: true
17
20
 
18
- - name: Enable Corepack
19
- run: corepack enable
20
-
21
21
  - name: Install Dependencies
22
22
  <% if (packageManager === 'yarn') { -%>
23
23
  <% if (disableYarnGitCache) { -%>
@@ -38,16 +38,16 @@ jobs:
38
38
  runs-on: ubuntu-latest
39
39
 
40
40
  steps:
41
- - uses: actions/checkout@v4
41
+ - uses: actions/checkout@v5
42
+
43
+ - name: Enable Corepack
44
+ run: corepack enable
42
45
 
43
- - uses: actions/setup-node@v4
46
+ - uses: actions/setup-node@v5
44
47
  with:
45
48
  node-version: <%= nodeLatestMajorVersion %>
46
49
  check-latest: true
47
50
 
48
- - name: Enable Corepack
49
- run: corepack enable
50
-
51
51
  - name: Install Dependencies
52
52
  <% if (packageManager === 'yarn') { -%>
53
53
  <% if (disableYarnGitCache) { -%>
@@ -70,16 +70,16 @@ jobs:
70
70
  runs-on: ubuntu-latest
71
71
 
72
72
  steps:
73
- - uses: actions/checkout@v4
73
+ - uses: actions/checkout@v5
74
74
 
75
- - uses: actions/setup-node@v4
75
+ - name: Enable Corepack
76
+ run: corepack enable
77
+
78
+ - uses: actions/setup-node@v5
76
79
  with:
77
80
  node-version: <%= nodeLatestMajorVersion %>
78
81
  check-latest: true
79
82
 
80
- - name: Enable Corepack
81
- run: corepack enable
82
-
83
83
  - name: Install Dependencies
84
84
  <% if (disableYarnGitCache) { -%>
85
85
  run: yarn install --immutable
@@ -107,17 +107,19 @@ jobs:
107
107
  node-version: [<% if (!onlyLatestLTS && nodeMaintenanceMajorVersion !== nodeLatestMajorVersion) { -%><%= nodeMaintenanceMajorVersion %>, <% } -%><%= nodeLatestMajorVersion %>]
108
108
 
109
109
  steps:
110
- - uses: actions/checkout@v4
110
+ - uses: actions/checkout@v5
111
+
112
+ <% if (packageManager === 'yarn') { -%>
113
+ - name: Enable Corepack
114
+ run: corepack enable
111
115
 
112
- - uses: actions/setup-node@v4
116
+ <% } -%>
117
+ - uses: actions/setup-node@v5
113
118
  with:
114
119
  node-version: ${{ matrix.node-version }}
115
120
  check-latest: true
116
121
 
117
122
  <% if (packageManager === 'yarn') { -%>
118
- - name: Enable Corepack
119
- run: corepack enable
120
-
121
123
  - name: Install Dependencies
122
124
  <% if (disableYarnGitCache) { -%>
123
125
  run: yarn install --immutable
@@ -165,16 +167,16 @@ jobs:
165
167
  node-version: [<%= nodeLatestMajorVersion %>]
166
168
 
167
169
  steps:
168
- - uses: actions/checkout@v4
170
+ - uses: actions/checkout@v5
171
+
172
+ - name: Enable Corepack
173
+ run: corepack enable
169
174
 
170
- - uses: actions/setup-node@v4
175
+ - uses: actions/setup-node@v5
171
176
  with:
172
177
  node-version: ${{ matrix.node-version }}
173
178
  check-latest: true
174
179
 
175
- - name: Enable Corepack
176
- run: corepack enable
177
-
178
180
  - name: Install Dependencies
179
181
  <% if (disableYarnGitCache) { -%>
180
182
  run: yarn install --immutable
@@ -192,9 +194,9 @@ jobs:
192
194
  needs: [<%= checks ? '"checks", ' : '' -%><%= build ? '"build", ' : '' -%>"lint"<%= testing ? ', "test"' : '' -%>]
193
195
 
194
196
  steps:
195
- - uses: actions/checkout@v4
197
+ - uses: actions/checkout@v5
196
198
 
197
- - uses: actions/setup-node@v4
199
+ - uses: actions/setup-node@v5
198
200
  with:
199
201
  node-version: <%= nodeLatestMajorVersion %>
200
202
  check-latest: true
@@ -11,19 +11,21 @@ jobs:
11
11
  node-version: [<% if (!onlyLatestLTS && nodeMaintenanceMajorVersion !== nodeLatestMajorVersion) { -%><%= nodeMaintenanceMajorVersion %>.x, <% } -%><%= nodeLatestMajorVersion %>.x]
12
12
 
13
13
  steps:
14
- - uses: actions/checkout@v4
14
+ - uses: actions/checkout@v5
15
15
 
16
+ <% if (packageManager === 'yarn') { -%>
17
+ - name: Enable Corepack
18
+ run: corepack enable
19
+
20
+ <% } -%>
16
21
  - name: Use Node.js ${{ matrix.node-version }}
17
- uses: actions/setup-node@v4
22
+ uses: actions/setup-node@v5
18
23
  with:
19
24
  node-version: ${{ matrix.node-version }}
20
25
  check-latest: true
21
26
  registry-url: 'https://registry.npmjs.org'
22
27
 
23
28
  <% if (packageManager === 'yarn') { -%>
24
- - name: Enable Corepack
25
- run: corepack enable
26
-
27
29
  - name: Install Dependencies
28
30
  <% if (disableYarnGitCache) { -%>
29
31
  run: yarn install --immutable
@@ -8,6 +8,7 @@ export default class CoreSortPackageGenerator extends Generator {
8
8
  writeAndFormatJson(
9
9
  this.fs,
10
10
  this.destinationPath("package.json"),
11
+ // eslint-disable-next-line unicorn/no-array-sort
11
12
  packageUtils.sort(pkg),
12
13
  );
13
14
  }
@@ -142,9 +142,9 @@ export default class CoreYarnGenerator extends Generator {
142
142
  if (
143
143
  !pkg.packageManager ||
144
144
  !pkg.packageManager.startsWith("yarn@") ||
145
- lt(pkg.packageManager.slice("yarn@".length), "4.9.2")
145
+ lt(pkg.packageManager.slice("yarn@".length), "4.9.3")
146
146
  ) {
147
- pkg.packageManager = "yarn@4.9.2";
147
+ pkg.packageManager = "yarn@4.9.3";
148
148
  }
149
149
 
150
150
  // must be done after plugins installed
@@ -204,7 +204,7 @@ export default class PobBaseGenerator extends Generator {
204
204
  this.composeWith("pob:core:git", {
205
205
  onlyLatestLTS,
206
206
  splitCIJobs,
207
- ciEnabled: this.options.ci,
207
+ ciEnabled: this.projectConfig.ci,
208
208
  });
209
209
  } else {
210
210
  if (this.fs.exists(".git-hooks")) this.fs.delete(".git-hooks");
@@ -253,7 +253,7 @@ export default class PobBaseGenerator extends Generator {
253
253
  fromPob: this.options.fromPob,
254
254
  packageManager: this.projectConfig.packageManager,
255
255
  yarnNodeLinker: this.projectConfig.yarnNodeLinker,
256
- ci: this.options.ci,
256
+ ci: this.projectConfig.ci,
257
257
  });
258
258
  break;
259
259
  case "app":
@@ -266,7 +266,7 @@ export default class PobBaseGenerator extends Generator {
266
266
  fromPob: this.options.fromPob,
267
267
  packageManager: this.projectConfig.packageManager,
268
268
  yarnNodeLinker: this.projectConfig.yarnNodeLinker,
269
- ci: this.options.ci,
269
+ ci: this.projectConfig.ci,
270
270
  });
271
271
  break;
272
272
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pob",
3
- "version": "29.0.0",
3
+ "version": "29.2.0",
4
4
  "description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
5
5
  "keywords": [
6
6
  "skeleton"
@@ -43,18 +43,18 @@
43
43
  },
44
44
  "prettier": "@pob/root/prettier-config",
45
45
  "dependencies": {
46
- "@pob/eslint-config": "61.1.0",
47
- "@pob/eslint-config-typescript": "61.1.0",
48
- "@pob/eslint-config-typescript-react": "61.1.0",
49
- "@pob/sort-object": "10.0.0",
50
- "@pob/sort-pkg": "12.0.0",
46
+ "@pob/eslint-config": "62.0.0",
47
+ "@pob/eslint-config-typescript": "62.0.0",
48
+ "@pob/eslint-config-typescript-react": "62.0.0",
49
+ "@pob/sort-object": "10.1.0",
50
+ "@pob/sort-pkg": "12.1.0",
51
51
  "@prettier/sync": "0.6.1",
52
52
  "@types/inquirer": "9.0.9",
53
- "@yarnpkg/cli": "4.9.2",
54
- "@yarnpkg/core": "4.4.2",
53
+ "@yarnpkg/cli": "4.9.4",
54
+ "@yarnpkg/core": "4.4.3",
55
55
  "@yarnpkg/fslib": "3.1.2",
56
- "@yeoman/types": "1.6.0",
57
- "eslint": "9.30.0",
56
+ "@yeoman/types": "1.7.1",
57
+ "eslint": "9.35.0",
58
58
  "findup-sync": "^5.0.0",
59
59
  "git-remote-url": "^1.0.1",
60
60
  "github-username": "^9.0.0",
@@ -66,17 +66,17 @@
66
66
  "mem-fs-editor": "11.1.4",
67
67
  "minimist": "1.2.8",
68
68
  "parse-author": "2.0.0",
69
- "pob-dependencies": "20.0.0",
69
+ "pob-dependencies": "20.2.0",
70
70
  "prettier": "3.6.2",
71
71
  "semver": "7.7.2",
72
- "typescript": "5.8.3",
73
- "validate-npm-package-name": "^6.0.1",
74
- "yarn-workspace-utils": "9.0.0",
72
+ "typescript": "5.9.2",
73
+ "validate-npm-package-name": "^6.0.2",
74
+ "yarn-workspace-utils": "9.2.0",
75
75
  "yeoman-environment": "4.4.3",
76
76
  "yeoman-generator": "7.5.1"
77
77
  },
78
78
  "devDependencies": {
79
- "@pob/root": "19.0.0",
80
- "@types/node": "22.17.2"
79
+ "@pob/root": "19.2.0",
80
+ "@types/node": "22.18.5"
81
81
  }
82
82
  }