@xylabs/ts-scripts-yarn3 6.0.3 → 6.0.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.
Files changed (39) hide show
  1. package/dist/actions/fix.mjs +23 -60
  2. package/dist/actions/fix.mjs.map +1 -1
  3. package/dist/actions/index.mjs +83 -127
  4. package/dist/actions/index.mjs.map +1 -1
  5. package/dist/actions/lint.mjs +20 -66
  6. package/dist/actions/lint.mjs.map +1 -1
  7. package/dist/actions/recompile.mjs +1 -7
  8. package/dist/actions/recompile.mjs.map +1 -1
  9. package/dist/actions/relint.mjs +55 -45
  10. package/dist/actions/relint.mjs.map +1 -1
  11. package/dist/bin/package/relint.mjs +106 -0
  12. package/dist/bin/package/relint.mjs.map +1 -0
  13. package/dist/bin/xy.mjs +90 -102
  14. package/dist/bin/xy.mjs.map +1 -1
  15. package/dist/index.d.ts +29 -23
  16. package/dist/index.mjs +99 -141
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/xy/index.mjs +90 -102
  19. package/dist/xy/index.mjs.map +1 -1
  20. package/dist/xy/xy.mjs +90 -102
  21. package/dist/xy/xy.mjs.map +1 -1
  22. package/dist/xy/xyBuildCommands.mjs +1 -7
  23. package/dist/xy/xyBuildCommands.mjs.map +1 -1
  24. package/dist/xy/xyLintCommands.mjs +86 -112
  25. package/dist/xy/xyLintCommands.mjs.map +1 -1
  26. package/package.json +5 -4
  27. package/src/actions/fix.ts +3 -2
  28. package/src/actions/index.ts +0 -2
  29. package/src/actions/lint.ts +15 -42
  30. package/src/actions/recompile.ts +2 -5
  31. package/src/actions/relint.ts +71 -18
  32. package/src/bin/package/relint.ts +16 -0
  33. package/src/xy/xyLintCommands.ts +6 -8
  34. package/dist/actions/lint-clean.mjs +0 -222
  35. package/dist/actions/lint-clean.mjs.map +0 -1
  36. package/dist/actions/lint-profile.mjs +0 -118
  37. package/dist/actions/lint-profile.mjs.map +0 -1
  38. package/src/actions/lint-clean.ts +0 -24
  39. package/src/actions/lint-profile.ts +0 -5
package/dist/index.d.ts CHANGED
@@ -96,7 +96,21 @@ declare const depsAll: ({ incremental, jobs, verbose, }: DepsParams) => number;
96
96
 
97
97
  declare const dupdeps: () => number;
98
98
 
99
- declare const fix: () => Promise<number>;
99
+ interface LintParams {
100
+ fix?: boolean;
101
+ incremental?: boolean;
102
+ pkg?: string;
103
+ verbose?: boolean;
104
+ }
105
+ interface LintPackageParams {
106
+ pkg: string;
107
+ verbose?: boolean;
108
+ }
109
+ declare const lintPackage: ({ pkg, fix }: LintParams & Required<Pick<LintParams, "pkg">>) => number;
110
+ declare const lint: ({ pkg, verbose, incremental, fix, }?: LintParams) => number;
111
+ declare const lintAllPackages: ({ fix, verbose, incremental, }?: LintParams) => number;
112
+
113
+ declare const fix: (params?: LintParams) => number;
100
114
 
101
115
  interface GenDocsParams {
102
116
  incremental?: boolean;
@@ -117,25 +131,6 @@ declare const gitlintFix: () => number;
117
131
 
118
132
  declare const license: (pkg?: string) => Promise<number>;
119
133
 
120
- interface LintParams {
121
- fix?: boolean;
122
- incremental?: boolean;
123
- pkg?: string;
124
- verbose?: boolean;
125
- }
126
- interface LintPackageParams {
127
- pkg: string;
128
- verbose?: boolean;
129
- }
130
- declare const lintPackage: ({ pkg, fix }: LintParams) => Promise<number>;
131
- declare const lintAll: ({ fix }: LintParams) => Promise<number>;
132
- declare const lint: ({ pkg, verbose, incremental, fix, }?: LintParams) => Promise<number>;
133
- declare const lintAllPackages: ({ fix, verbose, incremental, }?: LintParams) => number;
134
-
135
- declare const lintClean: () => Promise<number>;
136
-
137
- declare const lintProfile: () => number;
138
-
139
134
  declare const npmignoreGen: (pkg?: string) => 1 | 0;
140
135
 
141
136
  declare const packageClean: () => Promise<number>;
@@ -247,12 +242,23 @@ interface RecompilePackageParams {
247
242
  verbose?: boolean;
248
243
  }
249
244
  declare const recompile: ({ verbose, target, pkg, incremental, }: RecompileParams) => Promise<number>;
250
- declare const recompilePackage: ({ verbose, target, pkg, }: RecompilePackageParams) => Promise<number>;
245
+ declare const recompilePackage: ({ target, pkg }: RecompilePackageParams) => Promise<number>;
251
246
  declare const recompileAll: ({ jobs, verbose, target, incremental, }: RecompileParams) => Promise<number>;
252
247
 
253
248
  declare const reinstall: () => number;
254
249
 
255
- declare const relint: () => number;
250
+ interface RelintParams {
251
+ incremental?: boolean;
252
+ pkg?: string;
253
+ verbose?: boolean;
254
+ }
255
+ interface RelintPackageParams {
256
+ pkg: string;
257
+ verbose?: boolean;
258
+ }
259
+ declare const relintPackage: ({ pkg }: RelintParams & Required<Pick<RelintParams, "pkg">>) => number;
260
+ declare const relint: ({ pkg, verbose, incremental, }?: RelintParams) => number;
261
+ declare const relintAllPackages: ({ verbose, incremental }?: RelintParams) => number;
256
262
 
257
263
  declare const retest: () => number;
258
264
 
@@ -385,4 +391,4 @@ declare const xyLintCommands: (args: Argv) => Argv<{}>;
385
391
 
386
392
  declare const xyParseOptions: () => Argv;
387
393
 
388
- export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CompileTypesParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, type DynamicShareConfig, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PathConfig, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, compileTypes, compileTypesAll, compileTypesPackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deleteGlob, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAll, lintAllPackages, lintClean, lintPackage, lintProfile, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTscTypes, packageCompileTsup, packageCompileTypes, packageCopyAssets, packageDeps, packageGenDocs, packageLint, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, tsupOptions, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
394
+ export { type BuildParams, CROSS_PLATFORM_NEWLINE, type CleanPackageParams, type CleanParams, type CompileConfig, type CompileMode, type CompileParams, type CompileTypesParams, type CopyAssetsParams, type DepsPackageParams, type DepsParams, DuplicateDetector, type DynamicShareConfig, type EntryMode, type GenDocsPackageParams, type GenDocsParams, INIT_CWD, type LintPackageParams, type LintParams, type LiveShareConfig, type PackageCompileTscConfig, type PackageCompileTsupConfig, type PackageCopyAssetsParams, type PackageJsonEx, type PackagePublintParams, type PathConfig, type PublintPackageParams, type PublintParams, type ReadFileSyncOptions, type RebuildParams, type RecompilePackageParams, type RecompileParams, type RelintPackageParams, type RelintParams, type ScriptStep, WINDOWS_NEWLINE_REGEX, type Workspace, type XyConfig, type XyConfigBase, type XyTscConfig, type XyTsupConfig, build, checkResult, clean, cleanAll, cleanDocs, cleanPackage, compile, compileAll, compilePackage, compileTypes, compileTypesAll, compileTypesPackage, copyAssets, createBuildConfig, cycle, dead, defaultBuildConfig, defaultReadFileSyncOptions, deleteGlob, deploy, deployMajor, deployMinor, deployNext, deps, depsAll, depsPackage, detectDuplicateDependencies, dupdeps, empty, fix, genDocs, genDocsAll, genDocsPackage, generateIgnoreFiles, gitignoreGen, gitlint, gitlintFix, isYarnVersionOrGreater, license, lint, lintAllPackages, lintPackage, loadConfig, loadPackageConfig, multiLineToJSONArray, notEmpty, npmignoreGen, packageClean, packageCleanOutputs, packageCleanTypescript, packageCompile, packageCompileTsc, packageCompileTscTypes, packageCompileTsup, packageCompileTypes, packageCopyAssets, packageDeps, packageGenDocs, packageLint, packagePublint, packageRecompile, parsedPackageJSON, processEx, publint, publintAll, publintPackage, readLines, readNonEmptyLines, rebuild, recompile, recompileAll, recompilePackage, reinstall, relint, relintAllPackages, relintPackage, retest, runStepAsync, runSteps, runStepsAsync, runXy, runXyWithWarning, safeExit, safeExitAsync, sonar, statics, test, tryReadFileSync, tsupOptions, union, up, updateYarnPlugins, updateYarnVersion, updo, withErrnoException, withError, writeLines, xy, xyBuildCommands, xyCommonCommands, xyDeployCommands, xyInstallCommands, xyLintCommands, xyParseOptions, yarn3Only, yarnWorkspace, yarnWorkspaces };
package/dist/index.mjs CHANGED
@@ -1082,50 +1082,25 @@ var dupdeps = /* @__PURE__ */ __name(() => {
1082
1082
 
1083
1083
  // src/actions/lint.ts
1084
1084
  import chalk16 from "chalk";
1085
- import { ESLint as ESLint2 } from "eslint";
1086
- var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
1087
- const colors = [
1088
- "white",
1089
- "yellow",
1090
- "red"
1091
- ];
1092
- const severity = [
1093
- "none",
1094
- "warning",
1095
- "error"
1096
- ];
1097
- for (const lintResult of lintResults) {
1098
- if (lintResult.messages.length > 0) {
1099
- console.log(chalk16.gray(`${lintResult.filePath}`));
1100
- for (const message of lintResult.messages) {
1101
- console.log(chalk16.gray(` ${message.line}:${message.column}`), chalk16[colors[message.severity]](` ${severity[message.severity]}`), chalk16.white(` ${message.message}`), chalk16.gray(` ${message.ruleId}`));
1102
- }
1103
- }
1104
- }
1105
- }, "dumpMessages");
1106
- var lintPackage = /* @__PURE__ */ __name(async ({ pkg, fix: fix2 }) => {
1107
- const workspace = yarnWorkspaces().find((workspace2) => workspace2.name === pkg);
1108
- if (!workspace) {
1109
- console.error(chalk16.red(`Unable to locate package [${chalk16.magenta(pkg)}]`));
1110
- process.exit(1);
1111
- }
1112
- const engine = new ESLint2({
1113
- cache: true,
1114
- fix: fix2
1115
- });
1116
- const lintResults = await engine.lintFiles(workspace.location);
1117
- dumpMessages(lintResults);
1118
- return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
1085
+ var lintPackage = /* @__PURE__ */ __name(({ pkg, fix: fix2 }) => {
1086
+ console.log(chalk16.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1087
+ const start = Date.now();
1088
+ const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
1089
+ [
1090
+ "yarn",
1091
+ [
1092
+ "workspace",
1093
+ pkg,
1094
+ "run",
1095
+ fix2 ? "package-fix" : "package-lint"
1096
+ ]
1097
+ ]
1098
+ ]);
1099
+ console.log(chalk16.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk16.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk16.gray("seconds")}`));
1100
+ return result;
1119
1101
  }, "lintPackage");
1120
- var lintAll = /* @__PURE__ */ __name(async ({ fix: fix2 }) => {
1121
- const workspace = yarnWorkspaces();
1122
- return (await Promise.all(workspace.map((ws) => lintPackage({
1123
- pkg: ws.name,
1124
- fix: fix2
1125
- })))).reduce((prev, curr) => prev + curr, 0);
1126
- }, "lintAll");
1127
- var lint = /* @__PURE__ */ __name(async ({ pkg, verbose, incremental, fix: fix2 } = {}) => {
1128
- return pkg ? await lintPackage({
1102
+ var lint = /* @__PURE__ */ __name(({ pkg, verbose, incremental, fix: fix2 } = {}) => {
1103
+ return pkg ? lintPackage({
1129
1104
  pkg,
1130
1105
  fix: fix2
1131
1106
  }) : lintAllPackages({
@@ -1167,8 +1142,9 @@ var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incre
1167
1142
  }, "lintAllPackages");
1168
1143
 
1169
1144
  // src/actions/fix.ts
1170
- var fix = /* @__PURE__ */ __name(async () => {
1171
- return await lint({
1145
+ var fix = /* @__PURE__ */ __name((params) => {
1146
+ return lint({
1147
+ ...params,
1172
1148
  fix: true
1173
1149
  });
1174
1150
  }, "fix");
@@ -1370,47 +1346,6 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1370
1346
  }))).reduce((prev, value) => prev || value, 0);
1371
1347
  }, "license");
1372
1348
 
1373
- // src/actions/lint-clean.ts
1374
- import { rmSync } from "node:fs";
1375
- var lintClean = /* @__PURE__ */ __name(async () => {
1376
- console.log("Lint Clean [.eslintcache]");
1377
- const workspaces = yarnWorkspaces();
1378
- const result = workspaces.map(({ location, name }) => {
1379
- const dist = `${location}/.eslintcache`;
1380
- try {
1381
- rmSync(dist, {
1382
- force: true,
1383
- recursive: true
1384
- });
1385
- return 0;
1386
- } catch (ex) {
1387
- const error = ex;
1388
- console.error(`Lint Clean [.eslintcache] Failed [${name}, ${error.message}]`);
1389
- return 1;
1390
- }
1391
- }).reduce((prev, result2) => prev || result2, 0);
1392
- return result || await lint();
1393
- }, "lintClean");
1394
-
1395
- // src/actions/lint-profile.ts
1396
- var lintProfile = /* @__PURE__ */ __name(() => {
1397
- return runSteps("Lint Profile", [
1398
- [
1399
- "yarn",
1400
- [
1401
- "xy",
1402
- "lint"
1403
- ],
1404
- {
1405
- env: {
1406
- ...process.env,
1407
- TIMING: "1"
1408
- }
1409
- }
1410
- ]
1411
- ]);
1412
- }, "lintProfile");
1413
-
1414
1349
  // src/actions/npmignore-gen.ts
1415
1350
  var filename2 = ".npmignore";
1416
1351
  var npmignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename2, pkg), "npmignoreGen");
@@ -2205,10 +2140,10 @@ import path7 from "node:path";
2205
2140
  import { cwd as cwd4 } from "node:process";
2206
2141
  import { pathToFileURL } from "node:url";
2207
2142
  import chalk30 from "chalk";
2208
- import { ESLint as ESLint3 } from "eslint";
2143
+ import { ESLint as ESLint2 } from "eslint";
2209
2144
  import { findUp } from "find-up";
2210
2145
  import picomatch from "picomatch";
2211
- var dumpMessages2 = /* @__PURE__ */ __name((lintResults) => {
2146
+ var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
2212
2147
  const colors = [
2213
2148
  "white",
2214
2149
  "yellow",
@@ -2268,7 +2203,7 @@ var packageLint = /* @__PURE__ */ __name(async (fix2 = false, verbose = false, c
2268
2203
  ".vscode",
2269
2204
  ".github"
2270
2205
  ];
2271
- const engine = new ESLint3({
2206
+ const engine = new ESLint2({
2272
2207
  baseConfig: [
2273
2208
  ...eslintConfig
2274
2209
  ],
@@ -2281,9 +2216,9 @@ var packageLint = /* @__PURE__ */ __name(async (fix2 = false, verbose = false, c
2281
2216
  console.log(chalk30.green(`Linting ${pkg} [files = ${files.length}]`));
2282
2217
  }
2283
2218
  const lintResults = await engine.lintFiles(files);
2284
- dumpMessages2(lintResults);
2219
+ dumpMessages(lintResults);
2285
2220
  if (fix2) {
2286
- await ESLint3.outputFixes(lintResults);
2221
+ await ESLint2.outputFixes(lintResults);
2287
2222
  }
2288
2223
  return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
2289
2224
  }, "packageLint");
@@ -2363,23 +2298,17 @@ var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incrementa
2363
2298
  verbose
2364
2299
  });
2365
2300
  }, "recompile");
2366
- var recompilePackage = /* @__PURE__ */ __name(({ verbose, target, pkg }) => {
2301
+ var recompilePackage = /* @__PURE__ */ __name(({ target, pkg }) => {
2367
2302
  const targetOptions = target ? [
2368
2303
  "-t",
2369
2304
  target
2370
2305
  ] : [];
2371
- const verboseOptions = verbose ? [
2372
- "--verbose"
2373
- ] : [
2374
- "--no-verbose"
2375
- ];
2376
2306
  return runStepsAsync(`Recompile [${pkg}]`, [
2377
2307
  [
2378
2308
  "yarn",
2379
2309
  [
2380
2310
  "workspace",
2381
2311
  pkg,
2382
- ...verboseOptions,
2383
2312
  "run",
2384
2313
  "package-recompile",
2385
2314
  ...targetOptions
@@ -2447,7 +2376,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2447
2376
  }, "recompileAll");
2448
2377
 
2449
2378
  // src/actions/reinstall.ts
2450
- import { closeSync, openSync, rmSync as rmSync2 } from "node:fs";
2379
+ import { closeSync, openSync, rmSync } from "node:fs";
2451
2380
  var reinstall = /* @__PURE__ */ __name(() => {
2452
2381
  console.log("Reinstall [Clear Lock File]");
2453
2382
  closeSync(openSync("./yarn.lock", "w"));
@@ -2456,7 +2385,7 @@ var reinstall = /* @__PURE__ */ __name(() => {
2456
2385
  const result = workspaces.map(({ location, name }) => {
2457
2386
  const dist = `${location}/node_modules`;
2458
2387
  try {
2459
- rmSync2(dist, {
2388
+ rmSync(dist, {
2460
2389
  force: true,
2461
2390
  recursive: true
2462
2391
  });
@@ -2476,35 +2405,63 @@ var reinstall = /* @__PURE__ */ __name(() => {
2476
2405
  }, "reinstall");
2477
2406
 
2478
2407
  // src/actions/relint.ts
2479
- import { rmSync as rmSync3 } from "node:fs";
2480
- var relint = /* @__PURE__ */ __name(() => {
2481
- console.log("Relint - Cleaning [.eslintcache]");
2482
- const workspaces = yarnWorkspaces();
2483
- const result = workspaces.map(({ location, name }) => {
2484
- const dist = `${location}/.eslintcache`;
2485
- try {
2486
- rmSync3(dist, {
2487
- force: true,
2488
- recursive: true
2489
- });
2490
- return 0;
2491
- } catch (ex) {
2492
- const error = ex;
2493
- console.error(`Relint - Cleaning [.eslintcache] Failed [${name}, ${error.message}]`);
2494
- return 1;
2495
- }
2496
- }).reduce((prev, result2) => prev || result2, 0);
2497
- return result || runSteps("Relint", [
2408
+ import chalk32 from "chalk";
2409
+ var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
2410
+ console.log(chalk32.gray(`${"Relint"} [All-Packages]`));
2411
+ const start = Date.now();
2412
+ const result = runSteps("Relint [All-Packages]", [
2498
2413
  [
2499
2414
  "yarn",
2500
2415
  [
2501
- "eslint",
2502
- ".",
2503
- "--cache"
2416
+ "workspace",
2417
+ pkg,
2418
+ "run",
2419
+ "package-relint"
2504
2420
  ]
2505
2421
  ]
2506
2422
  ]);
2423
+ console.log(chalk32.gray(`${"Relinted in"} [${chalk32.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk32.gray("seconds")}`));
2424
+ return result;
2425
+ }, "relintPackage");
2426
+ var relint = /* @__PURE__ */ __name(({ pkg, verbose, incremental } = {}) => {
2427
+ return pkg ? relintPackage({
2428
+ pkg
2429
+ }) : relintAllPackages({
2430
+ verbose,
2431
+ incremental
2432
+ });
2507
2433
  }, "relint");
2434
+ var relintAllPackages = /* @__PURE__ */ __name(({ verbose = true, incremental } = {}) => {
2435
+ console.log(chalk32.gray(`${"Relint"} [All-Packages]`));
2436
+ const start = Date.now();
2437
+ const verboseOptions = verbose ? [
2438
+ "--verbose"
2439
+ ] : [
2440
+ "--no-verbose"
2441
+ ];
2442
+ const incrementalOptions = incremental ? [
2443
+ "--since",
2444
+ "-Ap"
2445
+ ] : [
2446
+ "--parallel",
2447
+ "-Ap"
2448
+ ];
2449
+ const result = runSteps(`${"Relint"} [All-Packages]`, [
2450
+ [
2451
+ "yarn",
2452
+ [
2453
+ "workspaces",
2454
+ "foreach",
2455
+ ...verboseOptions,
2456
+ ...incrementalOptions,
2457
+ "run",
2458
+ "package-relint"
2459
+ ]
2460
+ ]
2461
+ ]);
2462
+ console.log(chalk32.gray(`Relinted in [${chalk32.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk32.gray("seconds")}`));
2463
+ return result;
2464
+ }, "relintAllPackages");
2508
2465
 
2509
2466
  // src/actions/retest.ts
2510
2467
  var retest = /* @__PURE__ */ __name(() => {
@@ -2542,7 +2499,7 @@ var sonar = /* @__PURE__ */ __name(() => {
2542
2499
  }, "sonar");
2543
2500
 
2544
2501
  // src/actions/statics.ts
2545
- import chalk32 from "chalk";
2502
+ import chalk33 from "chalk";
2546
2503
  var DefaultDependencies = [
2547
2504
  "axios",
2548
2505
  "@xylabs/pixel",
@@ -2553,7 +2510,7 @@ var DefaultDependencies = [
2553
2510
  "@mui/system"
2554
2511
  ];
2555
2512
  var statics = /* @__PURE__ */ __name(() => {
2556
- console.log(chalk32.green("Check Required Static Dependencies"));
2513
+ console.log(chalk33.green("Check Required Static Dependencies"));
2557
2514
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
2558
2515
  return detectDuplicateDependencies(statics2, DefaultDependencies);
2559
2516
  }, "statics");
@@ -2671,7 +2628,7 @@ var loadPackageConfig = /* @__PURE__ */ __name(async () => {
2671
2628
  }, "loadPackageConfig");
2672
2629
 
2673
2630
  // src/xy/xy.ts
2674
- import chalk34 from "chalk";
2631
+ import chalk35 from "chalk";
2675
2632
 
2676
2633
  // src/xy/xyBuildCommands.ts
2677
2634
  var xyBuildCommands = /* @__PURE__ */ __name((args) => {
@@ -2922,7 +2879,7 @@ var xyInstallCommands = /* @__PURE__ */ __name((args) => {
2922
2879
  }, "xyInstallCommands");
2923
2880
 
2924
2881
  // src/xy/xyLintCommands.ts
2925
- import chalk33 from "chalk";
2882
+ import chalk34 from "chalk";
2926
2883
  var xyLintCommands = /* @__PURE__ */ __name((args) => {
2927
2884
  return args.command("cycle [package]", "Cycle - Check for dependency cycles", (yargs2) => {
2928
2885
  return packagePositionalParam(yargs2);
@@ -2930,30 +2887,32 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
2930
2887
  const start = Date.now();
2931
2888
  if (argv.verbose) console.log("Cycle");
2932
2889
  process.exitCode = await cycle();
2933
- console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2890
+ console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2934
2891
  }).command("lint [package]", "Lint - Run Eslint", (yargs2) => {
2935
2892
  return packagePositionalParam(yargs2);
2936
- }, async (argv) => {
2893
+ }, (argv) => {
2937
2894
  if (argv.verbose) console.log("Lint");
2938
2895
  const start = Date.now();
2939
- process.exitCode = argv.fix ? await fix() : argv.profile ? lintProfile() : await lint({
2896
+ process.exitCode = argv.fix ? fix({
2897
+ pkg: argv.package
2898
+ }) : lint({
2940
2899
  pkg: argv.package
2941
2900
  });
2942
- console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2901
+ console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2943
2902
  }).command("fix [package]", "Fix - Run Eslint w/fix", (yargs2) => {
2944
2903
  return packagePositionalParam(yargs2);
2945
- }, async (argv) => {
2904
+ }, (argv) => {
2946
2905
  const start = Date.now();
2947
2906
  if (argv.verbose) console.log("Fix");
2948
- process.exitCode = await fix();
2949
- console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2907
+ process.exitCode = fix();
2908
+ console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2950
2909
  }).command("relint [package]", "Relint - Clean & Lint", (yargs2) => {
2951
2910
  return packagePositionalParam(yargs2);
2952
2911
  }, (argv) => {
2953
2912
  if (argv.verbose) console.log("Relinting");
2954
2913
  const start = Date.now();
2955
2914
  process.exitCode = relint();
2956
- console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2915
+ console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2957
2916
  }).command("publint [package]", "Publint - Run Publint", (yargs2) => {
2958
2917
  return packagePositionalParam(yargs2);
2959
2918
  }, async (argv) => {
@@ -2963,14 +2922,14 @@ var xyLintCommands = /* @__PURE__ */ __name((args) => {
2963
2922
  pkg: argv.package,
2964
2923
  verbose: !!argv.verbose
2965
2924
  });
2966
- console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2925
+ console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2967
2926
  }).command("sonar", "Sonar - Run Sonar Check", (yargs2) => {
2968
2927
  return packagePositionalParam(yargs2);
2969
2928
  }, (argv) => {
2970
2929
  const start = Date.now();
2971
2930
  if (argv.verbose) console.log("Sonar Check");
2972
2931
  process.exitCode = sonar();
2973
- console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2932
+ console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
2974
2933
  });
2975
2934
  }, "xyLintCommands");
2976
2935
 
@@ -3032,8 +2991,8 @@ var xyParseOptions = /* @__PURE__ */ __name(() => {
3032
2991
  var xy = /* @__PURE__ */ __name(async () => {
3033
2992
  const options = xyParseOptions();
3034
2993
  return await xyBuildCommands(xyCommonCommands(xyInstallCommands(xyDeployCommands(xyLintCommands(options))))).demandCommand(1).command("*", "", () => {
3035
- console.error(chalk34.yellow(`Command not found [${chalk34.magenta(process.argv[2])}]`));
3036
- console.log(chalk34.gray("Try 'yarn xy --help' for list of commands"));
2994
+ console.error(chalk35.yellow(`Command not found [${chalk35.magenta(process.argv[2])}]`));
2995
+ console.log(chalk35.gray("Try 'yarn xy --help' for list of commands"));
3037
2996
  }).version().help().argv;
3038
2997
  }, "xy");
3039
2998
  export {
@@ -3081,11 +3040,8 @@ export {
3081
3040
  isYarnVersionOrGreater,
3082
3041
  license,
3083
3042
  lint,
3084
- lintAll,
3085
3043
  lintAllPackages,
3086
- lintClean,
3087
3044
  lintPackage,
3088
- lintProfile,
3089
3045
  loadConfig,
3090
3046
  loadPackageConfig,
3091
3047
  multiLineToJSONArray,
@@ -3118,6 +3074,8 @@ export {
3118
3074
  recompilePackage,
3119
3075
  reinstall,
3120
3076
  relint,
3077
+ relintAllPackages,
3078
+ relintPackage,
3121
3079
  retest,
3122
3080
  runStepAsync,
3123
3081
  runSteps,