@kitschpatrol/shared-config 4.6.4 → 4.6.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 +1 -1
- package/package.json +8 -8
package/bin/cli.js
CHANGED
|
@@ -56,7 +56,7 @@ ${s}`,i=`${s||""}${i}
|
|
|
56
56
|
`),l+=1;break}let h=await Gf(v).search(L);if(!h?.config){u.write(`Error: Could not find or parse config file for ${v}.
|
|
57
57
|
`),l+=1;break}u.write(`${t} config path: "${h?.filepath}"
|
|
58
58
|
`),u.write(ir(h.config)),u.write(`
|
|
59
|
-
`);break}default:{console.error(`Unknown command name: ${g}`),l+=1;break}}process.exit(l>0?1:0)}function Yf(e){return e instanceof Error&&"exitCode"in e&&typeof e.exitCode=="number"}var Vt={check:["cspell-config","eslint-config","prettier-config","mdat-config","stylelint-config"],init:["cspell-config","eslint-config","prettier-config","mdat-config","
|
|
59
|
+
`);break}default:{console.error(`Unknown command name: ${g}`),l+=1;break}}process.exit(l>0?1:0)}function Yf(e){return e instanceof Error&&"exitCode"in e&&typeof e.exitCode=="number"}var Vt={check:["cspell-config","eslint-config","prettier-config","mdat-config","stylelint-config"],init:["cspell-config","eslint-config","prettier-config","mdat-config","repo-config","remark-config","stylelint-config"],printConfig:["cspell-config","eslint-config","prettier-config","mdat-config","repo-config","remark-config","stylelint-config"],help:["cspell-config","eslint-config","prettier-config","mdat-config","repo-config","remark-config","stylelint-config"],version:["cspell-config","eslint-config","prettier-config","mdat-config","repo-config","remark-config","stylelint-config"],fix:["eslint-config","prettier-config","mdat-config","stylelint-config"]};function Vf(e){return e.replaceAll(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=>"-"+t.toLowerCase())}function Ni(e,t){return t===1?e:e+"s"}async function Xf(e,t,r,n){let i=[],s=[];for(let o of t)e.write(`Running "${o}${n.join(" ")} ${r.join(" ")}"
|
|
60
60
|
`),await Yt(e,{command:o,options:r},n)===0?i.push(o):s.push(o);return i.length>0&&e.write(`\u2705 ${Ae.green.bold(`${i.length} Successful ${Ni("command",i.length)}:`)} ${i.join(", ")}
|
|
61
61
|
`),s.length>0&&e.write(`\u274C ${Ae.green.bold(`${s.length} Failed ${Ni("command",s.length)}:`)} ${s.join(", ")}
|
|
62
62
|
`),s.length>0?1:0}await xi("shared-config","\u{1F52C}","yellow",Object.keys(Vt).reduce((e,t)=>(e[t]={async command(r,n){return Xf(r,Vt[t],[`--${Vf(t)}`],n)},defaultArguments:[]},e),{}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/shared-config",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A collection of shared configurations for various linters and formatting tools. All managed as a single dependency, and invoked via a single command.",
|
|
6
6
|
"repository": {
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"cosmiconfig": "^9.0.0",
|
|
46
46
|
"execa": "^8.0.1",
|
|
47
47
|
"fs-extra": "^11.2.0",
|
|
48
|
-
"@kitschpatrol/
|
|
49
|
-
"@kitschpatrol/
|
|
50
|
-
"@kitschpatrol/mdat-config": "4.6.
|
|
51
|
-
"@kitschpatrol/
|
|
52
|
-
"@kitschpatrol/
|
|
53
|
-
"@kitschpatrol/
|
|
54
|
-
"@kitschpatrol/
|
|
48
|
+
"@kitschpatrol/cspell-config": "4.6.5",
|
|
49
|
+
"@kitschpatrol/eslint-config": "4.6.5",
|
|
50
|
+
"@kitschpatrol/mdat-config": "4.6.5",
|
|
51
|
+
"@kitschpatrol/remark-config": "4.6.5",
|
|
52
|
+
"@kitschpatrol/prettier-config": "4.6.5",
|
|
53
|
+
"@kitschpatrol/stylelint-config": "4.6.5",
|
|
54
|
+
"@kitschpatrol/repo-config": "4.6.5"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"camelcase": "^8.0.0",
|