@xylabs/ts-scripts-yarn3 5.1.14 → 6.0.1

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 (171) hide show
  1. package/dist/actions/compile-types.mjs +176 -0
  2. package/dist/actions/compile-types.mjs.map +1 -0
  3. package/dist/actions/fix.mjs +2 -2
  4. package/dist/actions/fix.mjs.map +1 -1
  5. package/dist/actions/index.mjs +253 -139
  6. package/dist/actions/index.mjs.map +1 -1
  7. package/dist/actions/lint-clean.mjs +2 -2
  8. package/dist/actions/lint-clean.mjs.map +1 -1
  9. package/dist/actions/lint.mjs +2 -2
  10. package/dist/actions/lint.mjs.map +1 -1
  11. package/dist/actions/package/compile/compile.mjs +88 -64
  12. package/dist/actions/package/compile/compile.mjs.map +1 -1
  13. package/dist/actions/package/compile/compileTypes.mjs +164 -0
  14. package/dist/actions/package/compile/compileTypes.mjs.map +1 -0
  15. package/dist/actions/package/compile/deepMerge.mjs +31 -0
  16. package/dist/actions/package/compile/deepMerge.mjs.map +1 -0
  17. package/dist/actions/package/compile/index.mjs +101 -65
  18. package/dist/actions/package/compile/index.mjs.map +1 -1
  19. package/dist/actions/package/compile/packageCompileTscTypes.mjs +3 -2
  20. package/dist/actions/package/compile/packageCompileTscTypes.mjs.map +1 -1
  21. package/dist/actions/package/compile/packageCompileTsup.mjs +90 -65
  22. package/dist/actions/package/compile/packageCompileTsup.mjs.map +1 -1
  23. package/dist/actions/package/index.mjs +118 -80
  24. package/dist/actions/package/index.mjs.map +1 -1
  25. package/dist/actions/package/lint.mjs +2 -0
  26. package/dist/actions/package/lint.mjs.map +1 -1
  27. package/dist/actions/package/recompile.mjs +88 -64
  28. package/dist/actions/package/recompile.mjs.map +1 -1
  29. package/dist/bin/package/build-only.mjs +88 -64
  30. package/dist/bin/package/build-only.mjs.map +1 -1
  31. package/dist/bin/package/build.mjs +88 -64
  32. package/dist/bin/package/build.mjs.map +1 -1
  33. package/dist/bin/package/compile-only.mjs +88 -64
  34. package/dist/bin/package/compile-only.mjs.map +1 -1
  35. package/dist/bin/package/compile-tsup.mjs +88 -64
  36. package/dist/bin/package/compile-tsup.mjs.map +1 -1
  37. package/dist/bin/package/compile-types.mjs +173 -0
  38. package/dist/bin/package/compile-types.mjs.map +1 -0
  39. package/dist/bin/package/compile.mjs +88 -64
  40. package/dist/bin/package/compile.mjs.map +1 -1
  41. package/dist/bin/package/fix.mjs +2 -0
  42. package/dist/bin/package/fix.mjs.map +1 -1
  43. package/dist/bin/package/lint.mjs +2 -0
  44. package/dist/bin/package/lint.mjs.map +1 -1
  45. package/dist/bin/package/recompile.mjs +88 -64
  46. package/dist/bin/package/recompile.mjs.map +1 -1
  47. package/dist/bin/xy.mjs +132 -45
  48. package/dist/bin/xy.mjs.map +1 -1
  49. package/dist/index.d.ts +21 -1
  50. package/dist/index.mjs +277 -149
  51. package/dist/index.mjs.map +1 -1
  52. package/dist/xy/index.mjs +132 -45
  53. package/dist/xy/index.mjs.map +1 -1
  54. package/dist/xy/xy.mjs +132 -45
  55. package/dist/xy/xy.mjs.map +1 -1
  56. package/dist/xy/xyBuildCommands.mjs +92 -5
  57. package/dist/xy/xyBuildCommands.mjs.map +1 -1
  58. package/dist/xy/xyLintCommands.mjs +2 -2
  59. package/dist/xy/xyLintCommands.mjs.map +1 -1
  60. package/package.json +18 -49
  61. package/src/actions/compile-types.ts +67 -0
  62. package/src/actions/index.ts +1 -0
  63. package/src/actions/lint.ts +1 -1
  64. package/src/actions/package/compile/compileTypes.ts +13 -0
  65. package/src/actions/package/compile/deepMerge.ts +33 -0
  66. package/src/actions/package/compile/index.ts +2 -0
  67. package/src/actions/package/compile/packageCompileTscTypes.ts +3 -2
  68. package/src/actions/package/compile/packageCompileTsup.ts +39 -53
  69. package/src/actions/package/lint.ts +2 -0
  70. package/src/bin/package/compile-types.ts +16 -0
  71. package/src/bin/xy.ts +1 -1
  72. package/src/xy/xyBuildCommands.ts +19 -1
  73. package/dist/bin/build.mjs +0 -17
  74. package/dist/bin/build.mjs.map +0 -1
  75. package/dist/bin/clean.mjs +0 -17
  76. package/dist/bin/clean.mjs.map +0 -1
  77. package/dist/bin/compile-only.mjs +0 -17
  78. package/dist/bin/compile-only.mjs.map +0 -1
  79. package/dist/bin/compile.mjs +0 -17
  80. package/dist/bin/compile.mjs.map +0 -1
  81. package/dist/bin/cycle.mjs +0 -17
  82. package/dist/bin/cycle.mjs.map +0 -1
  83. package/dist/bin/dead.mjs +0 -17
  84. package/dist/bin/dead.mjs.map +0 -1
  85. package/dist/bin/deploy-major.mjs +0 -17
  86. package/dist/bin/deploy-major.mjs.map +0 -1
  87. package/dist/bin/deploy-minor.mjs +0 -17
  88. package/dist/bin/deploy-minor.mjs.map +0 -1
  89. package/dist/bin/deploy-next.mjs +0 -17
  90. package/dist/bin/deploy-next.mjs.map +0 -1
  91. package/dist/bin/deploy.mjs +0 -17
  92. package/dist/bin/deploy.mjs.map +0 -1
  93. package/dist/bin/deps.mjs +0 -17
  94. package/dist/bin/deps.mjs.map +0 -1
  95. package/dist/bin/fix.mjs +0 -17
  96. package/dist/bin/fix.mjs.map +0 -1
  97. package/dist/bin/gen-docs.mjs +0 -17
  98. package/dist/bin/gen-docs.mjs.map +0 -1
  99. package/dist/bin/gitlint-fix.mjs +0 -17
  100. package/dist/bin/gitlint-fix.mjs.map +0 -1
  101. package/dist/bin/gitlint.mjs +0 -17
  102. package/dist/bin/gitlint.mjs.map +0 -1
  103. package/dist/bin/license.mjs +0 -17
  104. package/dist/bin/license.mjs.map +0 -1
  105. package/dist/bin/lint-clean.mjs +0 -17
  106. package/dist/bin/lint-clean.mjs.map +0 -1
  107. package/dist/bin/lint-fast.mjs +0 -17
  108. package/dist/bin/lint-fast.mjs.map +0 -1
  109. package/dist/bin/lint-profile.mjs +0 -17
  110. package/dist/bin/lint-profile.mjs.map +0 -1
  111. package/dist/bin/lint.mjs +0 -17
  112. package/dist/bin/lint.mjs.map +0 -1
  113. package/dist/bin/publint.mjs +0 -17
  114. package/dist/bin/publint.mjs.map +0 -1
  115. package/dist/bin/rebuild.mjs +0 -17
  116. package/dist/bin/rebuild.mjs.map +0 -1
  117. package/dist/bin/recompile.mjs +0 -17
  118. package/dist/bin/recompile.mjs.map +0 -1
  119. package/dist/bin/reinstall.mjs +0 -17
  120. package/dist/bin/reinstall.mjs.map +0 -1
  121. package/dist/bin/relint.mjs +0 -17
  122. package/dist/bin/relint.mjs.map +0 -1
  123. package/dist/bin/sonar.mjs +0 -17
  124. package/dist/bin/sonar.mjs.map +0 -1
  125. package/dist/bin/test.mjs +0 -17
  126. package/dist/bin/test.mjs.map +0 -1
  127. package/dist/bin/up.mjs +0 -17
  128. package/dist/bin/up.mjs.map +0 -1
  129. package/dist/bin/updo.mjs +0 -17
  130. package/dist/bin/updo.mjs.map +0 -1
  131. package/dist/bin/upplug.mjs +0 -17
  132. package/dist/bin/upplug.mjs.map +0 -1
  133. package/dist/bin/upyarn.mjs +0 -17
  134. package/dist/bin/upyarn.mjs.map +0 -1
  135. package/dist/bin/xy-ts.mjs +0 -1930
  136. package/dist/bin/xy-ts.mjs.map +0 -1
  137. package/dist/bin/yarn3only.mjs +0 -17
  138. package/dist/bin/yarn3only.mjs.map +0 -1
  139. package/src/bin/build.ts +0 -5
  140. package/src/bin/clean.ts +0 -5
  141. package/src/bin/compile-only.ts +0 -5
  142. package/src/bin/compile.ts +0 -5
  143. package/src/bin/cycle.ts +0 -5
  144. package/src/bin/dead.ts +0 -5
  145. package/src/bin/deploy-major.ts +0 -5
  146. package/src/bin/deploy-minor.ts +0 -5
  147. package/src/bin/deploy-next.ts +0 -5
  148. package/src/bin/deploy.ts +0 -5
  149. package/src/bin/deps.ts +0 -5
  150. package/src/bin/fix.ts +0 -5
  151. package/src/bin/gen-docs.ts +0 -5
  152. package/src/bin/gitlint-fix.ts +0 -5
  153. package/src/bin/gitlint.ts +0 -5
  154. package/src/bin/license.ts +0 -5
  155. package/src/bin/lint-clean.ts +0 -5
  156. package/src/bin/lint-fast.ts +0 -5
  157. package/src/bin/lint-profile.ts +0 -5
  158. package/src/bin/lint.ts +0 -5
  159. package/src/bin/publint.ts +0 -5
  160. package/src/bin/rebuild.ts +0 -5
  161. package/src/bin/recompile.ts +0 -5
  162. package/src/bin/reinstall.ts +0 -5
  163. package/src/bin/relint.ts +0 -5
  164. package/src/bin/sonar.ts +0 -5
  165. package/src/bin/test.ts +0 -5
  166. package/src/bin/up.ts +0 -5
  167. package/src/bin/updo.ts +0 -5
  168. package/src/bin/upplug.ts +0 -5
  169. package/src/bin/upyarn.ts +0 -5
  170. package/src/bin/xy-ts.ts +0 -12
  171. package/src/bin/yarn3only.ts +0 -5
@@ -633,9 +633,82 @@ var compileAll = /* @__PURE__ */ __name(({ jobs, verbose, target, incremental, t
633
633
  return result;
634
634
  }, "compileAll");
635
635
 
636
+ // src/actions/compile-types.ts
637
+ import chalk11 from "chalk";
638
+ var compileTypes = /* @__PURE__ */ __name(({ verbose, pkg, incremental, jobs }) => {
639
+ if (verbose) {
640
+ console.log(chalk11.gray("Compiling Types"));
641
+ }
642
+ return pkg ? compileTypesPackage({
643
+ pkg,
644
+ verbose
645
+ }) : compileTypesAll({
646
+ incremental,
647
+ verbose,
648
+ jobs
649
+ });
650
+ }, "compileTypes");
651
+ var compileTypesPackage = /* @__PURE__ */ __name(({ verbose, pkg }) => {
652
+ if (verbose) {
653
+ console.log(chalk11.gray("Compiling Types [Package]"));
654
+ }
655
+ return runSteps(`Compile [${pkg}]`, [
656
+ [
657
+ "yarn",
658
+ [
659
+ "workspace",
660
+ pkg,
661
+ "run",
662
+ "package-compile-types"
663
+ ]
664
+ ]
665
+ ]);
666
+ }, "compileTypesPackage");
667
+ var compileTypesAll = /* @__PURE__ */ __name(({ jobs, verbose, incremental }) => {
668
+ if (verbose) {
669
+ console.log(chalk11.gray("Compiling Types [All]"));
670
+ }
671
+ const start = Date.now();
672
+ const verboseOptions = verbose ? [
673
+ "--verbose"
674
+ ] : [
675
+ "--no-verbose"
676
+ ];
677
+ const incrementalOptions = incremental ? [
678
+ "--since",
679
+ "-Ap"
680
+ ] : [
681
+ "--parallel",
682
+ "-Ap"
683
+ ];
684
+ const jobsOptions = jobs ? [
685
+ "-j",
686
+ `${jobs}`
687
+ ] : [];
688
+ if (jobs) {
689
+ console.log(chalk11.blue(`Jobs set to [${jobs}]`));
690
+ }
691
+ const result = runSteps(`Compile Types ${incremental ? "[Incremental]" : ""} [All]`, [
692
+ [
693
+ "yarn",
694
+ [
695
+ "workspaces",
696
+ "foreach",
697
+ ...incrementalOptions,
698
+ ...jobsOptions,
699
+ ...verboseOptions,
700
+ "run",
701
+ "package-compile-types"
702
+ ]
703
+ ]
704
+ ]);
705
+ console.log(`${chalk11.gray("Types Compiled in")} [${chalk11.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk11.gray("seconds")}`);
706
+ return result;
707
+ }, "compileTypesAll");
708
+
636
709
  // src/actions/copy-assets.ts
637
710
  import path2 from "node:path/posix";
638
- import chalk11 from "chalk";
711
+ import chalk12 from "chalk";
639
712
  import cpy from "cpy";
640
713
  var copyPackageTargetAssets = /* @__PURE__ */ __name(async (target, name, location) => {
641
714
  try {
@@ -664,7 +737,7 @@ var copyPackageTargetAssets = /* @__PURE__ */ __name(async (target, name, locati
664
737
  }, "copyPackageTargetAssets");
665
738
  var copyTargetAssets = /* @__PURE__ */ __name(async (target, pkg) => {
666
739
  const workspaces = yarnWorkspaces();
667
- console.log(chalk11.green(`Copying Assets [${target.toUpperCase()}]`));
740
+ console.log(chalk12.green(`Copying Assets [${target.toUpperCase()}]`));
668
741
  const workspaceList = workspaces.filter(({ name }) => {
669
742
  return pkg === void 0 || name === pkg;
670
743
  });
@@ -838,7 +911,7 @@ var deployNext = /* @__PURE__ */ __name(() => {
838
911
  }, "deployNext");
839
912
 
840
913
  // src/actions/deps.ts
841
- import chalk12 from "chalk";
914
+ import chalk13 from "chalk";
842
915
  var deps = /* @__PURE__ */ __name(({ pkg, incremental }) => {
843
916
  pkg ? depsPackage({
844
917
  pkg
@@ -875,7 +948,7 @@ var depsAll = /* @__PURE__ */ __name(({ incremental, jobs, verbose }) => {
875
948
  "--no-verbose"
876
949
  ];
877
950
  if (jobs) {
878
- console.log(chalk12.blue(`Jobs set to [${jobs}]`));
951
+ console.log(chalk13.blue(`Jobs set to [${jobs}]`));
879
952
  }
880
953
  const incrementalOptions = incremental ? [
881
954
  "--since",
@@ -900,21 +973,21 @@ var depsAll = /* @__PURE__ */ __name(({ incremental, jobs, verbose }) => {
900
973
  const result = runSteps(`Deps${incremental ? "-Incremental" : ""} [All]`, [
901
974
  ...steps
902
975
  ]);
903
- console.log(`${chalk12.gray("Dep checked in")} [${chalk12.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk12.gray("seconds")}`);
976
+ console.log(`${chalk13.gray("Dep checked in")} [${chalk13.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk13.gray("seconds")}`);
904
977
  return result;
905
978
  }, "depsAll");
906
979
 
907
980
  // src/actions/dupdeps.ts
908
- import chalk13 from "chalk";
981
+ import chalk14 from "chalk";
909
982
  var dupdeps = /* @__PURE__ */ __name(() => {
910
- console.log(chalk13.green("Checking all Dependencies for Duplicates"));
983
+ console.log(chalk14.green("Checking all Dependencies for Duplicates"));
911
984
  const allDependencies = parsedPackageJSON()?.dependencies;
912
985
  const dependencies = Object.entries(allDependencies).map(([k]) => k);
913
986
  return detectDuplicateDependencies(dependencies);
914
987
  }, "dupdeps");
915
988
 
916
989
  // src/actions/lint.ts
917
- import chalk14 from "chalk";
990
+ import chalk15 from "chalk";
918
991
  import { ESLint as ESLint2 } from "eslint";
919
992
  var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
920
993
  const colors = [
@@ -929,9 +1002,9 @@ var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
929
1002
  ];
930
1003
  for (const lintResult of lintResults) {
931
1004
  if (lintResult.messages.length > 0) {
932
- console.log(chalk14.gray(`${lintResult.filePath}`));
1005
+ console.log(chalk15.gray(`${lintResult.filePath}`));
933
1006
  for (const message of lintResult.messages) {
934
- console.log(chalk14.gray(` ${message.line}:${message.column}`), chalk14[colors[message.severity]](` ${severity[message.severity]}`), chalk14.white(` ${message.message}`), chalk14.gray(` ${message.ruleId}`));
1007
+ console.log(chalk15.gray(` ${message.line}:${message.column}`), chalk15[colors[message.severity]](` ${severity[message.severity]}`), chalk15.white(` ${message.message}`), chalk15.gray(` ${message.ruleId}`));
935
1008
  }
936
1009
  }
937
1010
  }
@@ -939,7 +1012,7 @@ var dumpMessages = /* @__PURE__ */ __name((lintResults) => {
939
1012
  var lintPackage = /* @__PURE__ */ __name(async ({ pkg, fix: fix2 }) => {
940
1013
  const workspace = yarnWorkspaces().find((workspace2) => workspace2.name === pkg);
941
1014
  if (!workspace) {
942
- console.error(chalk14.red(`Unable to locate package [${chalk14.magenta(pkg)}]`));
1015
+ console.error(chalk15.red(`Unable to locate package [${chalk15.magenta(pkg)}]`));
943
1016
  process.exit(1);
944
1017
  }
945
1018
  const engine = new ESLint2({
@@ -968,7 +1041,7 @@ var lint = /* @__PURE__ */ __name(async ({ pkg, verbose, incremental, fix: fix2
968
1041
  });
969
1042
  }, "lint");
970
1043
  var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incremental } = {}) => {
971
- console.log(chalk14.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1044
+ console.log(chalk15.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
972
1045
  const start = Date.now();
973
1046
  const verboseOptions = verbose ? [
974
1047
  "--verbose"
@@ -977,10 +1050,10 @@ var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incre
977
1050
  ];
978
1051
  const incrementalOptions = incremental ? [
979
1052
  "--since",
980
- "-Apt"
1053
+ "-Ap"
981
1054
  ] : [
982
1055
  "--parallel",
983
- "-Apt"
1056
+ "-Ap"
984
1057
  ];
985
1058
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
986
1059
  [
@@ -995,7 +1068,7 @@ var lintAllPackages = /* @__PURE__ */ __name(({ fix: fix2, verbose = true, incre
995
1068
  ]
996
1069
  ]
997
1070
  ]);
998
- console.log(chalk14.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk14.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk14.gray("seconds")}`));
1071
+ console.log(chalk15.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk15.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk15.gray("seconds")}`));
999
1072
  return result;
1000
1073
  }, "lintAllPackages");
1001
1074
 
@@ -1059,7 +1132,7 @@ var filename = ".gitignore";
1059
1132
  var gitignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename, pkg), "gitignoreGen");
1060
1133
 
1061
1134
  // src/actions/gitlint.ts
1062
- import chalk15 from "chalk";
1135
+ import chalk16 from "chalk";
1063
1136
  import ParseGitConfig from "parse-git-config";
1064
1137
  var gitlint = /* @__PURE__ */ __name(() => {
1065
1138
  console.log(`
@@ -1070,7 +1143,7 @@ Gitlint Start [${process.cwd()}]
1070
1143
  const errors = 0;
1071
1144
  const gitConfig = ParseGitConfig.sync();
1072
1145
  const warn = /* @__PURE__ */ __name((message) => {
1073
- console.warn(chalk15.yellow(`Warning: ${message}`));
1146
+ console.warn(chalk16.yellow(`Warning: ${message}`));
1074
1147
  warnings++;
1075
1148
  }, "warn");
1076
1149
  if (gitConfig.core.ignorecase) {
@@ -1090,13 +1163,13 @@ Gitlint Start [${process.cwd()}]
1090
1163
  }
1091
1164
  const resultMessages = [];
1092
1165
  if (valid > 0) {
1093
- resultMessages.push(chalk15.green(`Passed: ${valid}`));
1166
+ resultMessages.push(chalk16.green(`Passed: ${valid}`));
1094
1167
  }
1095
1168
  if (warnings > 0) {
1096
- resultMessages.push(chalk15.yellow(`Warnings: ${warnings}`));
1169
+ resultMessages.push(chalk16.yellow(`Warnings: ${warnings}`));
1097
1170
  }
1098
1171
  if (errors > 0) {
1099
- resultMessages.push(chalk15.red(` Errors: ${errors}`));
1172
+ resultMessages.push(chalk16.red(` Errors: ${errors}`));
1100
1173
  }
1101
1174
  console.warn(`Gitlint Finish [ ${resultMessages.join(" | ")} ]
1102
1175
  `);
@@ -1105,7 +1178,7 @@ Gitlint Start [${process.cwd()}]
1105
1178
 
1106
1179
  // src/actions/gitlint-fix.ts
1107
1180
  import { execSync as execSync2 } from "node:child_process";
1108
- import chalk16 from "chalk";
1181
+ import chalk17 from "chalk";
1109
1182
  import ParseGitConfig2 from "parse-git-config";
1110
1183
  var gitlintFix = /* @__PURE__ */ __name(() => {
1111
1184
  console.log(`
@@ -1116,25 +1189,25 @@ Gitlint Fix Start [${process.cwd()}]
1116
1189
  execSync2("git config core.ignorecase false", {
1117
1190
  stdio: "inherit"
1118
1191
  });
1119
- console.warn(chalk16.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1192
+ console.warn(chalk17.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1120
1193
  }
1121
1194
  if (gitConfig.core.autocrlf !== false) {
1122
1195
  execSync2("git config core.autocrlf false", {
1123
1196
  stdio: "inherit"
1124
1197
  });
1125
- console.warn(chalk16.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1198
+ console.warn(chalk17.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1126
1199
  }
1127
1200
  if (gitConfig.core.eol !== "lf") {
1128
1201
  execSync2("git config core.eol lf", {
1129
1202
  stdio: "inherit"
1130
1203
  });
1131
- console.warn(chalk16.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1204
+ console.warn(chalk17.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1132
1205
  }
1133
1206
  return 1;
1134
1207
  }, "gitlintFix");
1135
1208
 
1136
1209
  // src/actions/license.ts
1137
- import chalk17 from "chalk";
1210
+ import chalk18 from "chalk";
1138
1211
  import { init } from "license-checker";
1139
1212
  var license = /* @__PURE__ */ __name(async (pkg) => {
1140
1213
  const workspaces = yarnWorkspaces();
@@ -1159,7 +1232,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1159
1232
  "LGPL-3.0-or-later",
1160
1233
  "Python-2.0"
1161
1234
  ]);
1162
- console.log(chalk17.green("License Checker"));
1235
+ console.log(chalk18.green("License Checker"));
1163
1236
  return (await Promise.all(workspaceList.map(({ location, name }) => {
1164
1237
  return new Promise((resolve) => {
1165
1238
  init({
@@ -1167,12 +1240,12 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1167
1240
  start: location
1168
1241
  }, (error, packages) => {
1169
1242
  if (error) {
1170
- console.error(chalk17.red(`License Checker [${name}] Error`));
1171
- console.error(chalk17.gray(error));
1243
+ console.error(chalk18.red(`License Checker [${name}] Error`));
1244
+ console.error(chalk18.gray(error));
1172
1245
  console.log("\n");
1173
1246
  resolve(1);
1174
1247
  } else {
1175
- console.log(chalk17.green(`License Checker [${name}]`));
1248
+ console.log(chalk18.green(`License Checker [${name}]`));
1176
1249
  let count = 0;
1177
1250
  for (const [name2, info] of Object.entries(packages)) {
1178
1251
  const licenses = Array.isArray(info.licenses) ? info.licenses : [
@@ -1190,7 +1263,7 @@ var license = /* @__PURE__ */ __name(async (pkg) => {
1190
1263
  }
1191
1264
  if (!orLicenseFound) {
1192
1265
  count++;
1193
- console.warn(chalk17.yellow(`${name2}: Package License not allowed [${license2}]`));
1266
+ console.warn(chalk18.yellow(`${name2}: Package License not allowed [${license2}]`));
1194
1267
  }
1195
1268
  }
1196
1269
  }
@@ -1250,7 +1323,7 @@ var npmignoreGen = /* @__PURE__ */ __name((pkg) => generateIgnoreFiles(filename2
1250
1323
 
1251
1324
  // src/actions/package/clean-outputs.ts
1252
1325
  import path3 from "node:path";
1253
- import chalk18 from "chalk";
1326
+ import chalk19 from "chalk";
1254
1327
  var packageCleanOutputs = /* @__PURE__ */ __name(() => {
1255
1328
  const pkg = process.env.INIT_CWD ?? ".";
1256
1329
  const pkgName = process.env.npm_package_name;
@@ -1259,7 +1332,7 @@ var packageCleanOutputs = /* @__PURE__ */ __name(() => {
1259
1332
  path3.join(pkg, "build"),
1260
1333
  path3.join(pkg, "docs")
1261
1334
  ];
1262
- console.log(chalk18.green(`Cleaning Outputs [${pkgName}]`));
1335
+ console.log(chalk19.green(`Cleaning Outputs [${pkgName}]`));
1263
1336
  for (let folder of folders) {
1264
1337
  deleteGlob(folder);
1265
1338
  }
@@ -1268,11 +1341,11 @@ var packageCleanOutputs = /* @__PURE__ */ __name(() => {
1268
1341
 
1269
1342
  // src/actions/package/clean-typescript.ts
1270
1343
  import path4 from "node:path";
1271
- import chalk19 from "chalk";
1344
+ import chalk20 from "chalk";
1272
1345
  var packageCleanTypescript = /* @__PURE__ */ __name(() => {
1273
1346
  const pkg = process.env.INIT_CWD ?? ".";
1274
1347
  const pkgName = process.env.npm_package_name;
1275
- console.log(chalk19.green(`Cleaning Typescript [${pkgName}]`));
1348
+ console.log(chalk20.green(`Cleaning Typescript [${pkgName}]`));
1276
1349
  const files = [
1277
1350
  path4.join(pkg, "*.tsbuildinfo"),
1278
1351
  path4.join(pkg, ".tsconfig.*"),
@@ -1293,19 +1366,19 @@ var packageClean = /* @__PURE__ */ __name(async () => {
1293
1366
  }, "packageClean");
1294
1367
 
1295
1368
  // src/actions/package/compile/compile.ts
1296
- import chalk23 from "chalk";
1369
+ import chalk24 from "chalk";
1297
1370
 
1298
1371
  // src/actions/package/publint.ts
1299
1372
  import { promises as fs2 } from "node:fs";
1300
- import chalk20 from "chalk";
1373
+ import chalk21 from "chalk";
1301
1374
  import sortPackageJson from "sort-package-json";
1302
1375
  var packagePublint = /* @__PURE__ */ __name(async (params) => {
1303
1376
  const pkgDir = process.env.INIT_CWD;
1304
1377
  const sortedPkg = sortPackageJson(await fs2.readFile(`${pkgDir}/package.json`, "utf8"));
1305
1378
  await fs2.writeFile(`${pkgDir}/package.json`, sortedPkg);
1306
1379
  const pkg = JSON.parse(await fs2.readFile(`${pkgDir}/package.json`, "utf8"));
1307
- console.log(chalk20.green(`Publint: ${pkg.name}`));
1308
- console.log(chalk20.gray(pkgDir));
1380
+ console.log(chalk21.green(`Publint: ${pkg.name}`));
1381
+ console.log(chalk21.gray(pkgDir));
1309
1382
  const { publint: publint2 } = await import("publint");
1310
1383
  const { messages } = await publint2({
1311
1384
  level: "suggestion",
@@ -1320,28 +1393,28 @@ var packagePublint = /* @__PURE__ */ __name(async (params) => {
1320
1393
  for (const message of validMessages) {
1321
1394
  switch (message.type) {
1322
1395
  case "error": {
1323
- console.error(chalk20.red(`[${message.code}] ${formatMessage(message, pkg)}`));
1396
+ console.error(chalk21.red(`[${message.code}] ${formatMessage(message, pkg)}`));
1324
1397
  break;
1325
1398
  }
1326
1399
  case "warning": {
1327
- console.warn(chalk20.yellow(`[${message.code}] ${formatMessage(message, pkg)}`));
1400
+ console.warn(chalk21.yellow(`[${message.code}] ${formatMessage(message, pkg)}`));
1328
1401
  break;
1329
1402
  }
1330
1403
  default: {
1331
- console.log(chalk20.white(`[${message.code}] ${formatMessage(message, pkg)}`));
1404
+ console.log(chalk21.white(`[${message.code}] ${formatMessage(message, pkg)}`));
1332
1405
  break;
1333
1406
  }
1334
1407
  }
1335
1408
  }
1336
1409
  if (params?.verbose) {
1337
- console.log(chalk20.gray(`Publint [Finish]: ${pkgDir} [${validMessages.length}]`));
1410
+ console.log(chalk21.gray(`Publint [Finish]: ${pkgDir} [${validMessages.length}]`));
1338
1411
  }
1339
1412
  return validMessages.filter((message) => message.type === "error").length;
1340
1413
  }, "packagePublint");
1341
1414
 
1342
1415
  // src/actions/package/compile/packageCompileTsc.ts
1343
1416
  import { cwd } from "node:process";
1344
- import chalk21 from "chalk";
1417
+ import chalk22 from "chalk";
1345
1418
  import { createProgramFromConfig } from "tsc-prog";
1346
1419
  import { DiagnosticCategory, formatDiagnosticsWithColorAndContext, getLineAndCharacterOfPosition, getPreEmitDiagnostics } from "typescript";
1347
1420
 
@@ -1411,7 +1484,7 @@ var packageCompileTsc = /* @__PURE__ */ __name(async (noEmit, config2, compilerO
1411
1484
  character: 0,
1412
1485
  line: 0
1413
1486
  };
1414
- console.log(chalk21.cyan(`${diag.file?.fileName}:${lineAndChar.line + 1}:${lineAndChar.character + 1}`));
1487
+ console.log(chalk22.cyan(`${diag.file?.fileName}:${lineAndChar.line + 1}:${lineAndChar.character + 1}`));
1415
1488
  console.log(formatDiagnosticsWithColorAndContext([
1416
1489
  diag
1417
1490
  ], formatHost));
@@ -1461,13 +1534,39 @@ var buildEntries = /* @__PURE__ */ __name((folder, entryMode = "single", verbose
1461
1534
  return entries;
1462
1535
  }, "buildEntries");
1463
1536
 
1537
+ // src/actions/package/compile/deepMerge.ts
1538
+ function deepMerge(target, source) {
1539
+ if (!source || typeof source !== "object") return target;
1540
+ for (const key of Object.keys(source)) {
1541
+ if (typeof source[key] === "object" && source[key] !== null && !Array.isArray(source[key])) {
1542
+ if (!target[key] || typeof target[key] !== "object") {
1543
+ target[key] = {};
1544
+ }
1545
+ deepMerge(target[key], source[key]);
1546
+ } else {
1547
+ target[key] = source[key];
1548
+ }
1549
+ }
1550
+ return target;
1551
+ }
1552
+ __name(deepMerge, "deepMerge");
1553
+ function deepMergeObjects(objects) {
1554
+ const result = {};
1555
+ for (const obj of objects) {
1556
+ deepMerge(result, obj);
1557
+ }
1558
+ return result;
1559
+ }
1560
+ __name(deepMergeObjects, "deepMergeObjects");
1561
+
1464
1562
  // src/actions/package/compile/packageCompileTscTypes.ts
1465
1563
  import { cwd as cwd2 } from "node:process";
1466
- import chalk22 from "chalk";
1564
+ import chalk23 from "chalk";
1467
1565
  import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
1468
1566
  import { DiagnosticCategory as DiagnosticCategory2 } from "typescript";
1469
- var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", { verbose } = {}, compilerOptionsParam) => {
1567
+ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", config2 = {}, compilerOptionsParam) => {
1470
1568
  const pkg = process.env.INIT_CWD ?? cwd2();
1569
+ const verbose = config2?.verbose ?? false;
1471
1570
  if (verbose) {
1472
1571
  console.log(`Compiling types with TSC [${pkg}]`);
1473
1572
  }
@@ -1475,7 +1574,7 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", { verbose }
1475
1574
  ...getCompilerOptions({
1476
1575
  declaration: true,
1477
1576
  emitDeclarationOnly: true,
1478
- outDir: "dist",
1577
+ outDir: "dist/types",
1479
1578
  removeComments: false,
1480
1579
  skipDefaultLibCheck: true,
1481
1580
  skipLibCheck: true,
@@ -1502,21 +1601,21 @@ var packageCompileTscTypes = /* @__PURE__ */ __name((folder = "src", { verbose }
1502
1601
  for (const diag of result.diagnostics) {
1503
1602
  switch (diag.category) {
1504
1603
  case DiagnosticCategory2.Error: {
1505
- console.error(chalk22.red(diag.messageText));
1506
- console.error(chalk22.grey(pkg));
1507
- console.error(chalk22.blue(diag.file?.fileName));
1604
+ console.error(chalk23.red(diag.messageText));
1605
+ console.error(chalk23.grey(pkg));
1606
+ console.error(chalk23.blue(diag.file?.fileName));
1508
1607
  break;
1509
1608
  }
1510
1609
  case DiagnosticCategory2.Warning: {
1511
- console.error(chalk22.yellow(diag.messageText));
1512
- console.error(chalk22.grey(pkg));
1513
- console.error(chalk22.blue(diag.file?.fileName));
1610
+ console.error(chalk23.yellow(diag.messageText));
1611
+ console.error(chalk23.grey(pkg));
1612
+ console.error(chalk23.blue(diag.file?.fileName));
1514
1613
  break;
1515
1614
  }
1516
1615
  case DiagnosticCategory2.Suggestion: {
1517
- console.error(chalk22.white(diag.messageText));
1518
- console.error(chalk22.grey(pkg));
1519
- console.error(chalk22.blue(diag.file?.fileName));
1616
+ console.error(chalk23.white(diag.messageText));
1617
+ console.error(chalk23.grey(pkg));
1618
+ console.error(chalk23.blue(diag.file?.fileName));
1520
1619
  break;
1521
1620
  }
1522
1621
  }
@@ -1564,37 +1663,9 @@ var compileFolder = /* @__PURE__ */ __name(async (folder, entryMode = "single",
1564
1663
  if (verbose) {
1565
1664
  console.log(`TSUP:build:stop [${folder}] ${types}`);
1566
1665
  }
1567
- if (types === "tsc") {
1568
- if (verbose) {
1569
- console.log(`Calling packageCompileTscTypes [${folder}] ${types}`);
1570
- }
1571
- const errors = packageCompileTscTypes(folder, {
1572
- verbose
1573
- }, {
1574
- outDir
1575
- });
1576
- if (errors) {
1577
- return errors;
1578
- }
1579
- }
1580
1666
  return 0;
1581
1667
  }, "compileFolder");
1582
- var packageCompileTsup = /* @__PURE__ */ __name(async (config2, types = "tsc") => {
1583
- console.warn("packageCompileTsup-types", types);
1584
- const compile2 = config2?.compile;
1585
- const verbose = config2?.verbose ?? false;
1586
- if (verbose) {
1587
- console.log(`Compiling with TSUP [Depth: ${compile2?.depth}]`);
1588
- }
1589
- const compileForNode = compile2?.node ?? {
1590
- src: {}
1591
- };
1592
- const compileForBrowser = compile2?.browser ?? {
1593
- src: {}
1594
- };
1595
- const compileForNeutral = compile2?.neutral ?? {
1596
- src: {}
1597
- };
1668
+ var tsupOptions = /* @__PURE__ */ __name((options = []) => {
1598
1669
  const standardLoaders = {
1599
1670
  ".gif": "copy",
1600
1671
  ".html": "copy",
@@ -1619,52 +1690,78 @@ var packageCompileTsup = /* @__PURE__ */ __name(async (config2, types = "tsc") =
1619
1690
  sourcemap: true,
1620
1691
  target: "esnext"
1621
1692
  };
1693
+ return deepMergeObjects([
1694
+ standardOptions,
1695
+ ...options
1696
+ ]);
1697
+ }, "tsupOptions");
1698
+ var packageCompileTsup = /* @__PURE__ */ __name(async (config2, types = "tsc") => {
1699
+ console.warn("packageCompileTsup-types", types);
1700
+ const compile2 = config2?.compile;
1701
+ const verbose = config2?.verbose ?? false;
1702
+ if (verbose) {
1703
+ console.log(`Compiling with TSUP [Depth: ${compile2?.depth}]`);
1704
+ }
1705
+ const compileForNode = compile2?.node ?? {
1706
+ src: {}
1707
+ };
1708
+ const compileForBrowser = compile2?.browser ?? {
1709
+ src: {}
1710
+ };
1711
+ const compileForNeutral = compile2?.neutral ?? {
1712
+ src: {}
1713
+ };
1714
+ if (types === "tsc") {
1715
+ if (verbose) {
1716
+ console.log(`Calling packageCompileTscTypes [${types}`);
1717
+ }
1718
+ const errors = packageCompileTscTypes("src", {
1719
+ verbose
1720
+ });
1721
+ if (errors) {
1722
+ return errors;
1723
+ }
1724
+ }
1622
1725
  return (await Promise.all(Object.entries(compileForNode).map(async ([folder, options]) => {
1623
1726
  const inEsBuildOptions = typeof compile2?.node?.esbuildOptions === "object" ? compile2?.node?.esbuildOptions : {};
1624
- return folder ? await compileFolder(folder, compile2?.entryMode, {
1625
- ...standardOptions,
1626
- loader: {
1627
- ...standardOptions.loader,
1628
- ...inEsBuildOptions?.loader
1629
- },
1630
- outDir: "dist/node",
1631
- platform: "node",
1632
- ...compile2?.tsup?.options,
1633
- ...typeof options === "object" ? options : {}
1634
- }, types, verbose) : 0;
1727
+ return folder ? await compileFolder(folder, compile2?.entryMode, tsupOptions([
1728
+ inEsBuildOptions,
1729
+ compile2?.tsup?.options ?? {},
1730
+ typeof options === "object" ? options : {},
1731
+ {
1732
+ platform: "node",
1733
+ outDir: "dist/node"
1734
+ }
1735
+ ]), types, verbose) : 0;
1635
1736
  }))).reduce((prev, value) => prev + value, 0) || (await Promise.all(Object.entries(compileForBrowser).map(async ([folder, options]) => {
1636
1737
  const inEsBuildOptions = typeof compile2?.browser?.esbuildOptions === "object" ? compile2?.browser?.esbuildOptions : {};
1637
- return folder ? await compileFolder(folder, compile2?.entryMode, {
1638
- ...standardOptions,
1639
- loader: {
1640
- ...standardOptions.loader,
1641
- ...inEsBuildOptions?.loader
1642
- },
1643
- outDir: "dist/browser",
1644
- platform: "browser",
1645
- ...compile2?.tsup?.options,
1646
- ...typeof options === "object" ? options : {}
1647
- }, types, verbose) : 0;
1738
+ return folder ? await compileFolder(folder, compile2?.entryMode, tsupOptions([
1739
+ inEsBuildOptions,
1740
+ compile2?.tsup?.options ?? {},
1741
+ typeof options === "object" ? options : {},
1742
+ {
1743
+ platform: "browser",
1744
+ outDir: "dist/browser"
1745
+ }
1746
+ ]), types, verbose) : 0;
1648
1747
  }))).reduce((prev, value) => prev + value, 0) || (await Promise.all(Object.entries(compileForNeutral).map(async ([folder, options]) => {
1649
1748
  const inEsBuildOptions = typeof compile2?.neutral?.esbuildOptions === "object" ? compile2?.neutral?.esbuildOptions : {};
1650
- return folder ? await compileFolder(folder, compile2?.entryMode, {
1651
- ...standardOptions,
1652
- loader: {
1653
- ...standardOptions.loader,
1654
- ...inEsBuildOptions?.loader
1655
- },
1656
- outDir: "dist/neutral",
1657
- platform: "neutral",
1658
- ...compile2?.tsup?.options,
1659
- ...typeof options === "object" ? options : {}
1660
- }, types, verbose) : 0;
1749
+ return folder ? await compileFolder(folder, compile2?.entryMode, tsupOptions([
1750
+ inEsBuildOptions,
1751
+ compile2?.tsup?.options ?? {},
1752
+ typeof options === "object" ? options : {},
1753
+ {
1754
+ platform: "neutral",
1755
+ outDir: "dist/neutral"
1756
+ }
1757
+ ]), types, verbose) : 0;
1661
1758
  }))).reduce((prev, value) => prev + value, 0) || 0;
1662
1759
  }, "packageCompileTsup");
1663
1760
 
1664
1761
  // src/actions/package/compile/compile.ts
1665
1762
  var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}, types) => {
1666
1763
  const pkg = process.env.INIT_CWD;
1667
- console.log(chalk23.green(`Compiling ${pkg}`));
1764
+ console.log(chalk24.green(`Compiling ${pkg}`));
1668
1765
  const config2 = await loadConfig(inConfig);
1669
1766
  const publint2 = config2.publint;
1670
1767
  const mode = config2.compile?.mode ?? "tsup";
@@ -1682,9 +1779,18 @@ var packageCompile = /* @__PURE__ */ __name(async (inConfig = {}, types) => {
1682
1779
  return result + (publint2 ? await packagePublint(config2) : 0);
1683
1780
  }, "packageCompile");
1684
1781
 
1782
+ // src/actions/package/compile/compileTypes.ts
1783
+ import chalk25 from "chalk";
1784
+ var packageCompileTypes = /* @__PURE__ */ __name(async (inConfig = {}) => {
1785
+ const pkg = process.env.INIT_CWD;
1786
+ console.log(chalk25.green(`Compiling Types ${pkg}`));
1787
+ const config2 = await loadConfig(inConfig);
1788
+ return packageCompileTscTypes(void 0, config2);
1789
+ }, "packageCompileTypes");
1790
+
1685
1791
  // src/actions/package/copy-assets.ts
1686
1792
  import path5 from "node:path/posix";
1687
- import chalk24 from "chalk";
1793
+ import chalk26 from "chalk";
1688
1794
  import cpy2 from "cpy";
1689
1795
  var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) => {
1690
1796
  try {
@@ -1703,7 +1809,7 @@ var copyTargetAssets2 = /* @__PURE__ */ __name(async (target, name, location) =>
1703
1809
  flat: false
1704
1810
  });
1705
1811
  if (values.length > 0) {
1706
- console.log(chalk24.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1812
+ console.log(chalk26.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1707
1813
  }
1708
1814
  for (const value of values) {
1709
1815
  console.log(`${value.split("/").pop()} => ./dist/${target}`);
@@ -1734,7 +1840,7 @@ var packageCopyAssets = /* @__PURE__ */ __name(async ({ target }) => {
1734
1840
  // src/actions/package/deps.ts
1735
1841
  import { existsSync as existsSync4, readFileSync as readFileSync3 } from "node:fs";
1736
1842
  import { cwd as cwd3 } from "node:process";
1737
- import chalk25 from "chalk";
1843
+ import chalk27 from "chalk";
1738
1844
  import depcheck from "depcheck";
1739
1845
  var special = depcheck.special;
1740
1846
  var defaultIgnorePatterns = [
@@ -1760,21 +1866,21 @@ var defaultIgnoreDevPatterns = [
1760
1866
  var reportUnused = /* @__PURE__ */ __name((name, unused) => {
1761
1867
  if (unused.length > 0) {
1762
1868
  const message = [
1763
- chalk25.yellow(`${unused.length} Unused ${name}`)
1869
+ chalk27.yellow(`${unused.length} Unused ${name}`)
1764
1870
  ];
1765
- for (const value of unused) message.push(chalk25.gray(` ${value}`));
1871
+ for (const value of unused) message.push(chalk27.gray(` ${value}`));
1766
1872
  console.log(message.join("\n"));
1767
1873
  }
1768
1874
  }, "reportUnused");
1769
1875
  var reportMissing = /* @__PURE__ */ __name((name, missing) => {
1770
1876
  if (Object.keys(missing).length > 0) {
1771
1877
  const message = [
1772
- chalk25.yellow(`${Object.entries(missing).length} Missing ${name}`)
1878
+ chalk27.yellow(`${Object.entries(missing).length} Missing ${name}`)
1773
1879
  ];
1774
1880
  for (const [key, value] of Object.entries(missing)) {
1775
- message.push(`${key}`, chalk25.gray(` ${value.at(0)}`));
1881
+ message.push(`${key}`, chalk27.gray(` ${value.at(0)}`));
1776
1882
  }
1777
- console.log(chalk25.yellow(message.join("\n")));
1883
+ console.log(chalk27.yellow(message.join("\n")));
1778
1884
  }
1779
1885
  }, "reportMissing");
1780
1886
  var analyzeDeps = /* @__PURE__ */ __name(async (pkg, ignoreMatches) => {
@@ -1879,10 +1985,10 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
1879
1985
  reportUnused("dependencies", unusedDeps);
1880
1986
  reportUnused("devDependencies", unusedDevDeps);
1881
1987
  if (Object.entries(invalidDirs).length > 0) {
1882
- for (const [key, value] of Object.entries(invalidDirs)) console.warn(chalk25.gray(`Invalid Dir: ${key}: ${value}`));
1988
+ for (const [key, value] of Object.entries(invalidDirs)) console.warn(chalk27.gray(`Invalid Dir: ${key}: ${value}`));
1883
1989
  }
1884
1990
  if (Object.entries(invalidFiles).length > 0) {
1885
- for (const [key, value] of Object.entries(invalidFiles)) console.warn(chalk25.gray(`Invalid File: ${key}: ${value}`));
1991
+ for (const [key, value] of Object.entries(invalidFiles)) console.warn(chalk27.gray(`Invalid File: ${key}: ${value}`));
1886
1992
  }
1887
1993
  reportMissing("dependencies", missingDepsObject);
1888
1994
  reportMissing("devDependencies", missingDevDepsObject);
@@ -1893,7 +1999,7 @@ var packageDeps = /* @__PURE__ */ __name(async () => {
1893
1999
  // src/actions/package/gen-docs.ts
1894
2000
  import { existsSync as existsSync5 } from "node:fs";
1895
2001
  import path6 from "node:path";
1896
- import chalk26 from "chalk";
2002
+ import chalk28 from "chalk";
1897
2003
  import { Application, ArgumentsReader, TSConfigReader, TypeDocReader } from "typedoc";
1898
2004
  var ExitCodes = {
1899
2005
  CompileError: 3,
@@ -1995,7 +2101,7 @@ var runTypeDoc = /* @__PURE__ */ __name(async (app) => {
1995
2101
  return ExitCodes.OutputError;
1996
2102
  }
1997
2103
  }
1998
- console.log(chalk26.green(`${pkgName} - Ok`));
2104
+ console.log(chalk28.green(`${pkgName} - Ok`));
1999
2105
  return ExitCodes.Ok;
2000
2106
  }, "runTypeDoc");
2001
2107
 
@@ -2004,7 +2110,7 @@ import { readdirSync } from "node:fs";
2004
2110
  import path7 from "node:path";
2005
2111
  import { cwd as cwd4 } from "node:process";
2006
2112
  import { pathToFileURL } from "node:url";
2007
- import chalk27 from "chalk";
2113
+ import chalk29 from "chalk";
2008
2114
  import { ESLint as ESLint3 } from "eslint";
2009
2115
  import { findUp } from "find-up";
2010
2116
  import picomatch from "picomatch";
@@ -2021,10 +2127,10 @@ var dumpMessages2 = /* @__PURE__ */ __name((lintResults) => {
2021
2127
  ];
2022
2128
  for (const lintResult of lintResults) {
2023
2129
  if (lintResult.messages.length > 0) {
2024
- console.log(chalk27.gray(`
2130
+ console.log(chalk29.gray(`
2025
2131
  ${lintResult.filePath}`));
2026
2132
  for (const message of lintResult.messages) {
2027
- console.log(chalk27.gray(` ${message.line}:${message.column}`), chalk27[colors[message.severity]](` ${severity[message.severity]}`), chalk27.white(` ${message.message}`), chalk27.gray(` ${message.ruleId}`));
2133
+ console.log(chalk29.gray(` ${message.line}:${message.column}`), chalk29[colors[message.severity]](` ${severity[message.severity]}`), chalk29.white(` ${message.message}`), chalk29.gray(` ${message.ruleId}`));
2028
2134
  }
2029
2135
  }
2030
2136
  }
@@ -2055,6 +2161,7 @@ function getFiles(dir, ignoreFolders) {
2055
2161
  }
2056
2162
  __name(getFiles, "getFiles");
2057
2163
  var packageLint = /* @__PURE__ */ __name(async (fix2 = false) => {
2164
+ const pkg = process.env.INIT_CWD;
2058
2165
  const configPath = await getRootESLintConfig();
2059
2166
  const { default: eslintConfig } = await import(configPath.href);
2060
2167
  const ignoreFolders = [
@@ -2075,6 +2182,7 @@ var packageLint = /* @__PURE__ */ __name(async (fix2 = false) => {
2075
2182
  warnIgnored: false
2076
2183
  });
2077
2184
  const files = getFiles(cwd4(), ignoreFolders);
2185
+ console.log(chalk29.green(`Linting ${pkg} [${files.length}]`));
2078
2186
  const lintResults = await engine.lintFiles(files);
2079
2187
  dumpMessages2(lintResults);
2080
2188
  if (fix2) {
@@ -2146,7 +2254,7 @@ var rebuild = /* @__PURE__ */ __name(({ target }) => {
2146
2254
  }, "rebuild");
2147
2255
 
2148
2256
  // src/actions/recompile.ts
2149
- import chalk28 from "chalk";
2257
+ import chalk30 from "chalk";
2150
2258
  var recompile = /* @__PURE__ */ __name(async ({ verbose, target, pkg, incremental }) => {
2151
2259
  return pkg ? await recompilePackage({
2152
2260
  pkg,
@@ -2207,7 +2315,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2207
2315
  `${jobs}`
2208
2316
  ] : [];
2209
2317
  if (jobs) {
2210
- console.log(chalk28.blue(`Jobs set to [${jobs}]`));
2318
+ console.log(chalk30.blue(`Jobs set to [${jobs}]`));
2211
2319
  }
2212
2320
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
2213
2321
  [
@@ -2237,7 +2345,7 @@ var recompileAll = /* @__PURE__ */ __name(async ({ jobs, verbose, target, increm
2237
2345
  ]
2238
2346
  ]
2239
2347
  ]);
2240
- console.log(`${chalk28.gray("Recompiled in")} [${chalk28.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk28.gray("seconds")}`);
2348
+ console.log(`${chalk30.gray("Recompiled in")} [${chalk30.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk30.gray("seconds")}`);
2241
2349
  return result;
2242
2350
  }, "recompileAll");
2243
2351
 
@@ -2337,7 +2445,7 @@ var sonar = /* @__PURE__ */ __name(() => {
2337
2445
  }, "sonar");
2338
2446
 
2339
2447
  // src/actions/statics.ts
2340
- import chalk29 from "chalk";
2448
+ import chalk31 from "chalk";
2341
2449
  var DefaultDependencies = [
2342
2450
  "axios",
2343
2451
  "@xylabs/pixel",
@@ -2348,7 +2456,7 @@ var DefaultDependencies = [
2348
2456
  "@mui/system"
2349
2457
  ];
2350
2458
  var statics = /* @__PURE__ */ __name(() => {
2351
- console.log(chalk29.green("Check Required Static Dependencies"));
2459
+ console.log(chalk31.green("Check Required Static Dependencies"));
2352
2460
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
2353
2461
  return detectDuplicateDependencies(statics2, DefaultDependencies);
2354
2462
  }, "statics");
@@ -2463,6 +2571,9 @@ export {
2463
2571
  compile,
2464
2572
  compileAll,
2465
2573
  compilePackage,
2574
+ compileTypes,
2575
+ compileTypesAll,
2576
+ compileTypesPackage,
2466
2577
  copyAssets,
2467
2578
  cycle,
2468
2579
  dead,
@@ -2494,7 +2605,9 @@ export {
2494
2605
  packageCleanTypescript,
2495
2606
  packageCompile,
2496
2607
  packageCompileTsc,
2608
+ packageCompileTscTypes,
2497
2609
  packageCompileTsup,
2610
+ packageCompileTypes,
2498
2611
  packageCopyAssets,
2499
2612
  packageDeps,
2500
2613
  packageGenDocs,
@@ -2514,6 +2627,7 @@ export {
2514
2627
  sonar,
2515
2628
  statics,
2516
2629
  test,
2630
+ tsupOptions,
2517
2631
  up,
2518
2632
  updateYarnPlugins,
2519
2633
  updateYarnVersion,