@kitschpatrol/shared-config 4.6.0 → 4.6.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.
Files changed (3) hide show
  1. package/bin/cli.js +1 -1
  2. package/package.json +8 -8
  3. package/readme.md +1 -1
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","mdat-config","prettier-config","stylelint-config"],init:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","remark-config","stylelint-config"],printConfig:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","remark-config","stylelint-config"],help:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","remark-config","stylelint-config"],version:["cspell-config","eslint-config","mdat-config","prettier-config","repo-config","remark-config","stylelint-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(" ")}"
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","remark-config","repo-config","stylelint-config"],printConfig:["cspell-config","eslint-config","mdat-config","prettier-config","remark-config","repo-config","stylelint-config"],help:["cspell-config","eslint-config","mdat-config","prettier-config","remark-config","repo-config","stylelint-config"],version:["cspell-config","eslint-config","mdat-config","prettier-config","remark-config","repo-config","stylelint-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.6.0",
3
+ "version": "4.6.1",
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/eslint-config": "4.6.0",
49
- "@kitschpatrol/cspell-config": "4.6.0",
50
- "@kitschpatrol/stylelint-config": "4.6.0",
51
- "@kitschpatrol/remark-config": "4.6.0",
52
- "@kitschpatrol/repo-config": "4.6.0",
53
- "@kitschpatrol/mdat-config": "4.6.0",
54
- "@kitschpatrol/prettier-config": "4.6.0"
48
+ "@kitschpatrol/cspell-config": "4.6.1",
49
+ "@kitschpatrol/mdat-config": "4.6.1",
50
+ "@kitschpatrol/remark-config": "4.6.1",
51
+ "@kitschpatrol/eslint-config": "4.6.1",
52
+ "@kitschpatrol/stylelint-config": "4.6.1",
53
+ "@kitschpatrol/prettier-config": "4.6.1",
54
+ "@kitschpatrol/repo-config": "4.6.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "camelcase": "^8.0.0",
package/readme.md CHANGED
@@ -169,7 +169,7 @@ The monorepo must be kept intact, as the sub-packages depend on scripts in the p
169
169
 
170
170
  Pnpm considers module hoisting harmful, and I tend to agree, but certain exceptions are carved out as necessary:
171
171
 
172
- - CSpell, markdownlint, mdat, ESLint, and Prettier all need to be hoisted via `public-hoist-pattern` to be accessible in `pnpm exec` scripts and to VS Code plugins.
172
+ - CSpell, remark, mdat, ESLint, and Prettier all need to be hoisted via `public-hoist-pattern` to be accessible in `pnpm exec` scripts and to VS Code plugins.
173
173
 
174
174
  - Even basic file-only packages like `repo-config` seem to need to be hoisted via for their bin scripts to be accessible via `pnpm exec`
175
175