pob 11.0.0 → 11.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,17 @@
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
+ # [11.1.0](https://github.com/christophehurpeau/pob/compare/pob@11.0.0...pob@11.1.0) (2022-11-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * lint-staged config esm ([9a2fc45](https://github.com/christophehurpeau/pob/commit/9a2fc45740eb4374171d1f0de2d73f99df90e243))
12
+
13
+
14
+
15
+
16
+
6
17
  # [11.0.0](https://github.com/christophehurpeau/pob/compare/pob@10.21.0...pob@11.0.0) (2022-11-13)
7
18
 
8
19
 
@@ -48,10 +48,10 @@ export default class CommonHuskyGenerator extends Generator {
48
48
  this.fs.delete(this.destinationPath('husky.config.js'));
49
49
  }
50
50
 
51
- if (this.fs.exists(this.destinationPath('lint-staged.config.js'))) {
51
+ if (this.fs.exists(this.destinationPath('lint-staged.config.cjs'))) {
52
52
  this.fs.move(
53
- this.destinationPath('lint-staged.config.js'),
54
53
  this.destinationPath('lint-staged.config.cjs'),
54
+ this.destinationPath('lint-staged.config.js'),
55
55
  );
56
56
  }
57
57
 
@@ -69,10 +69,17 @@ export default class CommonHuskyGenerator extends Generator {
69
69
  // '@commitlint/config-lerna-scopes': '6.1.3',
70
70
  // });
71
71
 
72
- this.fs.copy(
73
- this.templatePath('lint-staged.config.cjs.txt'),
74
- this.destinationPath('lint-staged.config.cjs'),
75
- );
72
+ if (pkg.type !== 'module') {
73
+ this.fs.copy(
74
+ this.templatePath('lint-staged.config.cjs.txt'),
75
+ this.destinationPath('lint-staged.config.js'),
76
+ );
77
+ } else {
78
+ this.fs.copy(
79
+ this.templatePath('lint-staged.config.js.txt'),
80
+ this.destinationPath('lint-staged.config.js'),
81
+ );
82
+ }
76
83
  }
77
84
 
78
85
  pkg.commitlint = {
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const createLintStagedConfig = require('@pob/root/createLintStagedConfig');
3
+ const createLintStagedConfig = require('@pob/root/createLintStagedConfig.cjs');
4
4
 
5
5
  module.exports = createLintStagedConfig();
@@ -0,0 +1,3 @@
1
+ import createLintStagedConfig from '@pob/root/createLintStagedConfig';
2
+
3
+ export default createLintStagedConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pob",
3
- "version": "11.0.0",
3
+ "version": "11.1.0",
4
4
  "description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
5
5
  "keywords": [
6
6
  "skeleton"
@@ -57,14 +57,14 @@
57
57
  "minimist": "1.2.7",
58
58
  "node-fetch": "3.3.0",
59
59
  "parse-author": "2.0.0",
60
- "pob-dependencies": "7.0.0",
60
+ "pob-dependencies": "7.1.0",
61
61
  "prettier": "2.7.1",
62
62
  "semver": "7.3.8",
63
63
  "yeoman-environment": "3.12.1",
64
64
  "yeoman-generator": "5.7.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@pob/root": "7.0.0"
67
+ "@pob/root": "7.1.0"
68
68
  },
69
- "gitHead": "bc7651f464269099759abba08194fc016f5ecf8b"
69
+ "gitHead": "cfac4a5dd8c45fbdcf93a5ca4354bb1d3352f8fa"
70
70
  }