@kitschpatrol/shared-config 5.0.1 → 5.0.3
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 +16 -9
- package/package.json +11 -10
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.3";
|
|
5545
5545
|
|
|
5546
5546
|
// ../../src/execa-utils.ts
|
|
5547
5547
|
function isErrorExecaError(error) {
|
|
@@ -6493,6 +6493,7 @@ var sharedKnipConfig = {
|
|
|
6493
6493
|
"{index,cli,main}.{js,mjs,cjs,jsx,ts,tsx,mts,cts}!",
|
|
6494
6494
|
"src/{index,cli,main}.{js,mjs,cjs,jsx,ts,tsx,mts,cts}!",
|
|
6495
6495
|
// Customized entries
|
|
6496
|
+
"src/{bin,lib,cli}/{index,cli,main}.{js,mjs,cjs,jsx,ts,tsx,mts,cts}!",
|
|
6496
6497
|
"scripts/**/*.ts",
|
|
6497
6498
|
".remarkrc.js",
|
|
6498
6499
|
"cspell.config.js",
|
|
@@ -6508,11 +6509,7 @@ var sharedKnipConfig = {
|
|
|
6508
6509
|
"@kitschpatrol/mdat-config",
|
|
6509
6510
|
"@kitschpatrol/prettier-config",
|
|
6510
6511
|
"@kitschpatrol/remark-config",
|
|
6511
|
-
"@kitschpatrol/
|
|
6512
|
-
// Technically not needed?
|
|
6513
|
-
"@kitschpatrol/stylelint-config",
|
|
6514
|
-
"@kitschpatrol/typescript-config"
|
|
6515
|
-
// Technically not needed?
|
|
6512
|
+
"@kitschpatrol/stylelint-config"
|
|
6516
6513
|
]
|
|
6517
6514
|
};
|
|
6518
6515
|
var src_default = sharedKnipConfig;
|
|
@@ -6543,7 +6540,12 @@ var commandDefinition3 = {
|
|
|
6543
6540
|
{
|
|
6544
6541
|
cwdOverride: "workspace-root",
|
|
6545
6542
|
name: "knip",
|
|
6546
|
-
optionFlags: [
|
|
6543
|
+
optionFlags: [
|
|
6544
|
+
"--fix",
|
|
6545
|
+
"--allow-remove-files",
|
|
6546
|
+
"--no-config-hints",
|
|
6547
|
+
...getWorkspaceOptionFlags()
|
|
6548
|
+
]
|
|
6547
6549
|
}
|
|
6548
6550
|
],
|
|
6549
6551
|
description: `Automatically remove unused code and dependencies. ${DESCRIPTION.packageRun} ${DESCRIPTION.monorepoRun}`,
|
|
@@ -6561,7 +6563,7 @@ var commandDefinition3 = {
|
|
|
6561
6563
|
// Run from root, then pass --workspace IF in a monorepo and called from a subpackage
|
|
6562
6564
|
cwdOverride: "workspace-root",
|
|
6563
6565
|
name: "knip",
|
|
6564
|
-
optionFlags: ["--no-progress", ...getWorkspaceOptionFlags()]
|
|
6566
|
+
optionFlags: ["--no-progress", "--no-config-hints", ...getWorkspaceOptionFlags()]
|
|
6565
6567
|
}
|
|
6566
6568
|
// "Production" pass is not worth it?
|
|
6567
6569
|
// {
|
|
@@ -6636,7 +6638,12 @@ var commandDefinition4 = {
|
|
|
6636
6638
|
init: {
|
|
6637
6639
|
configFile: "mdat.config.ts",
|
|
6638
6640
|
configPackageJson: {
|
|
6639
|
-
|
|
6641
|
+
// Gnarly but it works...
|
|
6642
|
+
// https://github.com/cosmiconfig/cosmiconfig#imports
|
|
6643
|
+
// A plain `@kitschpatrol/mdat-config` unfortunately does not resolve the export
|
|
6644
|
+
mdat: {
|
|
6645
|
+
$import: "node_modules/@kitschpatrol/mdat-config/dist/index.js"
|
|
6646
|
+
}
|
|
6640
6647
|
},
|
|
6641
6648
|
locationOptionFlag: true
|
|
6642
6649
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/shared-config",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "A collection of shared configurations for various linters and formatting tools. All managed as a single dependency, and invoked via a single command.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shared-config",
|
|
@@ -38,17 +38,18 @@
|
|
|
38
38
|
"@pinojs/json-colorizer": "^4.0.0",
|
|
39
39
|
"cosmiconfig": "^9.0.0",
|
|
40
40
|
"execa": "^9.5.2",
|
|
41
|
+
"find-workspaces": "^0.3.1",
|
|
41
42
|
"fs-extra": "^11.3.0",
|
|
42
43
|
"prettier": "^3.4.2",
|
|
43
|
-
"@kitschpatrol/cspell-config": "5.0.
|
|
44
|
-
"@kitschpatrol/eslint-config": "5.0.
|
|
45
|
-
"@kitschpatrol/
|
|
46
|
-
"@kitschpatrol/
|
|
47
|
-
"@kitschpatrol/
|
|
48
|
-
"@kitschpatrol/
|
|
49
|
-
"@kitschpatrol/
|
|
50
|
-
"@kitschpatrol/
|
|
51
|
-
"@kitschpatrol/typescript-config": "5.0.
|
|
44
|
+
"@kitschpatrol/cspell-config": "5.0.3",
|
|
45
|
+
"@kitschpatrol/eslint-config": "5.0.3",
|
|
46
|
+
"@kitschpatrol/knip-config": "5.0.3",
|
|
47
|
+
"@kitschpatrol/mdat-config": "5.0.3",
|
|
48
|
+
"@kitschpatrol/prettier-config": "5.0.3",
|
|
49
|
+
"@kitschpatrol/repo-config": "5.0.3",
|
|
50
|
+
"@kitschpatrol/remark-config": "5.0.3",
|
|
51
|
+
"@kitschpatrol/stylelint-config": "5.0.3",
|
|
52
|
+
"@kitschpatrol/typescript-config": "5.0.3"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"chalk": "^5.4.1",
|