@ornikar/repo-config 8.0.1 → 8.2.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 +22 -0
- package/bin/commitlint.js +9 -0
- package/bin/ornikar-lint-staged.mjs +15 -0
- package/lib/postinstall/install-husky.js +1 -1
- package/package.json +4 -2
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
|
+
# [8.2.0](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@8.1.0...@ornikar/repo-config@8.2.0) (2022-04-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **repo-config:** reexport commitlint for yarn berry ([cc41482](https://github.com/ornikar/shared-configs/commit/cc414824170d71b1aff10693983385caa0bc58ed))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [8.1.0](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@8.0.1...@ornikar/repo-config@8.1.0) (2022-04-01)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* ornikar-lint-staged for yarn berry ([306bc13](https://github.com/ornikar/shared-configs/commit/306bc136a4e0e5cc5e31234b6d948516f9b2352d))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [8.0.1](https://github.com/ornikar/shared-configs/compare/@ornikar/repo-config@8.0.0...@ornikar/repo-config@8.0.1) (2022-03-31)
|
|
7
29
|
|
|
8
30
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const pkg = require('@commitlint/cli/package.json');
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line import/no-dynamic-require
|
|
9
|
+
require(path.join('@commitlint/cli', typeof pkg.bin === 'string' ? pkg.bin : pkg.bin.commitlint));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line import/no-unresolved
|
|
4
|
+
import lintStaged from 'lint-staged';
|
|
5
|
+
|
|
6
|
+
lintStaged({
|
|
7
|
+
concurrent: true,
|
|
8
|
+
relative: true,
|
|
9
|
+
})
|
|
10
|
+
.then((passed) => {
|
|
11
|
+
process.exitCode = passed ? 0 : 1;
|
|
12
|
+
})
|
|
13
|
+
.catch(() => {
|
|
14
|
+
process.exitCode = 1;
|
|
15
|
+
});
|
|
@@ -83,7 +83,7 @@ module.exports = function installHusky({ pkg, pm }) {
|
|
|
83
83
|
writeHook('commit-msg', `${pmExec} commitlint --edit $1`);
|
|
84
84
|
writeHook(
|
|
85
85
|
'pre-commit',
|
|
86
|
-
`${pmExec} lint-staged
|
|
86
|
+
`${pmExec} ornikar-lint-staged${pkg.devDependencies && pkg.devDependencies.typescript ? ` && ${pmExec} tsc` : ''}`,
|
|
87
87
|
);
|
|
88
88
|
|
|
89
89
|
const runCleanCache = shouldRunCleanCacheOnDependenciesChanges();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ornikar/repo-config",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "🔧 repo config",
|
|
5
5
|
"repository": "ornikar/shared-configs",
|
|
6
6
|
"license": "ISC",
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
13
|
"bin": {
|
|
14
|
+
"commitlint": "./bin/commitlint.js",
|
|
15
|
+
"ornikar-lint-staged": "./bin/ornikar-lint-staged.mjs",
|
|
14
16
|
"ornikar-prettier-check": "./bin/ornikar-prettier-check.sh",
|
|
15
17
|
"ornikar-prettier-fix": "./bin/ornikar-prettier-fix.sh",
|
|
16
18
|
"ornikar-repo-config-postinstall": "./bin/ornikar-repo-config-postinstall.js"
|
|
@@ -25,5 +27,5 @@
|
|
|
25
27
|
"which-pm-runs": "^1.1.0",
|
|
26
28
|
"yarn-deduplicate": "3.1.0"
|
|
27
29
|
},
|
|
28
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "cc49a3e5e8e16468cfaf83c3a6a895496d75fd54"
|
|
29
31
|
}
|