@kitschpatrol/shared-config 4.3.0 → 4.3.1
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 +7 -7
package/bin/cli.js
CHANGED
|
@@ -59,7 +59,7 @@ ${s}`,i=`${s||""}${i}
|
|
|
59
59
|
`),u+=1;break}let f=await nd(y).search(w);if(!f?.config){l.write(`Error: Could not find or parse config file for ${y}.
|
|
60
60
|
`),u+=1;break}l.write(`${t} config path: "${f?.filepath}"
|
|
61
61
|
`),l.write(Fr(f.config)),l.write(`
|
|
62
|
-
`);break}default:{console.error(`Unknown command name: ${p}`),u+=1;break}}process.exit(u>0?1:0)}var Or={check:["cspell-config","eslint-config","prettier-config","stylelint-config"],init:["cspell-config","eslint-config","prettier-config","
|
|
62
|
+
`);break}default:{console.error(`Unknown command name: ${p}`),u+=1;break}}process.exit(u>0?1:0)}var Or={check:["cspell-config","eslint-config","prettier-config","stylelint-config"],init:["cspell-config","eslint-config","prettier-config","remark-config","repo-config","stylelint-config"],printConfig:["cspell-config","eslint-config","prettier-config","remark-config","repo-config","stylelint-config"],help:["cspell-config","eslint-config","prettier-config","remark-config","repo-config","stylelint-config"],version:["cspell-config","eslint-config","prettier-config","remark-config","repo-config","stylelint-config"],fix:["eslint-config","prettier-config","stylelint-config"]};function ud(e){return e.replaceAll(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,t=>"-"+t.toLowerCase())}function vs(e,t){return t===1?e:e+"s"}async function fd(e,t,r,n){let i=[],s=[];for(let o of t)e.write(`Running "${o}${n.join(" ")} ${r.join(" ")}"
|
|
63
63
|
`),await Sr(e,{command:o,options:r},n)===0?i.push(o):s.push(o);return i.length>0&&e.write(`\u2705 ${Pe.green.bold(`${i.length} Successful ${vs("command",i.length)}:`)} ${i.join(", ")}
|
|
64
64
|
`),s.length>0&&e.write(`\u274C ${Pe.green.bold(`${s.length} Failed ${vs("command",s.length)}:`)} ${s.join(", ")}
|
|
65
65
|
`),s.length>0?1:0}await ys("shared-config","\u{1F52C}","yellow",Object.keys(Or).reduce((e,t)=>(e[t]={async command(r,n){return fd(r,Or[t],[`--${ud(t)}`],n)},defaultArguments:[]},e),{}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitschpatrol/shared-config",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Linting and formatting for web projects.",
|
|
6
6
|
"repository": {
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"cosmiconfig": "^9.0.0",
|
|
34
34
|
"execa": "^8.0.1",
|
|
35
35
|
"fs-extra": "^11.2.0",
|
|
36
|
-
"@kitschpatrol/cspell-config": "4.3.
|
|
37
|
-
"@kitschpatrol/eslint-config": "4.3.
|
|
38
|
-
"@kitschpatrol/
|
|
39
|
-
"@kitschpatrol/
|
|
40
|
-
"@kitschpatrol/
|
|
41
|
-
"@kitschpatrol/
|
|
36
|
+
"@kitschpatrol/cspell-config": "4.3.1",
|
|
37
|
+
"@kitschpatrol/eslint-config": "4.3.1",
|
|
38
|
+
"@kitschpatrol/prettier-config": "4.3.1",
|
|
39
|
+
"@kitschpatrol/remark-config": "4.3.1",
|
|
40
|
+
"@kitschpatrol/repo-config": "4.3.1",
|
|
41
|
+
"@kitschpatrol/stylelint-config": "4.3.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"camelcase": "^8.0.0",
|