@kitschpatrol/cspell-config 6.0.1 → 6.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"cosmiconfig";import"cosmiconfig-typescript-loader";import{execa as e}from"execa";import t from"fs-extra";import n,{constants as r}from"node:fs";import i from"node:path";import{PassThrough as a,Transform as o}from"node:stream";import{fileURLToPath as s}from"node:url";import{packageUp as c,packageUpSync as l}from"package-up";import u from"picocolors";import d from"yargs";import{hideBin as f}from"yargs/helpers";import p from"@pinojs/json-colorizer";import m from"decircular";import h from"deepmerge";import g from"json-stringify-pretty-compact";import{findWorkspacesRoot as _}from"find-workspaces";import v,{access as y}from"node:fs/promises";import{getDefaultConfigLoader as b,resolveConfigFileImports as x}from"cspell-lib";import{stripVTControlCharacters as S}from"node:util";import{lint as C}from"cspell";var w=`6.0.1`;function T(e){return e instanceof Error&&`exitCode`in e&&typeof e.exitCode==`number`}function E(e){return p(g(m(e),{indent:2,replacer(e,t){return typeof t==`function`?t.name:t}}),{colors:{BRACKET:`gray`}})}const D=(e,t,n)=>{let r=[...e];for(let[i,a]of t.entries())r[i]===void 0?r[i]=n.cloneUnlessOtherwiseSpecified(a,n):n.isMergeableObject(a)?r[i]=O(e[i],a,n):e.includes(a)||r.push(a);return r};function O(e,t,n={arrayMerge:D}){return h(e,t,n)}function k(){let e=l();if(e===void 0)throw Error(`No package.json found.`);return i.dirname(e)}function A(){let e=_();return e===null?k():e.location}function j(e){if(e===`workspace-root`)return A();if(e===`package-dir`)return k();if(typeof e==`string`){if(!t.pathExistsSync(e))throw Error(`Custom cwd directory does not exist: ${e}`);return e}return process.cwd()}async function M(e,t){try{let{default:n}=await import(`prettier`),r=await n.resolveConfig(e),i=await n.format(t,{filepath:e,...r});await v.writeFile(e,i,`utf8`)}catch{console.warn(`Skipped formatting ${e} since Prettier is not installed.`)}}async function N(e){try{await M(e,await v.readFile(e,`utf8`))}catch{}}function P(e){return new o({transform(t,n,r){let i=t.toString().split(/\r?\n/).filter(t=>t.trim()!==``&&!e(t)).join(`
2
+ import"cosmiconfig";import"cosmiconfig-typescript-loader";import{execa as e}from"execa";import t from"fs-extra";import n,{constants as r}from"node:fs";import i from"node:path";import{PassThrough as a,Transform as o}from"node:stream";import{fileURLToPath as s}from"node:url";import{packageUp as c,packageUpSync as l}from"package-up";import u from"picocolors";import d from"yargs";import{hideBin as f}from"yargs/helpers";import p from"@pinojs/json-colorizer";import m from"decircular";import h from"deepmerge";import g from"json-stringify-pretty-compact";import{findWorkspacesRoot as _}from"find-workspaces";import v,{access as y}from"node:fs/promises";import{getDefaultConfigLoader as b,resolveConfigFileImports as x}from"cspell-lib";import{stripVTControlCharacters as S}from"node:util";import{lint as C}from"cspell";var w=`6.0.3`;function T(e){return e instanceof Error&&`exitCode`in e&&typeof e.exitCode==`number`}function E(e){return p(g(m(e),{indent:2,replacer(e,t){return typeof t==`function`?t.name:t}}),{colors:{BRACKET:`gray`}})}const D=(e,t,n)=>{let r=[...e];for(let[i,a]of t.entries())r[i]===void 0?r[i]=n.cloneUnlessOtherwiseSpecified(a,n):n.isMergeableObject(a)?r[i]=O(e[i],a,n):e.includes(a)||r.push(a);return r};function O(e,t,n={arrayMerge:D}){return h(e,t,n)}function k(){let e=l();if(e===void 0)throw Error(`No package.json found.`);return i.dirname(e)}function A(){let e=_();return e===null?k():e.location}function j(e){if(e===`workspace-root`)return A();if(e===`package-dir`)return k();if(typeof e==`string`){if(!t.pathExistsSync(e))throw Error(`Custom cwd directory does not exist: ${e}`);return e}return process.cwd()}async function M(e,t){try{let{default:n}=await import(`prettier`),r=await n.resolveConfig(e),i=await n.format(t,{filepath:e,...r});await v.writeFile(e,i,`utf8`)}catch{console.warn(`Skipped formatting ${e} since Prettier is not installed.`)}}async function N(e){try{await M(e,await v.readFile(e,`utf8`))}catch{}}function P(e){return new o({transform(t,n,r){let i=t.toString().split(/\r?\n/).filter(t=>t.trim()!==``&&!e(t)).join(`
3
3
  `);this.push(i+`
4
4
  `),r()}})}function F(e,t){return new o({transform(n,r,i){let a=n.toString().split(/\r?\n/).filter(e=>e.trim().length>0).map(n=>`${e?t===void 0?e:u[t](e):``} ${n}\n`).join(``);this.push(a),i()}})}async function I(e){let t=[];return new Promise((n,r)=>{e.on(`data`,e=>t.push(e)),e.on(`error`,e=>{r(e)}),e.on(`end`,()=>{n(Buffer.concat(t).toString(`utf8`))})})}function L(e,t){return t===1?e:e+`s`}async function R(e,t,n,r,i){let a=1,o;if(r.logPrefix===void 0)o=e;else{let t=F(r.logPrefix,r.logColor);t.pipe(e),o=t}i&&o.write(u.bold(`Running: "${r.name}() with Positional arguments: ${String(t)} and Option flags: ${String(n)}"`));try{a=await r.execute(o,t,n)}catch(e){console.error(String(e)),a=1}return a}async function z(t,n,r,i,o){let s=1,c;if(i.logPrefix===void 0)c=t;else{let e=F(i.logPrefix,i.logColor);e.pipe(t),c=e}let l=i.subcommands??[],u=[...i.receivePositionalArguments?n:[],...i.positionalArguments??[]],d=[...i.receiveOptionFlags?r:[],...i.optionFlags??[]],f=[...l,...d,...u],p=j(i.cwdOverride);o&&c.write(`Running: "${i.name} ${f.join(` `)}"`);let m=i.prettyJsonOutput?new a:c;try{let t=e(i.name,f,{cwd:p,env:{...process.env.NO_COLOR===void 0?{FORCE_COLOR:`true`}:{}},preferLocal:!0,reject:!1,stdin:`inherit`});if(t.stdout.pipe(m,{end:!1}),t.stderr.pipe(m,{end:!1}),await t,i.prettyJsonOutput){m.end();let e=await I(m),t=E(JSON.parse(e)).split(`
5
5
  `);for(let e of t)c.write(`${e}\n`)}s=t.exitCode??1}catch(e){console.error(`${i.name} failed with error:`),console.error(e),T(e)&&(s=typeof e.exitCode==`number`?e.exitCode:1)}return s}function B(e){return`execute`in e}async function V(e,t,n,r,i,a){let o=[];for(let a of r){let r=await(B(a)?R(e,t,n,a,i):z(e,t,n,a,i));o.push({exitCode:r,name:a.name})}if(a){let t=o.filter(({exitCode:e})=>e===0).map(({name:e})=>e),n=o.filter(({exitCode:e})=>e!==0).map(({name:e})=>e),r=o.length;t.length>0&&e.write(`✅ ${u.green(u.bold(`${t.length} / ${r} ${L(`Command`,t.length)} Succeeded:`))} ${u.green(t.join(`, `))}\n`),n.length>0&&e.write(`❌ ${u.red(u.bold(`${n.length} / ${r} ${L(`Command`,n.length)} Failed:`))} ${u.red(n.join(`, `))}\n`)}return o.every(({exitCode:e})=>e===0)?0:1}async function H(e,r,a,o){let l=await c();if(l===void 0)throw Error("The `init` command must be used in a directory with a package.json file");let u=await c({cwd:s(import.meta.url)});if(u===void 0)return e.write(`Error: The script being called was not in a package, weird.
@@ -42,10 +42,12 @@ beforeunload
42
42
  bézier
43
43
  bgsound
44
44
  Bibliogram
45
+ bibliothecary
45
46
  bignum
46
47
  bigram
47
48
  bigrams
48
49
  bindability
50
+ bioinformatics
49
51
  bitvise
50
52
  Blotar
51
53
  boids
@@ -140,6 +142,7 @@ deno
140
142
  devel
141
143
  dicom
142
144
  disablepictureinpicture
145
+ distutils
143
146
  divs
144
147
  dnsperf
145
148
  docsify
@@ -177,6 +180,7 @@ ffmetadata
177
180
  ffprobe
178
181
  fieldset
179
182
  figcaption
183
+ Figshare
180
184
  filenamify
181
185
  fileprivate
182
186
  filesize
@@ -196,6 +200,7 @@ fpsgraph
196
200
  fsnotes
197
201
  ftest
198
202
  fullscreen
203
+ funder
199
204
  fusuma
200
205
  Futil
201
206
  gchat
@@ -211,7 +216,9 @@ gittower
211
216
  glart
212
217
  glew
213
218
  glkview
219
+ godebug
214
220
  gogs
221
+ goreleaser
215
222
  Grav
216
223
  Gridsome
217
224
  GSAP
@@ -235,6 +242,7 @@ hostnames
235
242
  hotreload
236
243
  hrefs
237
244
  htmlmixed
245
+ Huggingface
238
246
  hypedl
239
247
  hypem
240
248
  hyperlegible
@@ -277,9 +285,11 @@ ksdiff
277
285
  labelot
278
286
  lanczos
279
287
  langchain
288
+ laravel
280
289
  latexsvg
281
290
  latlon
282
291
  lazygit
292
+ Leiningen
283
293
  lerp
284
294
  lerper
285
295
  lerpy
@@ -378,6 +388,7 @@ multiport
378
388
  multipose
379
389
  Multitaction
380
390
  multiview
391
+ mypy
381
392
  nannou
382
393
  navas
383
394
  Navizon
@@ -515,6 +526,9 @@ Proxyman
515
526
  psds
516
527
  psexec
517
528
  pushshift
529
+ pylib
530
+ pylint
531
+ pypi
518
532
  pytest
519
533
  qalpha
520
534
  qcolor
@@ -561,6 +575,7 @@ scrollbooster
561
575
  sectionhead
562
576
  seedrandom
563
577
  setext
578
+ setuptools
564
579
  shadcn
565
580
  shikijs
566
581
  shorturl
@@ -687,6 +702,7 @@ webc
687
702
  Webflow
688
703
  webmail
689
704
  webmin
705
+ webservise
690
706
  webui
691
707
  Wekinator
692
708
  wetlab
@@ -694,6 +710,7 @@ wght
694
710
  whisperx
695
711
  WHOIS
696
712
  wikilink
713
+ winget
697
714
  winstaller
698
715
  wireshark
699
716
  woob
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/cspell-config",
3
- "version": "6.0.1",
3
+ "version": "6.0.3",
4
4
  "description": "CSpell configuration for @kitschpatrol/shared-config.",
5
5
  "keywords": [
6
6
  "shared-config",
@@ -46,7 +46,7 @@
46
46
  "@cspell/cspell-types": "^9.7.0",
47
47
  "@pinojs/json-colorizer": "^4.0.0",
48
48
  "case-police": "^2.2.0",
49
- "cosmiconfig": "^9.0.0",
49
+ "cosmiconfig": "^9.0.1",
50
50
  "cosmiconfig-typescript-loader": "^6.2.0",
51
51
  "cspell": "^9.7.0",
52
52
  "cspell-lib": "^9.7.0",
@@ -54,7 +54,7 @@
54
54
  "deepmerge": "^4.3.1",
55
55
  "execa": "^9.6.1",
56
56
  "find-workspaces": "^0.3.1",
57
- "fs-extra": "^11.3.3",
57
+ "fs-extra": "^11.3.4",
58
58
  "json-stringify-pretty-compact": "^4.0.0",
59
59
  "package-up": "^5.0.0",
60
60
  "picocolors": "^1.1.1",
@@ -68,6 +68,12 @@
68
68
  "engines": {
69
69
  "node": ">=20.19.0"
70
70
  },
71
+ "devEngines": {
72
+ "runtime": {
73
+ "name": "node",
74
+ "version": ">=22.18.0"
75
+ }
76
+ },
71
77
  "publishConfig": {
72
78
  "access": "public"
73
79
  },