pob 16.1.0 → 17.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,32 @@
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
+ ## [17.1.0](https://github.com/christophehurpeau/pob/compare/pob@17.0.0...pob@17.1.0) (2023-12-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * delete config.supportedArchitectures if option disableYarnGitCache is true ([9905b3b](https://github.com/christophehurpeau/pob/commit/9905b3bef1feb10f6867d2f2625480aaee63b56f))
12
+ * fix tsconfig when presets is empty ([63ce876](https://github.com/christophehurpeau/pob/commit/63ce8762ac960d89cbdff9970dbc34670c0cd365))
13
+ * **pob:** correctly detects if build is required ([d3e13e6](https://github.com/christophehurpeau/pob/commit/d3e13e6d052ecaed070a93c3f45ca83622750643))
14
+
15
+ Version bump for dependency: root
16
+
17
+
18
+ ## [17.0.0](https://github.com/christophehurpeau/pob/compare/pob@16.1.0...pob@17.0.0) (2023-12-25)
19
+
20
+
21
+ ### ⚠ BREAKING CHANGES
22
+
23
+ * drop browser modern version
24
+
25
+ ### Features
26
+
27
+ * drop browser modern version ([99ee1d3](https://github.com/christophehurpeau/pob/commit/99ee1d392fa035773a559c6a81515b1731f70e29))
28
+
29
+ Version bump for dependency: yarn-workspace-utils
30
+
31
+
6
32
  ## [16.1.0](https://github.com/christophehurpeau/pob/compare/pob@16.0.0...pob@16.1.0) (2023-12-25)
7
33
 
8
34
 
@@ -178,24 +178,24 @@ export default class CommonBabelGenerator extends Generator {
178
178
  ],
179
179
  },
180
180
 
181
- {
182
- type: 'checkbox',
183
- name: 'browserVersions',
184
- message: 'Babel browser versions',
185
- when: ({ targets = [] }) => targets.includes('browser'),
186
- validate: (versions) => versions.length > 0,
187
- default: browserVersions,
188
- choices: [
189
- {
190
- name: 'Modern',
191
- value: 'modern',
192
- },
193
- {
194
- name: 'Supported',
195
- value: 'supported',
196
- },
197
- ],
198
- },
181
+ // {
182
+ // type: 'checkbox',
183
+ // name: 'browserVersions',
184
+ // message: 'Babel browser versions',
185
+ // when: ({ targets = [] }) => targets.includes('browser'),
186
+ // validate: (versions) => versions.length > 0,
187
+ // default: browserVersions,
188
+ // choices: [
189
+ // {
190
+ // name: 'Modern',
191
+ // value: 'modern',
192
+ // },
193
+ // {
194
+ // name: 'Supported',
195
+ // value: 'supported',
196
+ // },
197
+ // ],
198
+ // },
199
199
 
200
200
  {
201
201
  type: 'confirm',
@@ -207,6 +207,10 @@ export default class CommonBabelGenerator extends Generator {
207
207
  ]);
208
208
  }
209
209
 
210
+ if (babelConfig.targets.includes('browser')) {
211
+ babelConfig.browserVersions = ['supported'];
212
+ }
213
+
210
214
  if (hasInitialPkgPob && pkg.main && !pkg.exports) {
211
215
  const result = await this.prompt({
212
216
  type: 'confirm',
@@ -47,7 +47,7 @@
47
47
  "composite": true,
48
48
  <% } -%>
49
49
 
50
- <% if(!presets) { -%>
50
+ <% if(!presets || presets.length === 0) { -%>
51
51
  "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
52
52
  "module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
53
53
  "lib": [<%- dom ? '"dom", ' : '' %>"esnext"], /* Polyfills are imported either by babel or with polyfill.io */
@@ -63,7 +63,7 @@
63
63
  "plugins": [<%- plugins.map((pluginName) => `{"name": "${pluginName}"}`).join(', ') %>],
64
64
  <% } -%>
65
65
 
66
- <% if(!presets) { -%>
66
+ <% if(!presets || presets.length === 0) { -%>
67
67
  /* Module Resolution Options */
68
68
  "moduleResolution": "bundler" /* Specify module resolution strategy. */,
69
69
  <% if (resolveJsonModule) { -%>
@@ -145,6 +145,7 @@ export default class CoreYarnGenerator extends Generator {
145
145
  if (this.options.disableYarnGitCache) {
146
146
  config.compressionLevel = 'mixed'; // optimized for size
147
147
  config.enableGlobalCache = true;
148
+ delete config.supportedArchitectures;
148
149
  } else {
149
150
  config.compressionLevel = 0; // optimized for github config
150
151
  config.enableGlobalCache = false;
@@ -279,7 +279,7 @@ export default class PobLibGenerator extends Generator {
279
279
  runner: this.pobjson.testing
280
280
  ? this.pobjson.testing.runner || 'jest'
281
281
  : undefined,
282
- build: withBabel,
282
+ build: withBabel || withTypescript,
283
283
  typescript: withTypescript,
284
284
  documentation: !!this.pobjson.documentation,
285
285
  codecov: this.pobjson.testing && this.pobjson.testing.codecov,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pob",
3
- "version": "16.1.0",
3
+ "version": "17.1.0",
4
4
  "description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
5
5
  "keywords": [
6
6
  "skeleton"
@@ -62,15 +62,15 @@
62
62
  "mem-fs-editor": "11.0.0",
63
63
  "minimist": "1.2.8",
64
64
  "parse-author": "2.0.0",
65
- "pob-dependencies": "9.1.0",
65
+ "pob-dependencies": "10.1.0",
66
66
  "prettier": "2.8.8",
67
67
  "semver": "7.5.4",
68
68
  "validate-npm-package-name": "^5.0.0",
69
- "yarn-workspace-utils": "2.1.0",
69
+ "yarn-workspace-utils": "3.0.0",
70
70
  "yeoman-environment": "4.1.3",
71
71
  "yeoman-generator": "7.1.1"
72
72
  },
73
73
  "devDependencies": {
74
- "@pob/root": "8.9.1"
74
+ "@pob/root": "8.10.0"
75
75
  }
76
76
  }