@pob/root 5.8.0 → 6.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,60 @@
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
+ ## [6.1.1](https://github.com/christophehurpeau/pob/compare/@pob/root@6.1.0...@pob/root@6.1.1) (2021-12-12)
7
+
8
+
9
+ ### Reverts
10
+
11
+ * fix: go back to commonjs modules for yarn pnp compatibility ([4e943b6](https://github.com/christophehurpeau/pob/commit/4e943b65ac843b6900aa4f86294f13b8fb18a0e8))
12
+
13
+
14
+
15
+
16
+
17
+ # [6.1.0](https://github.com/christophehurpeau/pob/compare/@pob/root@6.0.0...@pob/root@6.1.0) (2021-12-12)
18
+
19
+
20
+ ### Features
21
+
22
+ * run npx pob update on @pob/root renovate update ([67666e9](https://github.com/christophehurpeau/pob/commit/67666e9a87941ac78cdf68373164a52a532020b1))
23
+
24
+
25
+
26
+
27
+
28
+ # [6.0.0](https://github.com/christophehurpeau/pob/compare/@pob/root@5.9.0...@pob/root@6.0.0) (2021-12-11)
29
+
30
+
31
+ ### Features
32
+
33
+ * drop node 12 ([2f32308](https://github.com/christophehurpeau/pob/commit/2f32308b06ca74d0deb3355707e3082fa73e25dc))
34
+
35
+
36
+ ### BREAKING CHANGES
37
+
38
+ * requires node 14
39
+
40
+
41
+
42
+
43
+
44
+ # [5.9.0](https://github.com/christophehurpeau/pob/compare/@pob/root@5.8.0...@pob/root@5.9.0) (2021-12-05)
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * **@pob/root:** only install ci workflows if ci is enabled ([4802555](https://github.com/christophehurpeau/pob/commit/48025558ce3f5c6bedefbbd39087cd7908bf179a))
50
+
51
+
52
+ ### Features
53
+
54
+ * **deps:** update commitlint monorepo to v15 (major) ([#1104](https://github.com/christophehurpeau/pob/issues/1104)) ([3ae680e](https://github.com/christophehurpeau/pob/commit/3ae680e101f3525c1855f001f50851c3b4f7dbc0))
55
+
56
+
57
+
58
+
59
+
6
60
  # [5.8.0](https://github.com/christophehurpeau/pob/compare/@pob/root@5.7.2...@pob/root@5.8.0) (2021-11-28)
7
61
 
8
62
 
@@ -3,15 +3,6 @@
3
3
  // eslint-disable-next-line import/no-unresolved
4
4
  import lintStaged from 'lint-staged';
5
5
 
6
- // const path = require('path');
7
- // const pkg = require('lint-staged/package.json');
8
-
9
- // // eslint-disable-next-line import/no-dynamic-require
10
- // require(path.join(
11
- // 'lint-staged',
12
- // typeof pkg.bin === 'string' ? pkg.bin : pkg.bin['lint-staged'],
13
- // ));
14
-
15
6
  lintStaged({
16
7
  concurrent: true,
17
8
  relative: true,
@@ -29,11 +29,13 @@ module.exports = function installGithubWorkflows({ pkg, pm }) {
29
29
 
30
30
  if (!isYarnBerry) return;
31
31
 
32
- installWorkflow('push-renovate-pob_root');
33
- installWorkflow('push-renovate-prettier');
32
+ if (fs.existsSync('.github')) {
33
+ installWorkflow('push-renovate-pob_root');
34
+ installWorkflow('push-renovate-prettier');
34
35
 
35
- installWorkflow(
36
- 'push-renovate-typedoc',
37
- !!(pkg.devDependencies && pkg.devDependencies.typedoc),
38
- );
36
+ installWorkflow(
37
+ 'push-renovate-typedoc',
38
+ !!(pkg.devDependencies && pkg.devDependencies.typedoc),
39
+ );
40
+ }
39
41
  };
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import '@pob/pretty-eslint-config/bin/pretty-eslint-config.js';
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import '@pob/pretty-pkg/bin/pretty-pkg.js';
@@ -34,6 +34,9 @@ jobs:
34
34
  - name: Run pob-root-postinstall
35
35
  run: yarn run pob-root-postinstall
36
36
 
37
+ - name: Run pob update
38
+ run: POB_GITHUB_TOKEN=$GH_TOKEN npx pob update --force
39
+
37
40
  - name: Check for added or modified files
38
41
  id: git-check-modified
39
42
  run: echo ::set-output name=modified::$(if [[ -z $(git status -s) ]]; then echo "false"; else echo "true"; fi)
@@ -3,7 +3,7 @@ name: Commit changes on @pob/root update
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - 'renovate/pob-root-**'
6
+ - 'renovate/typedoc'
7
7
 
8
8
  jobs:
9
9
  run-install-and-commit-modified-files:
@@ -28,8 +28,8 @@ jobs:
28
28
  - name: Check Dependencies
29
29
  run: yarn install --immutable --immutable-cache
30
30
 
31
- - name: Run pob-root-postinstall
32
- run: yarn run pob-root-postinstall
31
+ - name: Run generate:docs
32
+ run: yarn run generate:docs
33
33
 
34
34
  - name: Check for added or modified files
35
35
  id: git-check-modified
@@ -1,4 +1,20 @@
1
1
  {
2
2
  "root": true,
3
- "extends": ["@pob/eslint-config/node-commonjs"]
3
+ "extends": ["@pob/eslint-config/node-commonjs"],
4
+ "overrides": [
5
+ {
6
+ "files": ["**/*.test.{mjs,js}", "__tests__/**/*.{mjs,js}"],
7
+ "env": {
8
+ "jest": true
9
+ },
10
+ "rules": {
11
+ "import/no-extraneous-dependencies": [
12
+ "error",
13
+ {
14
+ "devDependencies": true
15
+ }
16
+ ]
17
+ }
18
+ }
19
+ ]
4
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pob/root",
3
- "version": "5.8.0",
3
+ "version": "6.1.1",
4
4
  "description": "root package",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -13,7 +13,7 @@
13
13
  "homepage": "https://github.com/christophehurpeau/pob",
14
14
  "type": "commonjs",
15
15
  "engines": {
16
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
16
+ "node": "^14.13.1 || >=16.0.0"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"
@@ -30,9 +30,10 @@
30
30
  "commitlint": "./bin/commitlint.js",
31
31
  "pob-root-lint-staged": "./bin/pob-root-lint-staged.mjs",
32
32
  "pob-root-postinstall": "./bin/pob-root-postinstall.js",
33
- "pretty-eslint-config": "./bin/pretty-eslint-config.js",
34
- "pretty-pkg": "./bin/pretty-pkg.js",
35
- "repository-check-dirty": "./bin/repository-check-dirty.js"
33
+ "pretty-eslint-config": "./bin/pretty-eslint-config.mjs",
34
+ "pretty-pkg": "./bin/pretty-pkg.mjs",
35
+ "repository-check-dirty": "./bin/repository-check-dirty.js",
36
+ "yarnhook": "./bin/yarnhook.js"
36
37
  },
37
38
  "scripts": {
38
39
  "lint": "yarn run lint:eslint",
@@ -45,14 +46,14 @@
45
46
  },
46
47
  "pob": {},
47
48
  "dependencies": {
48
- "@commitlint/cli": "14.1.0",
49
- "@pob/pretty-eslint-config": "^2.2.0",
50
- "@pob/pretty-pkg": "^3.2.0",
49
+ "@commitlint/cli": "15.0.0",
50
+ "@pob/pretty-eslint-config": "^3.0.1",
51
+ "@pob/pretty-pkg": "^4.0.1",
51
52
  "husky": "^7.0.0",
52
53
  "lint-staged": "12.1.2",
53
- "repository-check-dirty": "^3.2.0",
54
+ "repository-check-dirty": "^4.0.0",
54
55
  "semver": "^7.1.2",
55
56
  "which-pm-runs": "1.0.0"
56
57
  },
57
- "gitHead": "0e6a3cfc36ebda0daa441a33b96288fbb08d8c21"
58
+ "gitHead": "c4e9e72111816af56f3303a4c04988011428b06e"
58
59
  }
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- 'use strict';
4
-
5
- const path = require('path');
6
- const pkg = require('@pob/pretty-eslint-config/package.json');
7
-
8
- // eslint-disable-next-line import/no-dynamic-require
9
- require(path.join(
10
- '@pob/pretty-eslint-config',
11
- typeof pkg.bin === 'string' ? pkg.bin : pkg.bin['pretty-eslint-config'],
12
- ));
package/bin/pretty-pkg.js DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- 'use strict';
4
-
5
- const path = require('path');
6
- const pkg = require('@pob/pretty-pkg/package.json');
7
-
8
- // eslint-disable-next-line import/no-dynamic-require
9
- require(path.join(
10
- '@pob/pretty-pkg',
11
- typeof pkg.bin === 'string' ? pkg.bin : pkg.bin['pretty-pkg'],
12
- ));