@pob/root 6.23.1 → 7.0.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/.eslintrc.json +1 -1
- package/CHANGELOG.md +22 -0
- package/README.md +3 -0
- package/bin/{commitlint.js → commitlint.cjs} +0 -0
- package/bin/{pob-root-lint-staged.mjs → pob-root-lint-staged.js} +0 -0
- package/bin/{pob-root-postinstall.js → pob-root-postinstall.cjs} +5 -5
- package/bin/postinstall/{install-github-workflows.js → install-github-workflows.cjs} +0 -0
- package/bin/postinstall/{install-husky.js → install-husky.cjs} +0 -0
- package/bin/postinstall/{install-scripts.js → install-scripts.cjs} +0 -0
- package/bin/postinstall/{install-vscode-tasks.js → install-vscode-tasks.cjs} +0 -0
- package/bin/postinstall/{update-yarn.js → update-yarn.cjs} +0 -0
- package/bin/{prettier.js → prettier.cjs} +0 -0
- package/bin/{pretty-eslint-config.mjs → pretty-eslint-config.js} +0 -0
- package/bin/{pretty-pkg.mjs → pretty-pkg.js} +0 -0
- package/bin/repository-check-dirty.js +1 -10
- package/{createLintStagedConfig.js → createLintStagedConfig.cjs} +9 -9
- package/lib/.eslintrc.json +2 -2
- package/package.json +23 -22
- /package/{prettier-config.js → prettier-config.cjs} +0 -0
package/.eslintrc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
# [7.0.0](https://github.com/christophehurpeau/pob/compare/@pob/root@6.23.1...@pob/root@7.0.0) (2022-11-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fix repository-check-dirty ([93ff29d](https://github.com/christophehurpeau/pob/commit/93ff29d0d1d44f79e59e049213e6caa6a1fedf22))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **deps:** update dependency @commitlint/cli to v17.2.0 ([#1447](https://github.com/christophehurpeau/pob/issues/1447)) ([e5b9440](https://github.com/christophehurpeau/pob/commit/e5b9440ba6f2c052e93cc9db69904e697707bad7))
|
|
17
|
+
* update to node 16 and ESM ([fcdc84f](https://github.com/christophehurpeau/pob/commit/fcdc84f423ac27fd6324b673b9da340b0d22a738))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
* drop node 14
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [6.23.1](https://github.com/christophehurpeau/pob/compare/@pob/root@6.23.0...@pob/root@6.23.1) (2022-10-19)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @pob/root
|
package/README.md
CHANGED
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
10
|
<a href="https://npmjs.org/package/@pob/root"><img src="https://img.shields.io/npm/v/@pob/root.svg?style=flat-square"></a>
|
|
11
|
+
<a href="https://npmjs.org/package/@pob/root"><img src="https://img.shields.io/npm/dw/@pob/root.svg?style=flat-square"></a>
|
|
12
|
+
<a href="https://npmjs.org/package/@pob/root"><img src="https://img.shields.io/node/v/@pob/root.svg?style=flat-square"></a>
|
|
13
|
+
<a href="https://npmjs.org/package/@pob/root"><img src="https://img.shields.io/npm/types/@pob/root.svg?style=flat-square"></a>
|
|
11
14
|
</p>
|
|
12
15
|
|
|
13
16
|
## Install
|
|
File without changes
|
|
File without changes
|
|
@@ -36,11 +36,11 @@ if (pm.name !== 'yarn' && pm.name !== 'npm') {
|
|
|
36
36
|
process.exit(1);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
require('./postinstall/update-yarn')({ pkg, pm });
|
|
40
|
-
require('./postinstall/install-husky')({ pkg, pm });
|
|
41
|
-
require('./postinstall/install-github-workflows')({ pkg, pm });
|
|
42
|
-
require('./postinstall/install-scripts')({ pkg, pm });
|
|
39
|
+
require('./postinstall/update-yarn.cjs')({ pkg, pm });
|
|
40
|
+
require('./postinstall/install-husky.cjs')({ pkg, pm });
|
|
41
|
+
require('./postinstall/install-github-workflows.cjs')({ pkg, pm });
|
|
42
|
+
require('./postinstall/install-scripts.cjs')({ pkg, pm });
|
|
43
43
|
|
|
44
44
|
if (process.env.POB_EXPERIMENTAL_VSCODE_TASKS) {
|
|
45
|
-
require('./postinstall/install-vscode-tasks')({ pkg, pm });
|
|
45
|
+
require('./postinstall/install-vscode-tasks.cjs')({ pkg, pm });
|
|
46
46
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const path = require('path');
|
|
6
|
-
const pkg = require('repository-check-dirty/package.json');
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line import/no-dynamic-require
|
|
9
|
-
require(path.join(
|
|
10
|
-
'repository-check-dirty',
|
|
11
|
-
typeof pkg.bin === 'string' ? pkg.bin : pkg.bin['repository-check-dirty'],
|
|
12
|
-
));
|
|
3
|
+
import 'repository-check-dirty/bin/repository-check-dirty.js';
|
|
@@ -31,15 +31,15 @@ const getSrcDirectories = () => {
|
|
|
31
31
|
return '{src,lib}';
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
const getDistDirectories = () => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
// const getDistDirectories = () => {
|
|
35
|
+
// if (workspaces) {
|
|
36
|
+
// return `${
|
|
37
|
+
// workspaces.length === 1 ? workspaces[0] : `{${workspaces.join(',')}}`
|
|
38
|
+
// }/dist`;
|
|
39
|
+
// }
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
};
|
|
41
|
+
// return 'dist';
|
|
42
|
+
// };
|
|
43
43
|
|
|
44
44
|
const generateInstallAndDedupe = () => {
|
|
45
45
|
if (pm.name === 'npm') {
|
|
@@ -101,7 +101,7 @@ module.exports = function createLintStagedConfig() {
|
|
|
101
101
|
? [
|
|
102
102
|
'rollup --config rollup.config.mjs',
|
|
103
103
|
'tsc -b tsconfig.build.json',
|
|
104
|
-
`git --glob-pathspecs add ${getDistDirectories()}/**/*`,
|
|
104
|
+
// `git --glob-pathspecs add ${getDistDirectories()}/**/*`,
|
|
105
105
|
]
|
|
106
106
|
: ['tsc'],
|
|
107
107
|
};
|
package/lib/.eslintrc.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"root": true,
|
|
3
|
-
"extends": ["@pob/eslint-config/node-
|
|
3
|
+
"extends": ["@pob/eslint-config/node-module"],
|
|
4
4
|
"overrides": [
|
|
5
5
|
{
|
|
6
|
-
"files": ["**/*.test.{
|
|
6
|
+
"files": ["**/*.test.{cjs,js}", "__tests__/**/*.{cjs,js}"],
|
|
7
7
|
"env": {
|
|
8
8
|
"jest": true
|
|
9
9
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/root",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "root package",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"directory": "@pob/root"
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://github.com/christophehurpeau/pob",
|
|
14
|
-
"type": "
|
|
14
|
+
"type": "module",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": "
|
|
16
|
+
"node": ">=16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"publishConfig": {
|
|
19
19
|
"access": "public"
|
|
@@ -21,23 +21,24 @@
|
|
|
21
21
|
"main": "./lib/index.js",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": "./lib/index.js",
|
|
24
|
-
"./createLintStagedConfig": "./createLintStagedConfig.
|
|
25
|
-
"./createLintStagedConfig.js": "./createLintStagedConfig.
|
|
26
|
-
"./
|
|
27
|
-
"./prettier-config
|
|
24
|
+
"./createLintStagedConfig": "./createLintStagedConfig.cjs",
|
|
25
|
+
"./createLintStagedConfig.js": "./createLintStagedConfig.cjs",
|
|
26
|
+
"./createLintStagedConfig.cjs": "./createLintStagedConfig.cjs",
|
|
27
|
+
"./prettier-config": "./prettier-config.cjs",
|
|
28
|
+
"./prettier-config.js": "./prettier-config.cjs",
|
|
29
|
+
"./prettier-config.cjs": "./prettier-config.cjs",
|
|
28
30
|
"./package.json": "./package.json"
|
|
29
31
|
},
|
|
30
32
|
"sideEffects": false,
|
|
31
33
|
"bin": {
|
|
32
|
-
"commitlint": "./bin/commitlint.
|
|
33
|
-
"pob-root-lint-staged": "./bin/pob-root-lint-staged.
|
|
34
|
-
"pob-root-postinstall": "./bin/pob-root-postinstall.
|
|
35
|
-
"pob-root-prettier": "./bin/prettier.
|
|
36
|
-
"prettier": "./bin/prettier.
|
|
37
|
-
"pretty-eslint-config": "./bin/pretty-eslint-config.
|
|
38
|
-
"pretty-pkg": "./bin/pretty-pkg.
|
|
39
|
-
"repository-check-dirty": "./bin/repository-check-dirty.js"
|
|
40
|
-
"yarnhook": "./bin/yarnhook.js"
|
|
34
|
+
"commitlint": "./bin/commitlint.cjs",
|
|
35
|
+
"pob-root-lint-staged": "./bin/pob-root-lint-staged.js",
|
|
36
|
+
"pob-root-postinstall": "./bin/pob-root-postinstall.cjs",
|
|
37
|
+
"pob-root-prettier": "./bin/prettier.cjs",
|
|
38
|
+
"prettier": "./bin/prettier.cjs",
|
|
39
|
+
"pretty-eslint-config": "./bin/pretty-eslint-config.js",
|
|
40
|
+
"pretty-pkg": "./bin/pretty-pkg.js",
|
|
41
|
+
"repository-check-dirty": "./bin/repository-check-dirty.js"
|
|
41
42
|
},
|
|
42
43
|
"scripts": {
|
|
43
44
|
"lint": "yarn run lint:eslint",
|
|
@@ -46,17 +47,17 @@
|
|
|
46
47
|
"prettier": "@pob/root/prettier-config",
|
|
47
48
|
"pob": {},
|
|
48
49
|
"dependencies": {
|
|
49
|
-
"@commitlint/cli": "17.
|
|
50
|
-
"@pob/pretty-eslint-config": "
|
|
51
|
-
"@pob/pretty-pkg": "
|
|
50
|
+
"@commitlint/cli": "17.2.0",
|
|
51
|
+
"@pob/pretty-eslint-config": "4.0.0",
|
|
52
|
+
"@pob/pretty-pkg": "5.0.0",
|
|
52
53
|
"husky": "~8.0.1",
|
|
53
54
|
"json5": "^2.2.1",
|
|
54
55
|
"lint-staged": "13.0.3",
|
|
55
|
-
"pob-dependencies": "
|
|
56
|
+
"pob-dependencies": "7.0.0",
|
|
56
57
|
"prettier": "2.7.1",
|
|
57
|
-
"repository-check-dirty": "
|
|
58
|
+
"repository-check-dirty": "5.0.0",
|
|
58
59
|
"semver": "^7.3.7",
|
|
59
60
|
"which-pm-runs": "1.1.0"
|
|
60
61
|
},
|
|
61
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "bc7651f464269099759abba08194fc016f5ecf8b"
|
|
62
63
|
}
|
|
File without changes
|