pob 18.0.0 → 18.1.1

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,31 @@
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.1](https://github.com/christophehurpeau/pob/compare/pob@18.1.0...pob@18.1.1) (2023-12-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fix definition path for app library ([4f0c265](https://github.com/christophehurpeau/pob/commit/4f0c2652a7fb498e541a1615aea15849e8cb0032))
12
+
13
+
14
+
15
+
16
+ ## [18.1.0](https://github.com/christophehurpeau/pob/compare/pob@18.0.0...pob@18.1.0) (2023-12-29)
17
+
18
+
19
+ ### Features
20
+
21
+ * enable typescript-eslint EXPERIMENTAL_useProjectService option ([4bccf68](https://github.com/christophehurpeau/pob/commit/4bccf68b4f743dba5211432ea1dba056e901bc93))
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * fix package.type for app library ([d5df9d7](https://github.com/christophehurpeau/pob/commit/d5df9d72f2325c042e3ff2d610a2d3d4c378c950))
27
+
28
+
29
+
30
+
6
31
  ## [18.0.0](https://github.com/christophehurpeau/pob/compare/pob@17.4.0...pob@18.0.0) (2023-12-29)
7
32
 
8
33
 
@@ -157,6 +157,7 @@ export default class PobAppGenerator extends Generator {
157
157
  testing: this.appConfig.testing,
158
158
  documentation: false,
159
159
  fromPob: this.options.fromPob,
160
+ srcDirectory,
160
161
  buildDirectory: 'build',
161
162
  });
162
163
  }
@@ -57,6 +57,8 @@ function updateParserAndPlugins(
57
57
  };
58
58
  } else {
59
59
  config.parserOptions = {
60
+ // eslint-disable-next-line camelcase
61
+ EXPERIMENTAL_useProjectService: true,
60
62
  project: `${relativePath}/tsconfig.json`,
61
63
  };
62
64
  }
@@ -46,6 +46,12 @@ export default class CommonTranspilerGenerator extends Generator {
46
46
  default: false,
47
47
  });
48
48
 
49
+ this.option('srcDirectory', {
50
+ type: String,
51
+ required: false,
52
+ default: 'src',
53
+ });
54
+
49
55
  this.option('buildDirectory', {
50
56
  type: String,
51
57
  required: false,
@@ -219,7 +225,7 @@ export default class CommonTranspilerGenerator extends Generator {
219
225
 
220
226
  /* main / aliases / typing */
221
227
 
222
- if (this.options.isApp) {
228
+ if (this.options.isApp && !this.options.isAppLibrary) {
223
229
  delete pkg.types;
224
230
  delete pkg.typings;
225
231
  } else if (pkg.typings) {
@@ -235,6 +241,8 @@ export default class CommonTranspilerGenerator extends Generator {
235
241
  pkg.types = `./${
236
242
  this.options.buildDirectory
237
243
  }/${'definitions/'}index.d.ts`;
244
+ } else if (this.options.isAppLibrary) {
245
+ pkg.types = `./${this.options.srcDirectory}/index.ts`;
238
246
  }
239
247
  } else {
240
248
  if (!pkg.main) {
@@ -245,7 +253,7 @@ export default class CommonTranspilerGenerator extends Generator {
245
253
  } else {
246
254
  pkg.main = './lib/index.js';
247
255
  }
248
- if (!this.options.isApp) {
256
+ if (!this.options.isApp || this.options.isAppLibrary) {
249
257
  if (this.fs.exists('./lib/index.ts')) {
250
258
  pkg.types = './lib/index.ts';
251
259
  } else if (this.fs.exists('./lib/index.d.ts') || pkg.types) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pob",
3
- "version": "18.0.0",
3
+ "version": "18.1.1",
4
4
  "description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
5
5
  "keywords": [
6
6
  "skeleton"