@kitschpatrol/shared-config 5.0.4 → 5.0.5
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/bin/cli.js +11 -6
- package/package.json +14 -14
- package/readme.md +9 -19
package/bin/cli.js
CHANGED
|
@@ -5541,7 +5541,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
5541
5541
|
var yargs_default = Yargs;
|
|
5542
5542
|
|
|
5543
5543
|
// ../../package.json
|
|
5544
|
-
var version = "5.0.
|
|
5544
|
+
var version = "5.0.5";
|
|
5545
5545
|
|
|
5546
5546
|
// ../../src/execa-utils.ts
|
|
5547
5547
|
function isErrorExecaError(error) {
|
|
@@ -5879,10 +5879,15 @@ async function executeCliCommand(logStream, positionalArguments, optionFlags, co
|
|
|
5879
5879
|
try {
|
|
5880
5880
|
const subprocess = execa(command2.name, resolvedArguments, {
|
|
5881
5881
|
cwd,
|
|
5882
|
-
env:
|
|
5882
|
+
env: {
|
|
5883
|
+
// Use colorful output unless NO_COLOR is set
|
|
5883
5884
|
// eslint-disable-next-line ts/naming-convention
|
|
5884
|
-
FORCE_COLOR: "true"
|
|
5885
|
-
|
|
5885
|
+
...process.env.NO_COLOR === void 0 ? { FORCE_COLOR: "true" } : {},
|
|
5886
|
+
// Quiet node for when processing *.config.ts files in Node 22
|
|
5887
|
+
// Suppress experimental type stripping warning with --no-warnings
|
|
5888
|
+
// eslint-disable-next-line ts/naming-convention
|
|
5889
|
+
NODE_OPTIONS: "--experimental-strip-types --disable-warning=ExperimentalWarning"
|
|
5890
|
+
},
|
|
5886
5891
|
preferLocal: true,
|
|
5887
5892
|
reject: false,
|
|
5888
5893
|
// Prevents throwing on non-zero exit code
|
|
@@ -6871,7 +6876,7 @@ var commandDefinition7 = {
|
|
|
6871
6876
|
fix: {
|
|
6872
6877
|
commands: [
|
|
6873
6878
|
{
|
|
6874
|
-
execute:
|
|
6879
|
+
execute: copyrightYearFixerCommand,
|
|
6875
6880
|
name: copyrightYearLinterCommand.name
|
|
6876
6881
|
}
|
|
6877
6882
|
],
|
|
@@ -6884,7 +6889,7 @@ var commandDefinition7 = {
|
|
|
6884
6889
|
lint: {
|
|
6885
6890
|
commands: [
|
|
6886
6891
|
{
|
|
6887
|
-
execute:
|
|
6892
|
+
execute: copyrightYearLinterCommand,
|
|
6888
6893
|
name: copyrightYearFixerCommand.name
|
|
6889
6894
|
}
|
|
6890
6895
|
],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/shared-config",
|
|
3
|
-
"version": "5.0.
|
|
4
|
-
"description": "A collection of shared configurations
|
|
3
|
+
"version": "5.0.5",
|
|
4
|
+
"description": "A collection of shared configurations, linters, and formatting tools for TypeScript projects. All managed as a single dependency, and invoked via a single CLI command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
7
7
|
"eslint-config",
|
|
@@ -41,23 +41,23 @@
|
|
|
41
41
|
"execa": "^9.5.2",
|
|
42
42
|
"find-workspaces": "^0.3.1",
|
|
43
43
|
"fs-extra": "^11.3.0",
|
|
44
|
-
"prettier": "^3.
|
|
45
|
-
"@kitschpatrol/
|
|
46
|
-
"@kitschpatrol/
|
|
47
|
-
"@kitschpatrol/mdat-config": "5.0.
|
|
48
|
-
"@kitschpatrol/
|
|
49
|
-
"@kitschpatrol/
|
|
50
|
-
"@kitschpatrol/
|
|
51
|
-
"@kitschpatrol/
|
|
52
|
-
"@kitschpatrol/
|
|
53
|
-
"@kitschpatrol/typescript-config": "5.0.
|
|
44
|
+
"prettier": "^3.5.0",
|
|
45
|
+
"@kitschpatrol/cspell-config": "5.0.5",
|
|
46
|
+
"@kitschpatrol/eslint-config": "5.0.5",
|
|
47
|
+
"@kitschpatrol/mdat-config": "5.0.5",
|
|
48
|
+
"@kitschpatrol/knip-config": "5.0.5",
|
|
49
|
+
"@kitschpatrol/prettier-config": "5.0.5",
|
|
50
|
+
"@kitschpatrol/remark-config": "5.0.5",
|
|
51
|
+
"@kitschpatrol/repo-config": "5.0.5",
|
|
52
|
+
"@kitschpatrol/stylelint-config": "5.0.5",
|
|
53
|
+
"@kitschpatrol/typescript-config": "5.0.5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"chalk": "^5.4.1",
|
|
57
|
-
"globby": "^14.0
|
|
57
|
+
"globby": "^14.1.0"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
|
-
"node": ">=22.
|
|
60
|
+
"node": ">=22.13.1",
|
|
61
61
|
"pnpm": ">=10.0.0"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
package/readme.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
<!-- description -->
|
|
17
17
|
|
|
18
|
-
**A collection of shared configurations
|
|
18
|
+
**A collection of shared configurations, linters, and formatting tools for TypeScript projects. All managed as a single dependency, and invoked via a single CLI command.**
|
|
19
19
|
|
|
20
20
|
<!-- /description -->
|
|
21
21
|
|
|
@@ -98,17 +98,19 @@ kpi init
|
|
|
98
98
|
Is the same as running:
|
|
99
99
|
|
|
100
100
|
```sh
|
|
101
|
-
kpi-
|
|
101
|
+
kpi-repo init
|
|
102
|
+
kpi-mdat init
|
|
103
|
+
kpi-typescript init
|
|
102
104
|
kpi-eslint init
|
|
105
|
+
kpi-stylelint init
|
|
106
|
+
kpi-cspell init
|
|
103
107
|
kpi-knip init
|
|
104
|
-
kpi-mdat init
|
|
105
|
-
kpi-prettier init
|
|
106
108
|
kpi-remark init
|
|
107
|
-
kpi-
|
|
108
|
-
kpi-stylelint init
|
|
109
|
-
kpi-typescript init
|
|
109
|
+
kpi-prettier init
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
+
_(Sub-commands are always executed in the above order.)_
|
|
113
|
+
|
|
112
114
|
The top-level `kpi` command also takes care of some nuances in terms of _which_ sub-packages implement _which_ commands, and which subcommands take arguments.
|
|
113
115
|
|
|
114
116
|
## Getting started
|
|
@@ -343,18 +345,6 @@ For local development via `pnpm`, use `file:` dependency protocol instead of `li
|
|
|
343
345
|
|
|
344
346
|
Something to investigate: An [approach](https://github.com/antfu/eslint-config#vs-code-support-auto-fix) to ignoring style rules in VS Code, and possibly migrate all style handling to eslint instead of prettier.
|
|
345
347
|
|
|
346
|
-
Serial run order:
|
|
347
|
-
|
|
348
|
-
1. `kpi-repo`
|
|
349
|
-
2. `kpi-mdat`
|
|
350
|
-
3. `kpi-typescript`
|
|
351
|
-
4. `kpi-eslint`
|
|
352
|
-
5. `kpi-stylelint`
|
|
353
|
-
6. `kpi-cspell`
|
|
354
|
-
7. `kpi-knip`
|
|
355
|
-
8. `kpi-remark`
|
|
356
|
-
9. `kpi-prettier`
|
|
357
|
-
|
|
358
348
|
## Background
|
|
359
349
|
|
|
360
350
|
### Motivation
|