@xylabs/ts-scripts-yarn3 5.0.27 → 5.0.28
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/actions/index.mjs +11 -11
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +11 -11
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +11 -11
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +11 -11
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +11 -11
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +11 -11
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/bin/package/build-only.mjs +11 -11
- package/dist/bin/package/build-only.mjs.map +1 -1
- package/dist/bin/package/build.mjs +11 -11
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +11 -11
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +11 -11
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +11 -11
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +11 -11
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/index.mjs +11 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/actions/package/compile/packageCompileTsup.ts +9 -7
package/dist/actions/index.mjs
CHANGED
|
@@ -1503,12 +1503,22 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", { verbose }
|
|
|
1503
1503
|
// src/actions/package/compile/packageCompileTsup.ts
|
|
1504
1504
|
var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single", options, types = "tsc", 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
|
+
}
|
|
1506
1516
|
const entry = buildEntries(folder, entryMode);
|
|
1507
1517
|
const optionsResult = defineConfig({
|
|
1508
1518
|
bundle: true,
|
|
1509
1519
|
cjsInterop: true,
|
|
1510
1520
|
clean: true,
|
|
1511
|
-
dts:
|
|
1521
|
+
dts: types === "tsup",
|
|
1512
1522
|
entry,
|
|
1513
1523
|
format: [
|
|
1514
1524
|
"esm"
|
|
@@ -1531,16 +1541,6 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
|
|
|
1531
1541
|
];
|
|
1532
1542
|
}))).flat();
|
|
1533
1543
|
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") => {
|