@xylabs/ts-scripts-yarn3 5.0.28 → 5.0.30

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.
@@ -1501,18 +1501,8 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", { verbose }
1501
1501
  }, "packageCompileTscTypes");
1502
1502
 
1503
1503
  // src/actions/package/compile/packageCompileTsup.ts
1504
- var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, types = "tsc", verbose) => {
1504
+ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, types = "tsup", verbose) => {
1505
1505
  const outDir = options?.outDir ?? "dist";
1506
- if (types === "tsc") {
1507
- const errors = packageCompileTscTypes(folder, {
1508
- verbose
1509
- }, {
1510
- outDir
1511
- });
1512
- if (errors) {
1513
- return errors;
1514
- }
1515
- }
1516
1506
  const entry = buildEntries(folder, entryMode);
1517
1507
  const optionsResult = defineConfig({
1518
1508
  bundle: true,
@@ -1541,6 +1531,16 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
1541
1531
  ];
1542
1532
  }))).flat();
1543
1533
  await Promise.all(optionsList.map((options2) => build2(options2)));
1534
+ if (types === "tsc") {
1535
+ const errors = packageCompileTscTypes(folder, {
1536
+ verbose
1537
+ }, {
1538
+ outDir
1539
+ });
1540
+ if (errors) {
1541
+ return errors;
1542
+ }
1543
+ }
1544
1544
  return 0;
1545
1545
  }, "compileFolder");
1546
1546
  var packageCompileTsup = /* @__PURE__ */ __name(async (config2, types = "tsc") => {