@xylabs/ts-scripts-yarn3 6.5.12 → 6.5.13

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/xy/xy.mjs CHANGED
@@ -391,18 +391,18 @@ var build = async ({
391
391
  pkg
392
392
  }) => {
393
393
  const start = Date.now();
394
- const pkgOptions = pkg ? [pkg] : [];
394
+ const pkgOptions = pkg === void 0 ? [] : [pkg];
395
395
  const incrementalOptions = incremental ? ["-i"] : [];
396
396
  const verboseOptions = verbose ? ["-v"] : [];
397
- const targetOptions = target ? ["-t", target] : [];
398
- const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
399
- if (jobs) {
397
+ const targetOptions = target === void 0 ? [] : ["-t", target];
398
+ const jobsOptions = jobs === void 0 ? [] : ["-j", `${jobs}`];
399
+ if (jobs !== void 0) {
400
400
  console.log(chalk7.blue(`Jobs set to [${jobs}]`));
401
401
  }
402
402
  const result = await runStepsAsync(`Build${incremental ? "-Incremental" : ""} [${pkg ?? "All"}]`, [
403
403
  ["yarn", ["xy", "compile", ...pkgOptions, ...targetOptions, ...verboseOptions, ...jobsOptions, ...incrementalOptions, "--types", "tsup"]],
404
404
  ["yarn", ["xy", "publint", ...pkgOptions, ...verboseOptions, ...jobsOptions, ...incrementalOptions]],
405
- ["yarn", ["xy", "knip", ...pkgOptions, ...verboseOptions, ...jobsOptions, ...incrementalOptions]],
405
+ ["yarn", ["xy", "deplint", ...pkgOptions, ...verboseOptions, ...jobsOptions, ...incrementalOptions]],
406
406
  ["yarn", ["xy", "lint", ...pkgOptions, ...verboseOptions, ...incrementalOptions]]
407
407
  ]);
408
408
  console.log(`${chalk7.gray("Built in")} [${chalk7.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk7.gray("seconds")}`);