@xylabs/ts-scripts-yarn3 6.1.9 → 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 +50 -40
  2. package/dist/actions/index.mjs.map +1 -1
  3. package/dist/actions/package/compile/compile.mjs +50 -40
  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 +50 -40
  8. package/dist/actions/package/compile/index.mjs.map +1 -1
  9. package/dist/actions/package/compile/packageCompileTsc.mjs +26 -19
  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 +50 -40
  14. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  15. package/dist/actions/package/index.mjs +50 -40
  16. package/dist/actions/package/index.mjs.map +1 -1
  17. package/dist/actions/package/recompile.mjs +50 -40
  18. package/dist/actions/package/recompile.mjs.map +1 -1
  19. package/dist/bin/package/build-only.mjs +50 -40
  20. package/dist/bin/package/build-only.mjs.map +1 -1
  21. package/dist/bin/package/build.mjs +50 -40
  22. package/dist/bin/package/build.mjs.map +1 -1
  23. package/dist/bin/package/compile-only.mjs +50 -40
  24. package/dist/bin/package/compile-only.mjs.map +1 -1
  25. package/dist/bin/package/compile-tsup.mjs +50 -40
  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 +50 -40
  30. package/dist/bin/package/compile.mjs.map +1 -1
  31. package/dist/bin/package/recompile.mjs +50 -40
  32. package/dist/bin/package/recompile.mjs.map +1 -1
  33. package/dist/index.mjs +50 -40
  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
@@ -1553,28 +1556,35 @@ var packageCompileTsc = /* @__PURE__ */ __name((folder = "src", config2 = {}, co
1553
1556
  ".mts",
1554
1557
  ".d.mts"
1555
1558
  ];
1556
- const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)));
1559
+ const includes = [
1560
+ ".stories.",
1561
+ ".spec."
1562
+ ];
1563
+ const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && includes.find((include) => file.includes(include)));
1557
1564
  console.log(chalk23.green(`Compiling Files ${pkg}: ${files.length}`));
1558
- const program = createProgramFromConfig2({
1559
- basePath: pkg ?? cwd2(),
1560
- compilerOptions,
1561
- exclude: [
1562
- "dist",
1563
- "docs"
1564
- ],
1565
- files
1566
- });
1567
- const diagnostics = getPreEmitDiagnostics2(program);
1568
- if (diagnostics.length > 0) {
1569
- const formattedDiagnostics = formatDiagnosticsWithColorAndContext2(diagnostics, {
1570
- getCanonicalFileName: /* @__PURE__ */ __name((fileName) => fileName, "getCanonicalFileName"),
1571
- getCurrentDirectory: /* @__PURE__ */ __name(() => folder, "getCurrentDirectory"),
1572
- 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
1573
1574
  });
1574
- 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);
1575
1586
  }
1576
- program.emit();
1577
- return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory2.Error ? 1 : 0), 0);
1587
+ return 0;
1578
1588
  }, "packageCompileTsc");
1579
1589
 
1580
1590
  // src/actions/package/compile/packageCompileTsup.ts