@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/index.mjs CHANGED
@@ -483,18 +483,18 @@ var build = async ({
483
483
  pkg
484
484
  }) => {
485
485
  const start = Date.now();
486
- const pkgOptions = pkg ? [pkg] : [];
486
+ const pkgOptions = pkg === void 0 ? [] : [pkg];
487
487
  const incrementalOptions = incremental ? ["-i"] : [];
488
488
  const verboseOptions = verbose ? ["-v"] : [];
489
- const targetOptions = target ? ["-t", target] : [];
490
- const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
491
- if (jobs) {
489
+ const targetOptions = target === void 0 ? [] : ["-t", target];
490
+ const jobsOptions = jobs === void 0 ? [] : ["-j", `${jobs}`];
491
+ if (jobs !== void 0) {
492
492
  console.log(chalk9.blue(`Jobs set to [${jobs}]`));
493
493
  }
494
494
  const result = await runStepsAsync(`Build${incremental ? "-Incremental" : ""} [${pkg ?? "All"}]`, [
495
495
  ["yarn", ["xy", "compile", ...pkgOptions, ...targetOptions, ...verboseOptions, ...jobsOptions, ...incrementalOptions, "--types", "tsup"]],
496
496
  ["yarn", ["xy", "publint", ...pkgOptions, ...verboseOptions, ...jobsOptions, ...incrementalOptions]],
497
- ["yarn", ["xy", "knip", ...pkgOptions, ...verboseOptions, ...jobsOptions, ...incrementalOptions]],
497
+ ["yarn", ["xy", "deplint", ...pkgOptions, ...verboseOptions, ...jobsOptions, ...incrementalOptions]],
498
498
  ["yarn", ["xy", "lint", ...pkgOptions, ...verboseOptions, ...incrementalOptions]]
499
499
  ]);
500
500
  console.log(`${chalk9.gray("Built in")} [${chalk9.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk9.gray("seconds")}`);