@xylabs/ts-scripts-yarn3 6.1.6 → 6.1.7
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 -16
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/compile/buildEntries.mjs +8 -8
- package/dist/actions/package/compile/buildEntries.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +11 -16
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/compileTypes.mjs +10 -15
- package/dist/actions/package/compile/compileTypes.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +11 -16
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/inputs.mjs +6 -6
- package/dist/actions/package/compile/inputs.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsc.mjs +9 -9
- package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTscTypes.mjs +10 -11
- package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +11 -16
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +11 -16
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +11 -16
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/bin/package/build-only.mjs +11 -16
- package/dist/bin/package/build-only.mjs.map +1 -1
- package/dist/bin/package/build.mjs +11 -16
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +11 -16
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +11 -16
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile-types.mjs +10 -15
- package/dist/bin/package/compile-types.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +11 -16
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +11 -16
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/index.mjs +11 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/actions/index.mjs
CHANGED
|
@@ -1375,19 +1375,19 @@ import { build as build2, defineConfig } from "tsup";
|
|
|
1375
1375
|
|
|
1376
1376
|
// src/actions/package/compile/inputs.ts
|
|
1377
1377
|
import { glob as glob2 } from "glob";
|
|
1378
|
-
var getAllInputs = /* @__PURE__ */ __name((folder
|
|
1378
|
+
var getAllInputs = /* @__PURE__ */ __name((folder, ignore = [
|
|
1379
|
+
"**/*.spec.*",
|
|
1380
|
+
"**/*.stories.*",
|
|
1381
|
+
"**/spec/**/*"
|
|
1382
|
+
]) => {
|
|
1379
1383
|
return glob2.sync(`${folder}/**/*.*`, {
|
|
1380
|
-
ignore
|
|
1381
|
-
"**/*.spec.*",
|
|
1382
|
-
"**/*.stories.*",
|
|
1383
|
-
"**/spec/**/*"
|
|
1384
|
-
],
|
|
1384
|
+
ignore,
|
|
1385
1385
|
posix: true
|
|
1386
1386
|
});
|
|
1387
1387
|
}, "getAllInputs");
|
|
1388
1388
|
|
|
1389
1389
|
// src/actions/package/compile/buildEntries.ts
|
|
1390
|
-
var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", verbose = false) => {
|
|
1390
|
+
var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", excludeSpecAndStory = true, verbose = false) => {
|
|
1391
1391
|
let entries = [];
|
|
1392
1392
|
switch (entryMode) {
|
|
1393
1393
|
case "platform": {
|
|
@@ -1398,7 +1398,7 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", verbose
|
|
|
1398
1398
|
break;
|
|
1399
1399
|
}
|
|
1400
1400
|
case "all": {
|
|
1401
|
-
entries = getAllInputs(folder).filter((entry) => !entry.includes(".spec.") && !entry.includes(".
|
|
1401
|
+
entries = excludeSpecAndStory ? getAllInputs(folder).filter((entry) => !entry.includes(".spec.") && !entry.includes(".stories.")) : getAllInputs(folder, []);
|
|
1402
1402
|
break;
|
|
1403
1403
|
}
|
|
1404
1404
|
default: {
|
|
@@ -1412,11 +1412,9 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", verbose
|
|
|
1412
1412
|
return entries;
|
|
1413
1413
|
}, "buildEntries");
|
|
1414
1414
|
|
|
1415
|
-
// src/actions/package/compile/compileTypes.ts
|
|
1416
|
-
import chalk22 from "chalk";
|
|
1417
|
-
|
|
1418
1415
|
// src/actions/package/compile/packageCompileTscTypes.ts
|
|
1419
1416
|
import { cwd } from "node:process";
|
|
1417
|
+
import chalk22 from "chalk";
|
|
1420
1418
|
import { createProgramFromConfig } from "tsc-prog";
|
|
1421
1419
|
import { DiagnosticCategory, formatDiagnosticsWithColorAndContext, getPreEmitDiagnostics, sys as sys2 } from "typescript";
|
|
1422
1420
|
|
|
@@ -1446,9 +1444,6 @@ var getCompilerOptions = /* @__PURE__ */ __name((options = {}, tsconfig = "tscon
|
|
|
1446
1444
|
var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {}, compilerOptionsParam) => {
|
|
1447
1445
|
const pkg = process.env.INIT_CWD ?? cwd();
|
|
1448
1446
|
const verbose = config2?.verbose ?? false;
|
|
1449
|
-
if (verbose) {
|
|
1450
|
-
console.log(`Compiling types [${pkg}]`);
|
|
1451
|
-
}
|
|
1452
1447
|
const compilerOptions = {
|
|
1453
1448
|
...getCompilerOptions({
|
|
1454
1449
|
emitDeclarationOnly: true,
|
|
@@ -1472,6 +1467,7 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {
|
|
|
1472
1467
|
".d.mts"
|
|
1473
1468
|
];
|
|
1474
1469
|
const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)));
|
|
1470
|
+
console.log(chalk22.green(`Compiling Types ${pkg}: ${files.length}`));
|
|
1475
1471
|
const program = createProgramFromConfig({
|
|
1476
1472
|
basePath: pkg ?? cwd(),
|
|
1477
1473
|
compilerOptions,
|
|
@@ -1500,7 +1496,6 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {
|
|
|
1500
1496
|
// src/actions/package/compile/compileTypes.ts
|
|
1501
1497
|
var packageCompileTypes = /* @__PURE__ */ __name(async (inConfig = {}) => {
|
|
1502
1498
|
const pkg = process.env.INIT_CWD;
|
|
1503
|
-
console.log(chalk22.green(`Compiling Types ${pkg}`));
|
|
1504
1499
|
const config2 = await loadConfig(inConfig);
|
|
1505
1500
|
return packageCompileTscTypes(void 0, config2);
|
|
1506
1501
|
}, "packageCompileTypes");
|
|
@@ -1538,7 +1533,6 @@ import { DiagnosticCategory as DiagnosticCategory2, formatDiagnosticsWithColorAn
|
|
|
1538
1533
|
var packageCompileTsc = /* @__PURE__ */ __name((folder = "src", config2 = {}, compilerOptionsParam) => {
|
|
1539
1534
|
const pkg = process.env.INIT_CWD ?? cwd2();
|
|
1540
1535
|
const verbose = config2?.verbose ?? false;
|
|
1541
|
-
console.log(chalk23.green(`Compiling Files ${pkg}`));
|
|
1542
1536
|
const compilerOptions = {
|
|
1543
1537
|
...getCompilerOptions({
|
|
1544
1538
|
outDir: "dist/types",
|
|
@@ -1561,6 +1555,7 @@ var packageCompileTsc = /* @__PURE__ */ __name((folder = "src", config2 = {}, co
|
|
|
1561
1555
|
".d.mts"
|
|
1562
1556
|
];
|
|
1563
1557
|
const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)));
|
|
1558
|
+
console.log(chalk23.green(`Compiling Files ${pkg}: ${files.length}`));
|
|
1564
1559
|
const program = createProgramFromConfig2({
|
|
1565
1560
|
basePath: pkg ?? cwd2(),
|
|
1566
1561
|
compilerOptions,
|