@xylabs/ts-scripts-yarn3 6.1.10 → 6.1.11

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 (35) hide show
  1. package/dist/actions/index.mjs +45 -39
  2. package/dist/actions/index.mjs.map +1 -1
  3. package/dist/actions/package/compile/compile.mjs +45 -39
  4. package/dist/actions/package/compile/compile.mjs.map +1 -1
  5. package/dist/actions/package/compile/compileTypes.mjs +24 -21
  6. package/dist/actions/package/compile/compileTypes.mjs.map +1 -1
  7. package/dist/actions/package/compile/index.mjs +45 -39
  8. package/dist/actions/package/compile/index.mjs.map +1 -1
  9. package/dist/actions/package/compile/packageCompileTsc.mjs +21 -18
  10. package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
  11. package/dist/actions/package/compile/packageCompileTscTypes.mjs +24 -21
  12. package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
  13. package/dist/actions/package/compile/packageCompileTsup.mjs +45 -39
  14. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  15. package/dist/actions/package/index.mjs +45 -39
  16. package/dist/actions/package/index.mjs.map +1 -1
  17. package/dist/actions/package/recompile.mjs +45 -39
  18. package/dist/actions/package/recompile.mjs.map +1 -1
  19. package/dist/bin/package/build-only.mjs +45 -39
  20. package/dist/bin/package/build-only.mjs.map +1 -1
  21. package/dist/bin/package/build.mjs +45 -39
  22. package/dist/bin/package/build.mjs.map +1 -1
  23. package/dist/bin/package/compile-only.mjs +45 -39
  24. package/dist/bin/package/compile-only.mjs.map +1 -1
  25. package/dist/bin/package/compile-tsup.mjs +45 -39
  26. package/dist/bin/package/compile-tsup.mjs.map +1 -1
  27. package/dist/bin/package/compile-types.mjs +24 -21
  28. package/dist/bin/package/compile-types.mjs.map +1 -1
  29. package/dist/bin/package/compile.mjs +45 -39
  30. package/dist/bin/package/compile.mjs.map +1 -1
  31. package/dist/bin/package/recompile.mjs +45 -39
  32. package/dist/bin/package/recompile.mjs.map +1 -1
  33. package/dist/index.mjs +45 -39
  34. package/dist/index.mjs.map +1 -1
  35. package/package.json +4 -4
@@ -1467,29 +1467,32 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {
1467
1467
  ];
1468
1468
  const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && !excludes.some((exclude) => file.includes(exclude)));
1469
1469
  console.log(chalk22.green(`Compiling Types ${pkg}: ${files.length}`));
1470
- const program = createProgramFromConfig({
1471
- basePath: pkg ?? cwd(),
1472
- compilerOptions,
1473
- exclude: [
1474
- "dist",
1475
- "docs",
1476
- "**/*.spec.*",
1477
- "**/*.stories.*",
1478
- "src/**/spec/**/*"
1479
- ],
1480
- files
1481
- });
1482
- const diagnostics = getPreEmitDiagnostics(program);
1483
- if (diagnostics.length > 0) {
1484
- const formattedDiagnostics = formatDiagnosticsWithColorAndContext(diagnostics, {
1485
- getCanonicalFileName: /* @__PURE__ */ __name((fileName) => fileName, "getCanonicalFileName"),
1486
- getCurrentDirectory: /* @__PURE__ */ __name(() => folder, "getCurrentDirectory"),
1487
- getNewLine: /* @__PURE__ */ __name(() => sys2.newLine, "getNewLine")
1470
+ if (files.length > 0) {
1471
+ const program = createProgramFromConfig({
1472
+ basePath: pkg ?? cwd(),
1473
+ compilerOptions,
1474
+ exclude: [
1475
+ "dist",
1476
+ "docs",
1477
+ "**/*.spec.*",
1478
+ "**/*.stories.*",
1479
+ "src/**/spec/**/*"
1480
+ ],
1481
+ files
1488
1482
  });
1489
- console.error(formattedDiagnostics);
1483
+ const diagnostics = getPreEmitDiagnostics(program);
1484
+ if (diagnostics.length > 0) {
1485
+ const formattedDiagnostics = formatDiagnosticsWithColorAndContext(diagnostics, {
1486
+ getCanonicalFileName: /* @__PURE__ */ __name((fileName) => fileName, "getCanonicalFileName"),
1487
+ getCurrentDirectory: /* @__PURE__ */ __name(() => folder, "getCurrentDirectory"),
1488
+ getNewLine: /* @__PURE__ */ __name(() => sys2.newLine, "getNewLine")
1489
+ });
1490
+ console.error(formattedDiagnostics);
1491
+ }
1492
+ program.emit();
1493
+ return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory.Error ? 1 : 0), 0);
1490
1494
  }
1491
- program.emit();
1492
- return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory.Error ? 1 : 0), 0);
1495
+ return 0;
1493
1496
  }, "packageCompileTscTypes");
1494
1497
 
1495
1498
  // src/actions/package/compile/compileTypes.ts
@@ -1559,26 +1562,29 @@ var packageCompileTsc = /* @__PURE__ */ __name((folder = "src", config2 = {}, co
1559
1562
  ];
1560
1563
  const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && includes.find((include) => file.includes(include)));
1561
1564
  console.log(chalk23.green(`Compiling Files ${pkg}: ${files.length}`));
1562
- const program = createProgramFromConfig2({
1563
- basePath: pkg ?? cwd2(),
1564
- compilerOptions,
1565
- exclude: [
1566
- "dist",
1567
- "docs"
1568
- ],
1569
- files
1570
- });
1571
- const diagnostics = getPreEmitDiagnostics2(program);
1572
- if (diagnostics.length > 0) {
1573
- const formattedDiagnostics = formatDiagnosticsWithColorAndContext2(diagnostics, {
1574
- getCanonicalFileName: /* @__PURE__ */ __name((fileName) => fileName, "getCanonicalFileName"),
1575
- getCurrentDirectory: /* @__PURE__ */ __name(() => folder, "getCurrentDirectory"),
1576
- getNewLine: /* @__PURE__ */ __name(() => sys3.newLine, "getNewLine")
1565
+ if (files.length > 0) {
1566
+ const program = createProgramFromConfig2({
1567
+ basePath: pkg ?? cwd2(),
1568
+ compilerOptions,
1569
+ exclude: [
1570
+ "dist",
1571
+ "docs"
1572
+ ],
1573
+ files
1577
1574
  });
1578
- console.error(formattedDiagnostics);
1575
+ const diagnostics = getPreEmitDiagnostics2(program);
1576
+ if (diagnostics.length > 0) {
1577
+ const formattedDiagnostics = formatDiagnosticsWithColorAndContext2(diagnostics, {
1578
+ getCanonicalFileName: /* @__PURE__ */ __name((fileName) => fileName, "getCanonicalFileName"),
1579
+ getCurrentDirectory: /* @__PURE__ */ __name(() => folder, "getCurrentDirectory"),
1580
+ getNewLine: /* @__PURE__ */ __name(() => sys3.newLine, "getNewLine")
1581
+ });
1582
+ console.error(formattedDiagnostics);
1583
+ }
1584
+ program.emit();
1585
+ return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory2.Error ? 1 : 0), 0);
1579
1586
  }
1580
- program.emit();
1581
- return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory2.Error ? 1 : 0), 0);
1587
+ return 0;
1582
1588
  }, "packageCompileTsc");
1583
1589
 
1584
1590
  // src/actions/package/compile/packageCompileTsup.ts