@xylabs/ts-scripts-yarn3 6.0.4 → 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.
- package/dist/actions/fix.mjs +1 -7
- package/dist/actions/fix.mjs.map +1 -1
- package/dist/actions/index.mjs +3 -21
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/lint.mjs +1 -7
- package/dist/actions/lint.mjs.map +1 -1
- package/dist/actions/recompile.mjs +1 -7
- package/dist/actions/recompile.mjs.map +1 -1
- package/dist/actions/relint.mjs +1 -7
- package/dist/actions/relint.mjs.map +1 -1
- package/dist/bin/xy.mjs +3 -21
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +3 -21
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +3 -21
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +3 -21
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyBuildCommands.mjs +1 -7
- package/dist/xy/xyBuildCommands.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +2 -14
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +4 -4
- package/src/actions/lint.ts +1 -5
- package/src/actions/recompile.ts +2 -5
- package/src/actions/relint.ts +1 -3
package/dist/index.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ interface LintPackageParams {
|
|
|
106
106
|
pkg: string;
|
|
107
107
|
verbose?: boolean;
|
|
108
108
|
}
|
|
109
|
-
declare const lintPackage: ({ pkg, fix
|
|
109
|
+
declare const lintPackage: ({ pkg, fix }: LintParams & Required<Pick<LintParams, "pkg">>) => number;
|
|
110
110
|
declare const lint: ({ pkg, verbose, incremental, fix, }?: LintParams) => number;
|
|
111
111
|
declare const lintAllPackages: ({ fix, verbose, incremental, }?: LintParams) => number;
|
|
112
112
|
|
|
@@ -242,7 +242,7 @@ interface RecompilePackageParams {
|
|
|
242
242
|
verbose?: boolean;
|
|
243
243
|
}
|
|
244
244
|
declare const recompile: ({ verbose, target, pkg, incremental, }: RecompileParams) => Promise<number>;
|
|
245
|
-
declare const recompilePackage: ({
|
|
245
|
+
declare const recompilePackage: ({ target, pkg }: RecompilePackageParams) => Promise<number>;
|
|
246
246
|
declare const recompileAll: ({ jobs, verbose, target, incremental, }: RecompileParams) => Promise<number>;
|
|
247
247
|
|
|
248
248
|
declare const reinstall: () => number;
|
|
@@ -256,7 +256,7 @@ interface RelintPackageParams {
|
|
|
256
256
|
pkg: string;
|
|
257
257
|
verbose?: boolean;
|
|
258
258
|
}
|
|
259
|
-
declare const relintPackage: ({ pkg
|
|
259
|
+
declare const relintPackage: ({ pkg }: RelintParams & Required<Pick<RelintParams, "pkg">>) => number;
|
|
260
260
|
declare const relint: ({ pkg, verbose, incremental, }?: RelintParams) => number;
|
|
261
261
|
declare const relintAllPackages: ({ verbose, incremental }?: RelintParams) => number;
|
|
262
262
|
|
package/dist/index.mjs
CHANGED
|
@@ -1082,21 +1082,15 @@ var dupdeps = /* @__PURE__ */ __name(() => {
|
|
|
1082
1082
|
|
|
1083
1083
|
// src/actions/lint.ts
|
|
1084
1084
|
import chalk16 from "chalk";
|
|
1085
|
-
var lintPackage = /* @__PURE__ */ __name(({ pkg, fix: fix2
|
|
1085
|
+
var lintPackage = /* @__PURE__ */ __name(({ pkg, fix: fix2 }) => {
|
|
1086
1086
|
console.log(chalk16.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
|
|
1087
1087
|
const start = Date.now();
|
|
1088
|
-
const verboseOptions = verbose ? [
|
|
1089
|
-
"--verbose"
|
|
1090
|
-
] : [
|
|
1091
|
-
"--no-verbose"
|
|
1092
|
-
];
|
|
1093
1088
|
const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
|
|
1094
1089
|
[
|
|
1095
1090
|
"yarn",
|
|
1096
1091
|
[
|
|
1097
1092
|
"workspace",
|
|
1098
1093
|
pkg,
|
|
1099
|
-
...verboseOptions,
|
|
1100
1094
|
"run",
|
|
1101
1095
|
fix2 ? "package-fix" : "package-lint"
|
|
1102
1096
|
]
|
|
@@ -2304,23 +2298,17 @@ var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incrementa
|
|
|
2304
2298
|
verbose
|
|
2305
2299
|
});
|
|
2306
2300
|
}, "recompile");
|
|
2307
|
-
var recompilePackage = /* @__PURE__ */ __name(({
|
|
2301
|
+
var recompilePackage = /* @__PURE__ */ __name(({ target, pkg }) => {
|
|
2308
2302
|
const targetOptions = target ? [
|
|
2309
2303
|
"-t",
|
|
2310
2304
|
target
|
|
2311
2305
|
] : [];
|
|
2312
|
-
const verboseOptions = verbose ? [
|
|
2313
|
-
"--verbose"
|
|
2314
|
-
] : [
|
|
2315
|
-
"--no-verbose"
|
|
2316
|
-
];
|
|
2317
2306
|
return runStepsAsync(`Recompile [${pkg}]`, [
|
|
2318
2307
|
[
|
|
2319
2308
|
"yarn",
|
|
2320
2309
|
[
|
|
2321
2310
|
"workspace",
|
|
2322
2311
|
pkg,
|
|
2323
|
-
...verboseOptions,
|
|
2324
2312
|
"run",
|
|
2325
2313
|
"package-recompile",
|
|
2326
2314
|
...targetOptions
|
|
@@ -2418,21 +2406,15 @@ var reinstall = /* @__PURE__ */ __name(() => {
|
|
|
2418
2406
|
|
|
2419
2407
|
// src/actions/relint.ts
|
|
2420
2408
|
import chalk32 from "chalk";
|
|
2421
|
-
var relintPackage = /* @__PURE__ */ __name(({ pkg
|
|
2409
|
+
var relintPackage = /* @__PURE__ */ __name(({ pkg }) => {
|
|
2422
2410
|
console.log(chalk32.gray(`${"Relint"} [All-Packages]`));
|
|
2423
2411
|
const start = Date.now();
|
|
2424
|
-
const verboseOptions = verbose ? [
|
|
2425
|
-
"--verbose"
|
|
2426
|
-
] : [
|
|
2427
|
-
"--no-verbose"
|
|
2428
|
-
];
|
|
2429
2412
|
const result = runSteps("Relint [All-Packages]", [
|
|
2430
2413
|
[
|
|
2431
2414
|
"yarn",
|
|
2432
2415
|
[
|
|
2433
2416
|
"workspace",
|
|
2434
2417
|
pkg,
|
|
2435
|
-
...verboseOptions,
|
|
2436
2418
|
"run",
|
|
2437
2419
|
"package-relint"
|
|
2438
2420
|
]
|