@pob/root 6.21.1 → 6.23.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,36 @@
|
|
|
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.23.0](https://github.com/christophehurpeau/pob/compare/@pob/root@6.22.0...@pob/root@6.23.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **@pob/root:** always build in pre-commit ([ca17fc0](https://github.com/christophehurpeau/pob/commit/ca17fc022dd366ffafed0bdf410f328e13f0f867))
|
|
12
|
+
* better prettier config ([329d560](https://github.com/christophehurpeau/pob/commit/329d560594cade521e35a6f3237888db49f67b87))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# [6.22.0](https://github.com/christophehurpeau/pob/compare/@pob/root@6.21.1...@pob/root@6.22.0) (2022-09-04)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **deps:** update dependency @commitlint/cli to v17.1.1 ([#1381](https://github.com/christophehurpeau/pob/issues/1381)) ([0553fd7](https://github.com/christophehurpeau/pob/commit/0553fd736fbab37679344a516b863c0df2226c43))
|
|
24
|
+
* **deps:** update dependency @commitlint/cli to v17.1.2 ([#1382](https://github.com/christophehurpeau/pob/issues/1382)) ([d66aec6](https://github.com/christophehurpeau/pob/commit/d66aec61606910412becebe5616e65f0a5ecad30))
|
|
25
|
+
* fix condition to run tsc when ts or tsx file changed ([5a3eed6](https://github.com/christophehurpeau/pob/commit/5a3eed6b7a59360d6bcf74ac1945a675591cda09))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **deps:** update dependency @commitlint/cli to v17.1.0 ([#1380](https://github.com/christophehurpeau/pob/issues/1380)) ([f77de31](https://github.com/christophehurpeau/pob/commit/f77de311e9bd07f8e127581c621d74b2789e226f))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
## [6.21.1](https://github.com/christophehurpeau/pob/compare/@pob/root@6.21.0...@pob/root@6.21.1) (2022-08-12)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @pob/root
|
|
@@ -31,6 +31,16 @@ const getSrcDirectories = () => {
|
|
|
31
31
|
return '{src,lib}';
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
const getDistDirectories = () => {
|
|
35
|
+
if (workspaces) {
|
|
36
|
+
return `${
|
|
37
|
+
workspaces.length === 1 ? workspaces[0] : `{${workspaces.join(',')}}`
|
|
38
|
+
}/dist`;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return 'dist';
|
|
42
|
+
};
|
|
43
|
+
|
|
34
44
|
const generateInstallAndDedupe = () => {
|
|
35
45
|
if (pm.name === 'npm') {
|
|
36
46
|
return ['npm install', 'npm dedupe'];
|
|
@@ -86,6 +96,13 @@ module.exports = function createLintStagedConfig() {
|
|
|
86
96
|
[`{.storybook,${srcDirectories}}/**/*.css`]: [
|
|
87
97
|
'prettier --parser css --write',
|
|
88
98
|
],
|
|
89
|
-
|
|
99
|
+
[`${srcDirectories}/**/*.{ts,tsx}`]: () =>
|
|
100
|
+
pkg.devDependencies && pkg.devDependencies['pob-babel']
|
|
101
|
+
? [
|
|
102
|
+
'rollup --config rollup.config.mjs',
|
|
103
|
+
'tsc -b tsconfig.build.json',
|
|
104
|
+
`git --glob-pathspecs add ${getDistDirectories()}/**/*`,
|
|
105
|
+
]
|
|
106
|
+
: ['tsc'],
|
|
90
107
|
};
|
|
91
108
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/root",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.23.0",
|
|
4
4
|
"description": "root package",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
".": "./lib/index.js",
|
|
24
24
|
"./createLintStagedConfig": "./createLintStagedConfig.js",
|
|
25
25
|
"./createLintStagedConfig.js": "./createLintStagedConfig.js",
|
|
26
|
+
"./prettier-config": "./prettier-config.js",
|
|
27
|
+
"./prettier-config.js": "./prettier-config.js",
|
|
26
28
|
"./package.json": "./package.json"
|
|
27
29
|
},
|
|
28
30
|
"sideEffects": false,
|
|
@@ -41,24 +43,20 @@
|
|
|
41
43
|
"lint": "yarn run lint:eslint",
|
|
42
44
|
"lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet @pob/root"
|
|
43
45
|
},
|
|
44
|
-
"prettier":
|
|
45
|
-
"trailingComma": "all",
|
|
46
|
-
"singleQuote": true,
|
|
47
|
-
"arrowParens": "always"
|
|
48
|
-
},
|
|
46
|
+
"prettier": "@pob/root/prettier-config",
|
|
49
47
|
"pob": {},
|
|
50
48
|
"dependencies": {
|
|
51
|
-
"@commitlint/cli": "17.
|
|
52
|
-
"@pob/pretty-eslint-config": "3.
|
|
53
|
-
"@pob/pretty-pkg": "4.
|
|
49
|
+
"@commitlint/cli": "17.1.2",
|
|
50
|
+
"@pob/pretty-eslint-config": "3.3.0",
|
|
51
|
+
"@pob/pretty-pkg": "4.3.0",
|
|
54
52
|
"husky": "~8.0.1",
|
|
55
53
|
"json5": "^2.2.1",
|
|
56
54
|
"lint-staged": "13.0.3",
|
|
57
|
-
"pob-dependencies": "6.
|
|
55
|
+
"pob-dependencies": "6.32.0",
|
|
58
56
|
"prettier": "2.7.1",
|
|
59
|
-
"repository-check-dirty": "4.
|
|
57
|
+
"repository-check-dirty": "4.2.0",
|
|
60
58
|
"semver": "^7.3.7",
|
|
61
59
|
"which-pm-runs": "1.1.0"
|
|
62
60
|
},
|
|
63
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "eeba016a9877a33eac8fde9ef79c49957308c394"
|
|
64
62
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
trailingComma: 'all',
|
|
5
|
+
singleQuote: true,
|
|
6
|
+
// https://github.com/airbnb/javascript/pull/1863
|
|
7
|
+
arrowParens: 'always',
|
|
8
|
+
|
|
9
|
+
overrides: [
|
|
10
|
+
{
|
|
11
|
+
files: ['*.yml'],
|
|
12
|
+
options: {
|
|
13
|
+
singleQuote: false,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
};
|