@xylabs/ts-scripts-yarn3 7.1.2 → 7.1.4

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/index.mjs CHANGED
@@ -470,7 +470,7 @@ var compileAll = ({
470
470
  const start = Date.now();
471
471
  const verboseOptions = verbose ? ["--verbose"] : ["--no-verbose"];
472
472
  const targetOptions = target ? ["-t", target] : [];
473
- const incrementalOptions = incremental ? ["--since", "-Apt", "--topological-dev"] : ["--parallel", "-Apt", "--topological-dev"];
473
+ const incrementalOptions = incremental ? ["--since", "-Ap", "--topological-dev"] : ["--parallel", "-Ap", "--topological-dev"];
474
474
  const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
475
475
  if (jobs) {
476
476
  console.log(chalk9.blue(`Jobs set to [${jobs}]`));
@@ -1022,7 +1022,11 @@ var dupdeps = () => {
1022
1022
 
1023
1023
  // src/actions/lint.ts
1024
1024
  import chalk17 from "chalk";
1025
- var lintPackage = ({ pkg, fix: fix2 }) => {
1025
+ var lintPackage = ({
1026
+ pkg,
1027
+ fix: fix2,
1028
+ verbose
1029
+ }) => {
1026
1030
  console.log(chalk17.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
1027
1031
  const start = Date.now();
1028
1032
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [${pkg}]`, [
@@ -1030,7 +1034,7 @@ var lintPackage = ({ pkg, fix: fix2 }) => {
1030
1034
  "workspace",
1031
1035
  pkg,
1032
1036
  "run",
1033
- fix2 ? "package-fix" : "package-lint"
1037
+ fix2 ? "package-fix" : verbose ? "package-lint-verbose" : "package-lint"
1034
1038
  ]]
1035
1039
  ]);
1036
1040
  console.log(chalk17.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk17.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk17.gray("seconds")}`));
@@ -1046,7 +1050,11 @@ var lint = ({
1046
1050
  verbose,
1047
1051
  incremental,
1048
1052
  fix: fix2
1049
- }) : lintPackage({ pkg, fix: fix2 });
1053
+ }) : lintPackage({
1054
+ pkg,
1055
+ fix: fix2,
1056
+ verbose
1057
+ });
1050
1058
  };
1051
1059
  var lintAllPackages = ({ fix: fix2 = false } = {}) => {
1052
1060
  console.log(chalk17.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
@@ -1827,7 +1835,15 @@ var xyLintCommands = (args) => {
1827
1835
  (argv) => {
1828
1836
  if (argv.verbose) console.log("Lint");
1829
1837
  const start = Date.now();
1830
- process.exitCode = argv.fix ? fix({ pkg: argv.package, cache: argv.cache }) : lint({ pkg: argv.package, cache: argv.cache });
1838
+ process.exitCode = argv.fix ? fix({
1839
+ pkg: argv.package,
1840
+ cache: argv.cache,
1841
+ verbose: !!argv.verbose
1842
+ }) : lint({
1843
+ pkg: argv.package,
1844
+ cache: argv.cache,
1845
+ verbose: !!argv.verbose
1846
+ });
1831
1847
  console.log(chalk24.blue(`Finished in ${Date.now() - start}ms`));
1832
1848
  }
1833
1849
  ).command(