@kitschpatrol/shared-config 4.7.1 → 4.7.2

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.
Files changed (3) hide show
  1. package/bin/cli.js +1 -1
  2. package/package.json +8 -8
  3. package/readme.md +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","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(" ")}"
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","mdat-config","prettier-config","stylelint-config"],init:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","stylelint-config","remark-config"],printConfig:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","stylelint-config","remark-config"],help:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","stylelint-config","remark-config"],version:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","stylelint-config","remark-config"],fix:["eslint-config","mdat-config","prettier-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.7.1",
3
+ "version": "4.7.2",
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/cspell-config": "4.7.1",
49
- "@kitschpatrol/eslint-config": "4.7.1",
50
- "@kitschpatrol/mdat-config": "4.7.1",
51
- "@kitschpatrol/stylelint-config": "4.7.1",
52
- "@kitschpatrol/prettier-config": "4.7.1",
53
- "@kitschpatrol/repo-config": "4.7.1",
54
- "@kitschpatrol/remark-config": "4.7.1"
48
+ "@kitschpatrol/cspell-config": "4.7.2",
49
+ "@kitschpatrol/eslint-config": "4.7.2",
50
+ "@kitschpatrol/mdat-config": "4.7.2",
51
+ "@kitschpatrol/prettier-config": "4.7.2",
52
+ "@kitschpatrol/stylelint-config": "4.7.2",
53
+ "@kitschpatrol/remark-config": "4.7.2",
54
+ "@kitschpatrol/repo-config": "4.7.2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "camelcase": "^8.0.0",
package/readme.md CHANGED
@@ -152,14 +152,14 @@ Usage:
152
152
  shared-config [<file|glob> ...]
153
153
  ```
154
154
 
155
- | Option | Alias | Argument | Description |
156
- | ---------------- | ----- | -------- | ---------------------------------------------------------------- |
157
- | `--check` | `-c` | | Check for and report issues. Same as shared-config. |
158
- | `--init` | `-i` | | Initialize by copying starter config files to your project root. |
159
- | `--print-config` | `-p` | `<path>` | Print the effective configuration at a certain path. |
160
- | `--fix` | `-f` | | Fix all auto-fixable issues, and report the un-fixable. |
161
- | `--help` | `-h` | | Print this help info. |
162
- | `--version` | `-v` | | Print the package version. |
155
+ | Option | Argument | Description |
156
+ | ------------------------ | -------- | ---------------------------------------------------------------- |
157
+ | `--check`<br>`-c` | | Check for and report issues. Same as shared-config. |
158
+ | `--init`<br>`-i` | | Initialize by copying starter config files to your project root. |
159
+ | `--print-config`<br>`-p` | `<path>` | Print the effective configuration at a certain path. |
160
+ | `--fix`<br>`-f` | | Fix all auto-fixable issues, and report the un-fixable. |
161
+ | `--help`<br>`-h` | | Print this help info. |
162
+ | `--version`<br>`-v` | | Print the package version. |
163
163
 
164
164
  <!-- /cli-help -->
165
165