pob 10.7.0 → 10.10.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,47 @@
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
+ # [10.10.0](https://github.com/christophehurpeau/pob/compare/pob@10.9.0...pob@10.10.0) (2022-04-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * **deps:** update @pob/eslint-config ([#1236](https://github.com/christophehurpeau/pob/issues/1236)) ([e3cc1ad](https://github.com/christophehurpeau/pob/commit/e3cc1ad732f162391cdf4df87bc5f65e9c61e347))
12
+ * **deps:** update dependency eslint to v8.13.0 ([#1253](https://github.com/christophehurpeau/pob/issues/1253)) ([8dcb07c](https://github.com/christophehurpeau/pob/commit/8dcb07c46858dd94fc812cc0cd4c45db41bbdf6c))
13
+ * **pob:** remove dev dependency prettier now it is reexported from @pob/root ([83caec0](https://github.com/christophehurpeau/pob/commit/83caec02203d3afd2e28c5efac4ff73c169803eb))
14
+
15
+
16
+
17
+
18
+
19
+ # [10.9.0](https://github.com/christophehurpeau/pob/compare/pob@10.8.0...pob@10.9.0) (2022-04-03)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **deps:** update dependency prettier to v2.6.1 ([#1246](https://github.com/christophehurpeau/pob/issues/1246)) ([5eeeee8](https://github.com/christophehurpeau/pob/commit/5eeeee8f08df70077bf38172242365a797732c33))
25
+ * **deps:** update dependency prettier to v2.6.2 ([#1249](https://github.com/christophehurpeau/pob/issues/1249)) ([42f4d13](https://github.com/christophehurpeau/pob/commit/42f4d135b5275185a5f5907f5336a40ebc3148b3))
26
+
27
+
28
+ ### Features
29
+
30
+ * **deps:** update dependency eslint to v8.12.0 ([#1247](https://github.com/christophehurpeau/pob/issues/1247)) ([326ee2a](https://github.com/christophehurpeau/pob/commit/326ee2a708ece9249fbeeefd8e8e3a382698d49b))
31
+
32
+
33
+
34
+
35
+
36
+ # [10.8.0](https://github.com/christophehurpeau/pob/compare/pob@10.7.0...pob@10.8.0) (2022-03-24)
37
+
38
+
39
+ ### Features
40
+
41
+ * **deps:** update dependency prettier to v2.6.0 ([#1240](https://github.com/christophehurpeau/pob/issues/1240)) ([acfaca1](https://github.com/christophehurpeau/pob/commit/acfaca1645a0eeb5e842aa55ae37970da98310ff))
42
+
43
+
44
+
45
+
46
+
6
47
  # [10.7.0](https://github.com/christophehurpeau/pob/compare/pob@10.6.0...pob@10.7.0) (2022-03-13)
7
48
 
8
49
 
@@ -225,11 +225,7 @@ export default class CommonLintGenerator extends Generator {
225
225
  true,
226
226
  );
227
227
  } else {
228
- packageUtils.addOrRemoveDevDependencies(
229
- pkg,
230
- (inLerna && inLerna.root) || this.options.monorepo || !globalEslint,
231
- ['prettier'],
232
- );
228
+ packageUtils.removeDevDependencies(pkg, ['prettier']);
233
229
  packageUtils.addOrRemoveDevDependencies(
234
230
  pkg,
235
231
  !globalEslint ||
@@ -37,10 +37,9 @@ export default class CoreYarnGenerator extends Generator {
37
37
  if (!fs.existsSync('.yarnrc.yml')) {
38
38
  // yarn 2 not yet installed
39
39
  // https://yarnpkg.com/getting-started/install
40
- this.spawnCommandSync('yarn', ['set', 'version', 'berry']);
41
- this.spawnCommandSync('yarn', ['set', 'version', 'latest']);
40
+ this.spawnCommandSync('yarn', ['set', 'version', 'stable']);
42
41
  } else {
43
- this.spawnCommandSync('yarn', ['set', 'version', 'latest']);
42
+ this.spawnCommandSync('yarn', ['set', 'version', 'stable']);
44
43
  ensureJsonFileFormatted(this.destinationPath('package.json'));
45
44
  }
46
45
  }
package/lib/pob.js CHANGED
@@ -44,7 +44,7 @@ const printUsage = () => {
44
44
 
45
45
  const readJson = (filepath) => {
46
46
  try {
47
- return JSON.parse(readFileSync(filepath, 'utf-8'));
47
+ return JSON.parse(readFileSync(filepath, 'utf8'));
48
48
  } catch {
49
49
  return null;
50
50
  }
@@ -4,7 +4,7 @@ import prettier from 'prettier';
4
4
 
5
5
  export default function ensureJsonFileFormatted(path) {
6
6
  try {
7
- let contentJson = fs.readFileSync(path, 'utf-8');
7
+ let contentJson = fs.readFileSync(path, 'utf8');
8
8
  if (path === 'package.json' || path.endsWith('/package.json')) {
9
9
  contentJson = JSON.stringify(sortPkg(JSON.parse(contentJson)), null, 2);
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pob",
3
- "version": "10.7.0",
3
+ "version": "10.10.0",
4
4
  "description": "Pile of bones, library generator with git/babel/typescript/typedoc/readme/jest",
5
5
  "keywords": [
6
6
  "skeleton"
@@ -41,14 +41,14 @@
41
41
  "dependencies": {
42
42
  "@lerna/package-graph": "^4.0.0",
43
43
  "@lerna/project": "^4.0.0",
44
- "@pob/eslint-config": "49.0.0",
45
- "@pob/eslint-config-typescript": "49.0.0",
46
- "@pob/eslint-config-typescript-react": "49.0.1",
44
+ "@pob/eslint-config": "49.1.0",
45
+ "@pob/eslint-config-typescript": "49.2.1",
46
+ "@pob/eslint-config-typescript-react": "49.2.0",
47
47
  "@pob/sort-eslint-config": "^3.0.1",
48
48
  "@pob/sort-object": "^4.0.1",
49
49
  "@pob/sort-pkg": "^4.0.1",
50
50
  "@yarnpkg/parsers": "2.5.0",
51
- "eslint": "8.11.0",
51
+ "eslint": "8.13.0",
52
52
  "findup-sync": "^5.0.0",
53
53
  "git-remote-url": "^1.0.1",
54
54
  "github-username": "^6.0.0",
@@ -62,10 +62,10 @@
62
62
  "minimist-argv": "^1.1.0",
63
63
  "parse-author": "^2.0.0",
64
64
  "pob-dependencies": "6.17.0",
65
- "prettier": "2.5.1",
65
+ "prettier": "2.6.2",
66
66
  "semver": "^7.3.4",
67
67
  "yeoman-environment": "^3.5.1",
68
68
  "yeoman-generator": "^5.4.0"
69
69
  },
70
- "gitHead": "552efd409c73dc34014aaad8a5d05b513f849fb8"
70
+ "gitHead": "ef8bddd03fe7543d9dac575a3450549c874f7f9d"
71
71
  }