@xylabs/ts-scripts-yarn3 6.5.18 → 7.0.0-rc.10

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.
Files changed (38) hide show
  1. package/dist/actions/index.mjs +110 -130
  2. package/dist/actions/index.mjs.map +1 -1
  3. package/dist/actions/package/compile/buildEntries.mjs +8 -1
  4. package/dist/actions/package/compile/buildEntries.mjs.map +1 -1
  5. package/dist/actions/package/compile/compile.mjs +87 -107
  6. package/dist/actions/package/compile/compile.mjs.map +1 -1
  7. package/dist/actions/package/compile/index.mjs +88 -108
  8. package/dist/actions/package/compile/index.mjs.map +1 -1
  9. package/dist/actions/package/compile/packageCompileTsc.mjs +9 -35
  10. package/dist/actions/package/compile/packageCompileTsc.mjs.map +1 -1
  11. package/dist/actions/package/compile/packageCompileTscTypes.mjs +29 -102
  12. package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
  13. package/dist/actions/package/compile/packageCompileTsup.mjs +96 -135
  14. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  15. package/dist/actions/package/index.mjs +100 -120
  16. package/dist/actions/package/index.mjs.map +1 -1
  17. package/dist/actions/package/recompile.mjs +87 -107
  18. package/dist/actions/package/recompile.mjs.map +1 -1
  19. package/dist/bin/package/build-only.mjs +89 -109
  20. package/dist/bin/package/build-only.mjs.map +1 -1
  21. package/dist/bin/package/build.mjs +89 -109
  22. package/dist/bin/package/build.mjs.map +1 -1
  23. package/dist/bin/package/compile-only.mjs +89 -109
  24. package/dist/bin/package/compile-only.mjs.map +1 -1
  25. package/dist/bin/package/compile-tsup.mjs +101 -140
  26. package/dist/bin/package/compile-tsup.mjs.map +1 -1
  27. package/dist/bin/package/compile.mjs +89 -109
  28. package/dist/bin/package/compile.mjs.map +1 -1
  29. package/dist/bin/package/recompile.mjs +89 -109
  30. package/dist/bin/package/recompile.mjs.map +1 -1
  31. package/dist/index.d.ts +24 -7
  32. package/dist/index.mjs +122 -142
  33. package/dist/index.mjs.map +1 -1
  34. package/package.json +8 -5
  35. package/dist/actions/package/compile/compileTypes.mjs +0 -138
  36. package/dist/actions/package/compile/compileTypes.mjs.map +0 -1
  37. package/dist/bin/package/compile-types.mjs +0 -150
  38. package/dist/bin/package/compile-types.mjs.map +0 -1
@@ -1319,7 +1319,7 @@ var packageClean = async () => {
1319
1319
  };
1320
1320
 
1321
1321
  // src/actions/package/compile/compile.ts
1322
- import chalk28 from "chalk";
1322
+ import chalk27 from "chalk";
1323
1323
 
1324
1324
  // src/actions/package/publint.ts
1325
1325
  import { promises as fs4 } from "fs";
@@ -1375,7 +1375,7 @@ var getAllInputs = (folder) => {
1375
1375
  };
1376
1376
 
1377
1377
  // src/actions/package/compile/buildEntries.ts
1378
- var buildEntries = (folder, entryMode = "single", excludeSpecAndStories = true, verbose = false) => {
1378
+ var buildEntries = (folder, entryMode = "single", options, excludeSpecAndStories = true, verbose = false) => {
1379
1379
  let entries = [];
1380
1380
  switch (entryMode) {
1381
1381
  case "platform": {
@@ -1386,16 +1386,46 @@ var buildEntries = (folder, entryMode = "single", excludeSpecAndStories = true,
1386
1386
  entries = excludeSpecAndStories ? getAllInputs(folder).filter((entry) => !entry.includes(".spec.") && !entry.includes(".stories.")) : getAllInputs(folder);
1387
1387
  break;
1388
1388
  }
1389
+ case "custom": {
1390
+ entries = [];
1391
+ break;
1392
+ }
1389
1393
  default: {
1390
1394
  entries = [`${folder}/index.ts`];
1391
1395
  break;
1392
1396
  }
1393
1397
  }
1398
+ if (typeof options !== "boolean" && Array.isArray(options?.entry)) {
1399
+ entries.push(...options.entry);
1400
+ }
1394
1401
  if (verbose) console.log(`buildEntries [${entryMode}] ${entries.length}`);
1395
1402
  return entries;
1396
1403
  };
1397
1404
 
1398
- // src/actions/package/compile/packageCompileTscTypes.ts
1405
+ // src/actions/package/compile/deepMerge.ts
1406
+ function deepMerge(target, source) {
1407
+ if (!source || typeof source !== "object") return target;
1408
+ for (const key of Object.keys(source)) {
1409
+ if (typeof source[key] === "object" && source[key] !== null && !Array.isArray(source[key])) {
1410
+ if (!target[key] || typeof target[key] !== "object") {
1411
+ target[key] = {};
1412
+ }
1413
+ deepMerge(target[key], source[key]);
1414
+ } else {
1415
+ target[key] = source[key];
1416
+ }
1417
+ }
1418
+ return target;
1419
+ }
1420
+ function deepMergeObjects(objects) {
1421
+ const result = {};
1422
+ for (const obj of objects) {
1423
+ deepMerge(result, obj);
1424
+ }
1425
+ return result;
1426
+ }
1427
+
1428
+ // src/actions/package/compile/packageCompileTsc.ts
1399
1429
  import { cwd } from "process";
1400
1430
  import chalk26 from "chalk";
1401
1431
  import { createProgramFromConfig } from "tsc-prog";
@@ -1432,33 +1462,33 @@ var getCompilerOptions = (options = {}, tsconfig = "tsconfig.json") => {
1432
1462
  return deepmerge2(configFileCompilerOptions, options);
1433
1463
  };
1434
1464
 
1435
- // src/actions/package/compile/packageCompileTscTypes.ts
1436
- var packageCompileTscTypes = (folder = "src", config2 = {}, compilerOptionsParam) => {
1465
+ // src/actions/package/compile/packageCompileTsc.ts
1466
+ var packageCompileTsc = (entries, folder = "src", config2 = {}, compilerOptionsParam) => {
1437
1467
  const pkg = process.env.INIT_CWD ?? cwd();
1438
1468
  const verbose = config2?.verbose ?? false;
1439
1469
  const compilerOptions = {
1440
1470
  ...getCompilerOptions({
1441
- emitDeclarationOnly: true,
1442
- outDir: config2.compile?.tsup?.options?.outDir ?? "dist/types",
1471
+ outDir: "dist/types",
1443
1472
  removeComments: false,
1444
1473
  skipDefaultLibCheck: true,
1445
1474
  skipLibCheck: true,
1446
1475
  sourceMap: false
1447
1476
  }),
1448
1477
  ...compilerOptionsParam,
1449
- emitDeclarationOnly: true,
1450
- noEmit: false
1478
+ emitDeclarationOnly: false,
1479
+ noEmit: true
1451
1480
  };
1452
- const validTsExt = [".ts", ".tsx", ".d.ts", ".cts", ".d.cts", ".mts", ".d.mts"];
1453
- const excludes = [".stories.", ".spec.", "/stories/", "/spec/"];
1454
- const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && !excludes.some((exclude) => file.includes(exclude)));
1455
- console.log(chalk26.green(`Compiling Types ${pkg}: ${files.length}`));
1456
- if (files.length > 0) {
1481
+ console.log(chalk26.green(`Validating Files: ${entries.length}`));
1482
+ if (verbose) {
1483
+ for (const entry of entries) {
1484
+ console.log(chalk26.grey(`Validating: ${entry}`));
1485
+ }
1486
+ }
1487
+ if (entries.length > 0) {
1457
1488
  const program = createProgramFromConfig({
1458
1489
  basePath: pkg ?? cwd(),
1459
1490
  compilerOptions,
1460
- exclude: ["build", "dist", "docs", "**/*.spec.*", "**/*.stories.*", "src/**/spec/**/*"],
1461
- files
1491
+ files: entries
1462
1492
  });
1463
1493
  const diagnostics = getPreEmitDiagnostics(program);
1464
1494
  if (diagnostics.length > 0) {
@@ -1478,102 +1508,54 @@ var packageCompileTscTypes = (folder = "src", config2 = {}, compilerOptionsParam
1478
1508
  return 0;
1479
1509
  };
1480
1510
 
1481
- // src/actions/package/compile/compileTypes.ts
1482
- var packageCompileTypes = async (inConfig = {}) => {
1483
- const config2 = await loadConfig(inConfig);
1484
- return packageCompileTscTypes(void 0, config2);
1485
- };
1486
-
1487
- // src/actions/package/compile/deepMerge.ts
1488
- function deepMerge(target, source) {
1489
- if (!source || typeof source !== "object") return target;
1490
- for (const key of Object.keys(source)) {
1491
- if (typeof source[key] === "object" && source[key] !== null && !Array.isArray(source[key])) {
1492
- if (!target[key] || typeof target[key] !== "object") {
1493
- target[key] = {};
1494
- }
1495
- deepMerge(target[key], source[key]);
1496
- } else {
1497
- target[key] = source[key];
1511
+ // src/actions/package/compile/packageCompileTscTypes.ts
1512
+ import { cwd as cwd2 } from "process";
1513
+ import { rollup } from "rollup";
1514
+ import dts from "rollup-plugin-dts";
1515
+ import nodeExternals from "rollup-plugin-node-externals";
1516
+ async function bundleDts(inputPath, outputPath, platform) {
1517
+ const nodePlugIns = platform === "node" ? [nodeExternals()] : [];
1518
+ const bundle = await rollup({
1519
+ input: inputPath,
1520
+ plugins: [dts(), ...nodePlugIns],
1521
+ onwarn(warning, warn) {
1522
+ if (warning.code === "UNUSED_EXTERNAL_IMPORT") return;
1523
+ warn(warning);
1498
1524
  }
1499
- }
1500
- return target;
1501
- }
1502
- function deepMergeObjects(objects) {
1503
- const result = {};
1504
- for (const obj of objects) {
1505
- deepMerge(result, obj);
1506
- }
1507
- return result;
1525
+ });
1526
+ await bundle.write({
1527
+ file: outputPath,
1528
+ format: "es"
1529
+ });
1530
+ console.log(`Bundled declarations written to ${outputPath}`);
1508
1531
  }
1509
-
1510
- // src/actions/package/compile/packageCompileTsc.ts
1511
- import { cwd as cwd2 } from "process";
1512
- import chalk27 from "chalk";
1513
- import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
1514
- import {
1515
- DiagnosticCategory as DiagnosticCategory2,
1516
- formatDiagnosticsWithColorAndContext as formatDiagnosticsWithColorAndContext2,
1517
- getPreEmitDiagnostics as getPreEmitDiagnostics2,
1518
- sys as sys3
1519
- } from "typescript";
1520
- var packageCompileTsc = (folder = "src", config2 = {}, compilerOptionsParam) => {
1532
+ var packageCompileTscTypes = async (entries, outDir, platform, folder = "src") => {
1521
1533
  const pkg = process.env.INIT_CWD ?? cwd2();
1522
- const verbose = config2?.verbose ?? false;
1523
- const compilerOptions = {
1524
- ...getCompilerOptions({
1525
- outDir: "dist/types",
1526
- removeComments: false,
1527
- skipDefaultLibCheck: true,
1528
- skipLibCheck: true,
1529
- sourceMap: false
1530
- }),
1531
- ...compilerOptionsParam,
1532
- emitDeclarationOnly: false,
1533
- noEmit: true
1534
+ const srcRoot = `${pkg}/${folder}`;
1535
+ const entryNameToTypeName = (entry) => {
1536
+ const splitEntryName = entry.split(".");
1537
+ const newEntryExtension = "d." + splitEntryName.at(-1);
1538
+ return [...splitEntryName.slice(0, -1), newEntryExtension].join(".");
1534
1539
  };
1535
- const validTsExt = [".ts", ".tsx", ".d.ts", ".cts", ".d.cts", ".mts", ".d.mts"];
1536
- const includes = [".stories.", ".spec.", ".d.ts", ".d.cts", ".d.mts"];
1537
- const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && includes.find((include) => file.includes(include)));
1538
- console.log(chalk27.green(`Compiling Files ${pkg}: ${files.length}`));
1539
- if (files.length > 0) {
1540
- const program = createProgramFromConfig2({
1541
- basePath: pkg ?? cwd2(),
1542
- compilerOptions,
1543
- exclude: ["dist", "docs"],
1544
- files
1545
- });
1546
- const diagnostics = getPreEmitDiagnostics2(program);
1547
- if (diagnostics.length > 0) {
1548
- const formattedDiagnostics = formatDiagnosticsWithColorAndContext2(
1549
- diagnostics,
1550
- {
1551
- getCanonicalFileName: (fileName) => fileName,
1552
- getCurrentDirectory: () => folder,
1553
- getNewLine: () => sys3.newLine
1554
- }
1555
- );
1556
- console.error(formattedDiagnostics);
1557
- }
1558
- program.emit();
1559
- return diagnostics.reduce((acc, diag) => acc + (diag.category === DiagnosticCategory2.Error ? 1 : 0), 0);
1560
- }
1540
+ const entryNames = entries.map((entry) => entry.split(`${folder}/`).at(-1) ?? entry);
1541
+ await Promise.all(entryNames.map(async (entryName) => {
1542
+ await bundleDts(`${srcRoot}/${entryName}`, outDir + "/" + entryNameToTypeName(entryName), platform);
1543
+ }));
1561
1544
  return 0;
1562
1545
  };
1563
1546
 
1564
1547
  // src/actions/package/compile/packageCompileTsup.ts
1565
- var compileFolder = async (folder, entryMode = "single", options, verbose) => {
1548
+ var compileFolder = async (folder, entries, options, verbose) => {
1566
1549
  const outDir = options?.outDir ?? "dist";
1567
1550
  if (verbose) {
1568
1551
  console.log(`compileFolder [${folder}]`);
1569
1552
  }
1570
- const entry = buildEntries(folder, entryMode);
1571
1553
  const optionsResult = defineConfig({
1572
1554
  bundle: true,
1573
1555
  cjsInterop: true,
1574
1556
  clean: true,
1575
1557
  dts: false,
1576
- entry,
1558
+ entry: entries,
1577
1559
  format: ["esm"],
1578
1560
  outDir,
1579
1561
  silent: true,
@@ -1582,6 +1564,11 @@ var compileFolder = async (folder, entryMode = "single", options, verbose) => {
1582
1564
  tsconfig: "tsconfig.json",
1583
1565
  ...options
1584
1566
  });
1567
+ const validationResult = packageCompileTsc(entries);
1568
+ if (validationResult !== 0) {
1569
+ console.error(`Compile:Validation had ${validationResult} errors`);
1570
+ return validationResult;
1571
+ }
1585
1572
  const optionsList = (await Promise.all(
1586
1573
  (Array.isArray(optionsResult) ? optionsResult : [optionsResult]).flatMap(async (options2) => {
1587
1574
  const result = typeof options2 === "function" ? await options2({}) : [options2];
@@ -1595,6 +1582,7 @@ var compileFolder = async (folder, entryMode = "single", options, verbose) => {
1595
1582
  if (verbose) {
1596
1583
  console.log(`TSUP:build:stop [${folder}]`);
1597
1584
  }
1585
+ await packageCompileTscTypes(entries, outDir, options?.platform ?? "neutral", folder);
1598
1586
  return 0;
1599
1587
  };
1600
1588
  var tsupOptions = (options = []) => {
@@ -1627,21 +1615,13 @@ var packageCompileTsup = async (config2) => {
1627
1615
  const compileForNode = compile2?.node ?? { src: {} };
1628
1616
  const compileForBrowser = compile2?.browser ?? { src: {} };
1629
1617
  const compileForNeutral = compile2?.neutral ?? { src: {} };
1630
- if (verbose) {
1631
- console.log("Calling packageCompileTscTypes");
1632
- }
1633
- let errors = await packageCompileTypes(config2);
1634
- errors = errors + packageCompileTsc(void 0, config2);
1635
- if (errors > 0) {
1636
- return errors;
1637
- }
1638
1618
  return (await Promise.all(
1639
1619
  Object.entries(compileForNode).map(async ([folder, options]) => {
1640
1620
  const optionsObject = typeof options === "object" ? options : {};
1641
1621
  const inEsBuildOptions = typeof compile2?.node?.esbuildOptions === "object" ? compile2?.node?.esbuildOptions : {};
1642
1622
  return typeof folder === "string" ? await compileFolder(
1643
1623
  folder,
1644
- compile2?.entryMode,
1624
+ buildEntries(folder, compile2?.entryMode, options, true, verbose),
1645
1625
  tsupOptions([
1646
1626
  inEsBuildOptions,
1647
1627
  compile2?.tsup?.options ?? {},
@@ -1657,7 +1637,7 @@ var packageCompileTsup = async (config2) => {
1657
1637
  const inEsBuildOptions = typeof compile2?.browser?.esbuildOptions === "object" ? compile2?.browser?.esbuildOptions : {};
1658
1638
  return typeof folder === "string" ? await compileFolder(
1659
1639
  folder,
1660
- compile2?.entryMode,
1640
+ buildEntries(folder, compile2?.entryMode, options, true, verbose),
1661
1641
  tsupOptions([
1662
1642
  inEsBuildOptions,
1663
1643
  compile2?.tsup?.options ?? {},
@@ -1673,7 +1653,7 @@ var packageCompileTsup = async (config2) => {
1673
1653
  const inEsBuildOptions = typeof compile2?.neutral?.esbuildOptions === "object" ? compile2?.neutral?.esbuildOptions : {};
1674
1654
  return typeof folder === "string" ? await compileFolder(
1675
1655
  folder,
1676
- compile2?.entryMode,
1656
+ buildEntries(folder, compile2?.entryMode, options, true, verbose),
1677
1657
  tsupOptions([
1678
1658
  inEsBuildOptions,
1679
1659
  compile2?.tsup?.options ?? {},
@@ -1689,7 +1669,7 @@ var packageCompileTsup = async (config2) => {
1689
1669
  // src/actions/package/compile/compile.ts
1690
1670
  var packageCompile = async (inConfig = {}) => {
1691
1671
  const pkg = process.env.INIT_CWD;
1692
- console.log(chalk28.green(`Compiling ${pkg}`));
1672
+ console.log(chalk27.green(`Compiling ${pkg}`));
1693
1673
  const config2 = await loadConfig(inConfig);
1694
1674
  const publint2 = config2.publint;
1695
1675
  const tsupResults = await packageCompileTsup(config2);
@@ -1701,7 +1681,7 @@ var packageCompile = async (inConfig = {}) => {
1701
1681
 
1702
1682
  // src/actions/package/copy-assets.ts
1703
1683
  import path7 from "path/posix";
1704
- import chalk29 from "chalk";
1684
+ import chalk28 from "chalk";
1705
1685
  import cpy2 from "cpy";
1706
1686
  var copyTargetAssets2 = async (target, name, location) => {
1707
1687
  try {
@@ -1714,7 +1694,7 @@ var copyTargetAssets2 = async (target, name, location) => {
1714
1694
  }
1715
1695
  );
1716
1696
  if (values.length > 0) {
1717
- console.log(chalk29.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1697
+ console.log(chalk28.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1718
1698
  }
1719
1699
  for (const value of values) {
1720
1700
  console.log(`${value.split("/").pop()} => ./dist/${target}`);
@@ -1783,7 +1763,7 @@ var packageCycle = async ({ verbose = false }) => {
1783
1763
  // src/actions/package/gen-docs.ts
1784
1764
  import { existsSync as existsSync4 } from "fs";
1785
1765
  import path8 from "path";
1786
- import chalk30 from "chalk";
1766
+ import chalk29 from "chalk";
1787
1767
  import {
1788
1768
  Application,
1789
1769
  ArgumentsReader,
@@ -1887,7 +1867,7 @@ var runTypeDoc = async (app) => {
1887
1867
  return ExitCodes.OutputError;
1888
1868
  }
1889
1869
  }
1890
- console.log(chalk30.green(`${pkgName} - Ok`));
1870
+ console.log(chalk29.green(`${pkgName} - Ok`));
1891
1871
  return ExitCodes.Ok;
1892
1872
  };
1893
1873
 
@@ -1896,7 +1876,7 @@ import { readdirSync } from "fs";
1896
1876
  import path9 from "path";
1897
1877
  import { cwd as cwd3 } from "process";
1898
1878
  import { pathToFileURL } from "url";
1899
- import chalk31 from "chalk";
1879
+ import chalk30 from "chalk";
1900
1880
  import { ESLint } from "eslint";
1901
1881
  import { findUp } from "find-up";
1902
1882
  import picomatch from "picomatch";
@@ -1905,14 +1885,14 @@ var dumpMessages = (lintResults) => {
1905
1885
  const severity = ["none", "warning", "error"];
1906
1886
  for (const lintResult of lintResults) {
1907
1887
  if (lintResult.messages.length > 0) {
1908
- console.log(chalk31.gray(`
1888
+ console.log(chalk30.gray(`
1909
1889
  ${lintResult.filePath}`));
1910
1890
  for (const message of lintResult.messages) {
1911
1891
  console.log(
1912
- chalk31.gray(` ${message.line}:${message.column}`),
1913
- chalk31[colors[message.severity]](` ${severity[message.severity]}`),
1914
- chalk31.white(` ${message.message}`),
1915
- chalk31.gray(` ${message.ruleId}`)
1892
+ chalk30.gray(` ${message.line}:${message.column}`),
1893
+ chalk30[colors[message.severity]](` ${severity[message.severity]}`),
1894
+ chalk30.white(` ${message.message}`),
1895
+ chalk30.gray(` ${message.ruleId}`)
1916
1896
  );
1917
1897
  }
1918
1898
  }
@@ -1951,7 +1931,7 @@ var packageLint = async (fix2 = false, verbose = false, cache = true) => {
1951
1931
  });
1952
1932
  const files = getFiles(cwd3(), ignoreFolders);
1953
1933
  if (verbose) {
1954
- console.log(chalk31.green(`Linting ${pkg} [files = ${files.length}]`));
1934
+ console.log(chalk30.green(`Linting ${pkg} [files = ${files.length}]`));
1955
1935
  }
1956
1936
  const lintResults = await engine.lintFiles(files);
1957
1937
  dumpMessages(lintResults);
@@ -1961,7 +1941,7 @@ var packageLint = async (fix2 = false, verbose = false, cache = true) => {
1961
1941
  const filesCountColor = files.length < 100 ? "green" : files.length < 1e3 ? "yellow" : "red";
1962
1942
  const lintTime = Date.now() - start;
1963
1943
  const lintTimeColor = lintTime < 1e3 ? "green" : lintTime < 3e3 ? "yellow" : "red";
1964
- console.log(chalk31.white(`Linted ${chalk31[filesCountColor](files.length)} files in ${chalk31[lintTimeColor](lintTime)}ms`));
1944
+ console.log(chalk30.white(`Linted ${chalk30[filesCountColor](files.length)} files in ${chalk30[lintTimeColor](lintTime)}ms`));
1965
1945
  return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
1966
1946
  };
1967
1947
 
@@ -1991,7 +1971,7 @@ var rebuild = ({ target }) => {
1991
1971
  };
1992
1972
 
1993
1973
  // src/actions/recompile.ts
1994
- import chalk32 from "chalk";
1974
+ import chalk31 from "chalk";
1995
1975
  var recompile = async ({
1996
1976
  verbose,
1997
1977
  target,
@@ -2027,7 +2007,7 @@ var recompileAll = async ({
2027
2007
  const incrementalOptions = incremental ? ["--since", "-Apt", "--topological-dev"] : ["--parallel", "-Apt", "--topological-dev"];
2028
2008
  const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
2029
2009
  if (jobs) {
2030
- console.log(chalk32.blue(`Jobs set to [${jobs}]`));
2010
+ console.log(chalk31.blue(`Jobs set to [${jobs}]`));
2031
2011
  }
2032
2012
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
2033
2013
  [
@@ -2058,7 +2038,7 @@ var recompileAll = async ({
2058
2038
  ]
2059
2039
  ]);
2060
2040
  console.log(
2061
- `${chalk32.gray("Recompiled in")} [${chalk32.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk32.gray("seconds")}`
2041
+ `${chalk31.gray("Recompiled in")} [${chalk31.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk31.gray("seconds")}`
2062
2042
  );
2063
2043
  return result;
2064
2044
  };
@@ -2089,9 +2069,9 @@ var reinstall = () => {
2089
2069
  };
2090
2070
 
2091
2071
  // src/actions/relint.ts
2092
- import chalk33 from "chalk";
2072
+ import chalk32 from "chalk";
2093
2073
  var relintPackage = ({ pkg }) => {
2094
- console.log(chalk33.gray(`${"Relint"} [All-Packages]`));
2074
+ console.log(chalk32.gray(`${"Relint"} [All-Packages]`));
2095
2075
  const start = Date.now();
2096
2076
  const result = runSteps("Relint [All-Packages]", [
2097
2077
  ["yarn", [
@@ -2101,7 +2081,7 @@ var relintPackage = ({ pkg }) => {
2101
2081
  "package-relint"
2102
2082
  ]]
2103
2083
  ]);
2104
- console.log(chalk33.gray(`${"Relinted in"} [${chalk33.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk33.gray("seconds")}`));
2084
+ console.log(chalk32.gray(`${"Relinted in"} [${chalk32.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk32.gray("seconds")}`));
2105
2085
  return result;
2106
2086
  };
2107
2087
  var relint = ({
@@ -2112,7 +2092,7 @@ var relint = ({
2112
2092
  return pkg ? relintPackage({ pkg }) : relintAllPackages({ verbose, incremental });
2113
2093
  };
2114
2094
  var relintAllPackages = ({ verbose = true, incremental } = {}) => {
2115
- console.log(chalk33.gray(`${"Relint"} [All-Packages]`));
2095
+ console.log(chalk32.gray(`${"Relint"} [All-Packages]`));
2116
2096
  const start = Date.now();
2117
2097
  const verboseOptions = verbose ? ["--verbose"] : ["--no-verbose"];
2118
2098
  const incrementalOptions = incremental ? ["--since", "-Ap"] : ["--parallel", "-Ap"];
@@ -2126,7 +2106,7 @@ var relintAllPackages = ({ verbose = true, incremental } = {}) => {
2126
2106
  "package-relint"
2127
2107
  ]]
2128
2108
  ]);
2129
- console.log(chalk33.gray(`Relinted in [${chalk33.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk33.gray("seconds")}`));
2109
+ console.log(chalk32.gray(`Relinted in [${chalk32.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk32.gray("seconds")}`));
2130
2110
  return result;
2131
2111
  };
2132
2112
 
@@ -2144,10 +2124,10 @@ var sonar = () => {
2144
2124
  };
2145
2125
 
2146
2126
  // src/actions/statics.ts
2147
- import chalk34 from "chalk";
2127
+ import chalk33 from "chalk";
2148
2128
  var DefaultDependencies = ["axios", "@xylabs/pixel", "react", "graphql", "react-router", "@mui/material", "@mui/system"];
2149
2129
  var statics = () => {
2150
- console.log(chalk34.green("Check Required Static Dependencies"));
2130
+ console.log(chalk33.green("Check Required Static Dependencies"));
2151
2131
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
2152
2132
  return detectDuplicateDependencies(statics2, DefaultDependencies);
2153
2133
  };
@@ -2196,6 +2176,7 @@ var yarn3Only = () => {
2196
2176
  };
2197
2177
  export {
2198
2178
  build,
2179
+ bundleDts,
2199
2180
  clean,
2200
2181
  cleanAll,
2201
2182
  cleanDocs,
@@ -2237,7 +2218,6 @@ export {
2237
2218
  packageCompileTsc,
2238
2219
  packageCompileTscTypes,
2239
2220
  packageCompileTsup,
2240
- packageCompileTypes,
2241
2221
  packageCopyAssets,
2242
2222
  packageCycle,
2243
2223
  packageGenDocs,