@xylabs/ts-scripts-yarn3 6.1.6 → 6.1.8
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 +5 -15
- package/dist/actions/index.mjs.map +1 -1
- package/dist/actions/package/compile/buildEntries.mjs +2 -7
- package/dist/actions/package/compile/buildEntries.mjs.map +1 -1
- package/dist/actions/package/compile/compile.mjs +5 -15
- package/dist/actions/package/compile/compile.mjs.map +1 -1
- package/dist/actions/package/compile/compileTypes.mjs +4 -14
- package/dist/actions/package/compile/compileTypes.mjs.map +1 -1
- package/dist/actions/package/compile/index.mjs +5 -15
- package/dist/actions/package/compile/index.mjs.map +1 -1
- package/dist/actions/package/compile/inputs.mjs +0 -5
- package/dist/actions/package/compile/inputs.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsc.mjs +3 -8
- package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTscTypes.mjs +4 -10
- package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
- package/dist/actions/package/compile/packageCompileTsup.mjs +5 -15
- package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
- package/dist/actions/package/index.mjs +5 -15
- package/dist/actions/package/index.mjs.map +1 -1
- package/dist/actions/package/recompile.mjs +5 -15
- package/dist/actions/package/recompile.mjs.map +1 -1
- package/dist/bin/package/build-only.mjs +5 -15
- package/dist/bin/package/build-only.mjs.map +1 -1
- package/dist/bin/package/build.mjs +5 -15
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/compile-only.mjs +5 -15
- package/dist/bin/package/compile-only.mjs.map +1 -1
- package/dist/bin/package/compile-tsup.mjs +5 -15
- package/dist/bin/package/compile-tsup.mjs.map +1 -1
- package/dist/bin/package/compile-types.mjs +4 -14
- package/dist/bin/package/compile-types.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +5 -15
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +5 -15
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/index.mjs +5 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/actions/index.mjs
CHANGED
|
@@ -1377,17 +1377,12 @@ import { build as build2, defineConfig } from "tsup";
|
|
|
1377
1377
|
import { glob as glob2 } from "glob";
|
|
1378
1378
|
var getAllInputs = /* @__PURE__ */ __name((folder) => {
|
|
1379
1379
|
return glob2.sync(`${folder}/**/*.*`, {
|
|
1380
|
-
ignore: [
|
|
1381
|
-
"**/*.spec.*",
|
|
1382
|
-
"**/*.stories.*",
|
|
1383
|
-
"**/spec/**/*"
|
|
1384
|
-
],
|
|
1385
1380
|
posix: true
|
|
1386
1381
|
});
|
|
1387
1382
|
}, "getAllInputs");
|
|
1388
1383
|
|
|
1389
1384
|
// src/actions/package/compile/buildEntries.ts
|
|
1390
|
-
var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", verbose = false) => {
|
|
1385
|
+
var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", excludeSpecAndStories = true, verbose = false) => {
|
|
1391
1386
|
let entries = [];
|
|
1392
1387
|
switch (entryMode) {
|
|
1393
1388
|
case "platform": {
|
|
@@ -1398,7 +1393,7 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", verbose
|
|
|
1398
1393
|
break;
|
|
1399
1394
|
}
|
|
1400
1395
|
case "all": {
|
|
1401
|
-
entries = getAllInputs(folder).filter((entry) => !entry.includes(".spec.") && !entry.includes(".
|
|
1396
|
+
entries = excludeSpecAndStories ? getAllInputs(folder).filter((entry) => !entry.includes(".spec.") && !entry.includes(".stories.")) : getAllInputs(folder);
|
|
1402
1397
|
break;
|
|
1403
1398
|
}
|
|
1404
1399
|
default: {
|
|
@@ -1412,11 +1407,9 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", verbose
|
|
|
1412
1407
|
return entries;
|
|
1413
1408
|
}, "buildEntries");
|
|
1414
1409
|
|
|
1415
|
-
// src/actions/package/compile/compileTypes.ts
|
|
1416
|
-
import chalk22 from "chalk";
|
|
1417
|
-
|
|
1418
1410
|
// src/actions/package/compile/packageCompileTscTypes.ts
|
|
1419
1411
|
import { cwd } from "node:process";
|
|
1412
|
+
import chalk22 from "chalk";
|
|
1420
1413
|
import { createProgramFromConfig } from "tsc-prog";
|
|
1421
1414
|
import { DiagnosticCategory, formatDiagnosticsWithColorAndContext, getPreEmitDiagnostics, sys as sys2 } from "typescript";
|
|
1422
1415
|
|
|
@@ -1446,9 +1439,6 @@ var getCompilerOptions = /* @__PURE__ */ __name((options = {}, tsconfig = "tscon
|
|
|
1446
1439
|
var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {}, compilerOptionsParam) => {
|
|
1447
1440
|
const pkg = process.env.INIT_CWD ?? cwd();
|
|
1448
1441
|
const verbose = config2?.verbose ?? false;
|
|
1449
|
-
if (verbose) {
|
|
1450
|
-
console.log(`Compiling types [${pkg}]`);
|
|
1451
|
-
}
|
|
1452
1442
|
const compilerOptions = {
|
|
1453
1443
|
...getCompilerOptions({
|
|
1454
1444
|
emitDeclarationOnly: true,
|
|
@@ -1472,6 +1462,7 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {
|
|
|
1472
1462
|
".d.mts"
|
|
1473
1463
|
];
|
|
1474
1464
|
const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)));
|
|
1465
|
+
console.log(chalk22.green(`Compiling Types ${pkg}: ${files.length}`));
|
|
1475
1466
|
const program = createProgramFromConfig({
|
|
1476
1467
|
basePath: pkg ?? cwd(),
|
|
1477
1468
|
compilerOptions,
|
|
@@ -1500,7 +1491,6 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {
|
|
|
1500
1491
|
// src/actions/package/compile/compileTypes.ts
|
|
1501
1492
|
var packageCompileTypes = /* @__PURE__ */ __name(async (inConfig = {}) => {
|
|
1502
1493
|
const pkg = process.env.INIT_CWD;
|
|
1503
|
-
console.log(chalk22.green(`Compiling Types ${pkg}`));
|
|
1504
1494
|
const config2 = await loadConfig(inConfig);
|
|
1505
1495
|
return packageCompileTscTypes(void 0, config2);
|
|
1506
1496
|
}, "packageCompileTypes");
|
|
@@ -1538,7 +1528,6 @@ import { DiagnosticCategory as DiagnosticCategory2, formatDiagnosticsWithColorAn
|
|
|
1538
1528
|
var packageCompileTsc = /* @__PURE__ */ __name((folder = "src", config2 = {}, compilerOptionsParam) => {
|
|
1539
1529
|
const pkg = process.env.INIT_CWD ?? cwd2();
|
|
1540
1530
|
const verbose = config2?.verbose ?? false;
|
|
1541
|
-
console.log(chalk23.green(`Compiling Files ${pkg}`));
|
|
1542
1531
|
const compilerOptions = {
|
|
1543
1532
|
...getCompilerOptions({
|
|
1544
1533
|
outDir: "dist/types",
|
|
@@ -1561,6 +1550,7 @@ var packageCompileTsc = /* @__PURE__ */ __name((folder = "src", config2 = {}, co
|
|
|
1561
1550
|
".d.mts"
|
|
1562
1551
|
];
|
|
1563
1552
|
const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)));
|
|
1553
|
+
console.log(chalk23.green(`Compiling Files ${pkg}: ${files.length}`));
|
|
1564
1554
|
const program = createProgramFromConfig2({
|
|
1565
1555
|
basePath: pkg ?? cwd2(),
|
|
1566
1556
|
compilerOptions,
|