@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.
- package/dist/actions/index.mjs +45 -39
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +45 -39
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/compileTypes.mjs +24 -21
- package/dist/actions/package/compile/compileTypes.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +45 -39
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsc.mjs +21 -18
- package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTscTypes.mjs +24 -21
- package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +45 -39
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +45 -39
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +45 -39
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/bin/package/build-only.mjs +45 -39
- package/dist/bin/package/build-only.mjs.map +1 -1
- package/dist/bin/package/build.mjs +45 -39
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +45 -39
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +45 -39
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile-types.mjs +24 -21
- package/dist/bin/package/compile-types.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +45 -39
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +45 -39
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/index.mjs +45 -39
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/actions/index.mjs
CHANGED
|
@@ -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
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|