pob 17.0.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,18 @@
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
+
6
18
  ## [17.0.0](https://github.com/christophehurpeau/pob/compare/pob@16.1.0...pob@17.0.0) (2023-12-25)
7
19
 
8
20
 
@@ -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": "17.0.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,7 +62,7 @@
62
62
  "mem-fs-editor": "11.0.0",
63
63
  "minimist": "1.2.8",
64
64
  "parse-author": "2.0.0",
65
- "pob-dependencies": "10.0.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",
@@ -71,6 +71,6 @@
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
  }