@xylabs/ts-scripts-yarn3 6.5.0 → 6.5.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 (55) hide show
  1. package/dist/actions/deplint/checkPackage/checkPackage.mjs +256 -0
  2. package/dist/actions/deplint/checkPackage/checkPackage.mjs.map +1 -0
  3. package/dist/actions/deplint/checkPackage/checkPackageTypes.mjs +1 -0
  4. package/dist/actions/deplint/checkPackage/checkPackageTypes.mjs.map +1 -0
  5. package/dist/actions/deplint/checkPackage/getTypesInDependencies.mjs +19 -0
  6. package/dist/actions/deplint/checkPackage/getTypesInDependencies.mjs.map +1 -0
  7. package/dist/actions/deplint/checkPackage/getUnlistedDependencies.mjs +35 -0
  8. package/dist/actions/deplint/checkPackage/getUnlistedDependencies.mjs.map +1 -0
  9. package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.mjs +17 -0
  10. package/dist/actions/deplint/checkPackage/getUnlistedDevDependencies.mjs.map +1 -0
  11. package/dist/actions/deplint/checkPackage/getUnusedDependencies.mjs +22 -0
  12. package/dist/actions/deplint/checkPackage/getUnusedDependencies.mjs.map +1 -0
  13. package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.mjs +19 -0
  14. package/dist/actions/deplint/checkPackage/getUnusedPeerDependencies.mjs.map +1 -0
  15. package/dist/actions/deplint/checkPackage/index.mjs +256 -0
  16. package/dist/actions/deplint/checkPackage/index.mjs.map +1 -0
  17. package/dist/actions/deplint/deplint.mjs +316 -0
  18. package/dist/actions/deplint/deplint.mjs.map +1 -0
  19. package/dist/actions/deplint/findFiles.mjs +24 -0
  20. package/dist/actions/deplint/findFiles.mjs.map +1 -0
  21. package/dist/actions/deplint/findFilesByGlob.mjs +9 -0
  22. package/dist/actions/deplint/findFilesByGlob.mjs.map +1 -0
  23. package/dist/actions/deplint/getBasePackageName.mjs +12 -0
  24. package/dist/actions/deplint/getBasePackageName.mjs.map +1 -0
  25. package/dist/actions/deplint/getDependenciesFromPackageJson.mjs +20 -0
  26. package/dist/actions/deplint/getDependenciesFromPackageJson.mjs.map +1 -0
  27. package/dist/actions/deplint/getExternalImportsFromFiles.mjs +98 -0
  28. package/dist/actions/deplint/getExternalImportsFromFiles.mjs.map +1 -0
  29. package/dist/actions/deplint/getImportsFromFile.mjs +65 -0
  30. package/dist/actions/deplint/getImportsFromFile.mjs.map +1 -0
  31. package/dist/actions/{deplint.mjs → deplint/index.mjs} +160 -87
  32. package/dist/actions/deplint/index.mjs.map +1 -0
  33. package/dist/actions/fix.mjs.map +1 -1
  34. package/dist/actions/index.mjs +235 -160
  35. package/dist/actions/index.mjs.map +1 -1
  36. package/dist/actions/lint.mjs.map +1 -1
  37. package/dist/bin/xy.mjs +239 -155
  38. package/dist/bin/xy.mjs.map +1 -1
  39. package/dist/index.d.ts +5 -1
  40. package/dist/index.mjs +282 -198
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/xy/index.mjs +239 -155
  43. package/dist/xy/index.mjs.map +1 -1
  44. package/dist/xy/param.mjs +1 -1
  45. package/dist/xy/param.mjs.map +1 -1
  46. package/dist/xy/xy.mjs +239 -155
  47. package/dist/xy/xy.mjs.map +1 -1
  48. package/dist/xy/xyCommonCommands.mjs +1 -1
  49. package/dist/xy/xyCommonCommands.mjs.map +1 -1
  50. package/dist/xy/xyLintCommands.mjs +212 -107
  51. package/dist/xy/xyLintCommands.mjs.map +1 -1
  52. package/dist/xy/xyParseOptions.mjs +0 -21
  53. package/dist/xy/xyParseOptions.mjs.map +1 -1
  54. package/package.json +3 -3
  55. package/dist/actions/deplint.mjs.map +0 -1
@@ -313,8 +313,8 @@ var loadConfig = async (params) => {
313
313
 
314
314
  // src/lib/parsedPackageJSON.ts
315
315
  import { readFileSync as readFileSync2 } from "node:fs";
316
- var parsedPackageJSON = (path9) => {
317
- const pathToPackageJSON = path9 ?? process.env.npm_package_json ?? "";
316
+ var parsedPackageJSON = (path10) => {
317
+ const pathToPackageJSON = path10 ?? process.env.npm_package_json ?? "";
318
318
  const packageJSON = readFileSync2(pathToPackageJSON).toString();
319
319
  return JSON.parse(packageJSON);
320
320
  };
@@ -671,12 +671,33 @@ var dead = () => {
671
671
  return runSteps("Dead", [["yarn", ["ts-prune", "-p", "tsconfig.json"]]]);
672
672
  };
673
673
 
674
- // src/actions/deplint.ts
674
+ // src/actions/deplint/deplint.ts
675
+ import chalk18 from "chalk";
676
+
677
+ // src/actions/deplint/findFilesByGlob.ts
678
+ import { globSync } from "glob";
679
+ function findFilesByGlob(cwd4, pattern) {
680
+ return globSync(pattern, { cwd: cwd4, absolute: true });
681
+ }
682
+
683
+ // src/actions/deplint/findFiles.ts
684
+ function findFiles(path10) {
685
+ const allSourceInclude = ["./src/**/*.{ts,tsx}", "./dist/**/*.d.ts"];
686
+ const prodExcludeEndswith = [".spec.ts", ".stories.tsx"];
687
+ const prodExcludeIncludes = ["/spec/", "/stories/", "/scripts/"];
688
+ const allSourceFiles = allSourceInclude.flatMap((pattern) => findFilesByGlob(path10, pattern));
689
+ const prodSourceFiles = allSourceFiles.filter((file) => !prodExcludeEndswith.some((ext) => file.endsWith(ext)) && !prodExcludeIncludes.some((excl) => file.includes(excl)));
690
+ const devSourceFiles = allSourceFiles.filter((file) => !prodSourceFiles.includes(file));
691
+ return {
692
+ allSourceFiles,
693
+ prodSourceFiles,
694
+ devSourceFiles
695
+ };
696
+ }
697
+
698
+ // src/actions/deplint/getDependenciesFromPackageJson.ts
675
699
  import fs2 from "node:fs";
676
700
  import path3 from "node:path";
677
- import chalk13 from "chalk";
678
- import { globSync } from "glob";
679
- import ts from "typescript";
680
701
  function getDependenciesFromPackageJson(packageJsonPath) {
681
702
  const packageJsonFullPath = path3.resolve(packageJsonPath);
682
703
  const rawContent = fs2.readFileSync(packageJsonFullPath, "utf8");
@@ -690,6 +711,13 @@ function getDependenciesFromPackageJson(packageJsonPath) {
690
711
  peerDependencies
691
712
  };
692
713
  }
714
+
715
+ // src/actions/deplint/getImportsFromFile.ts
716
+ import fs3 from "node:fs";
717
+ import path4 from "node:path";
718
+ import ts from "typescript";
719
+
720
+ // src/actions/deplint/getBasePackageName.ts
693
721
  function getBasePackageName(importName) {
694
722
  if (importName.startsWith("@")) {
695
723
  const parts = importName.split("/");
@@ -697,10 +725,12 @@ function getBasePackageName(importName) {
697
725
  }
698
726
  return importName.split("/")[0];
699
727
  }
728
+
729
+ // src/actions/deplint/getImportsFromFile.ts
700
730
  function getImportsFromFile(filePath, importPaths, typeImportPaths) {
701
- const sourceCode = fs2.readFileSync(filePath, "utf8");
731
+ const sourceCode = fs3.readFileSync(filePath, "utf8");
702
732
  const sourceFile = ts.createSourceFile(
703
- path3.basename(filePath),
733
+ path4.basename(filePath),
704
734
  sourceCode,
705
735
  ts.ScriptTarget.Latest,
706
736
  true
@@ -743,36 +773,26 @@ function getImportsFromFile(filePath, importPaths, typeImportPaths) {
743
773
  }
744
774
  return [cleanedImports, cleanedTypeImports];
745
775
  }
746
- function findFilesByGlob(cwd4, pattern) {
747
- return globSync(pattern, { cwd: cwd4, absolute: true });
748
- }
749
- function findFiles(path9) {
750
- const allSourceInclude = ["./src/**/*.{ts,tsx}", "./dist/**/*.d.ts"];
751
- const prodExcludeEndswith = [".spec.ts", ".stories.tsx"];
752
- const prodExcludeIncludes = ["/spec/", "/stories/", "/scripts/"];
753
- const allSourceFiles = allSourceInclude.flatMap((pattern) => findFilesByGlob(path9, pattern));
754
- const prodSourceFiles = allSourceFiles.filter((file) => !prodExcludeEndswith.some((ext) => file.endsWith(ext)) && !prodExcludeIncludes.some((excl) => file.includes(excl)));
755
- const devSourceFiles = allSourceFiles.filter((file) => !prodSourceFiles.includes(file));
756
- return {
757
- allSourceFiles,
758
- prodSourceFiles,
759
- devSourceFiles
760
- };
761
- }
776
+
777
+ // src/actions/deplint/getExternalImportsFromFiles.ts
778
+ var internalImportPrefixes = [".", "#", "node:"];
779
+ var removeInternalImports = (imports) => {
780
+ return imports.filter((imp) => !internalImportPrefixes.some((prefix) => imp.startsWith(prefix)));
781
+ };
762
782
  function getExternalImportsFromFiles({ prodSourceFiles, devSourceFiles }) {
763
783
  const prodImportPaths = {};
764
784
  const prodTypeImportPaths = {};
765
- const prodImportPairs = prodSourceFiles.map((path9) => getImportsFromFile(path9, prodImportPaths, prodTypeImportPaths));
785
+ const prodImportPairs = prodSourceFiles.map((path10) => getImportsFromFile(path10, prodImportPaths, prodTypeImportPaths));
766
786
  const prodImports = prodImportPairs.flatMap((pair) => pair[0]);
767
787
  const prodTypeImports = prodImportPairs.flatMap((pair) => pair[1]);
768
788
  const devImportPaths = {};
769
789
  const devTypeImportPaths = {};
770
- const devImportPairs = devSourceFiles.map((path9) => getImportsFromFile(path9, devImportPaths, devTypeImportPaths));
790
+ const devImportPairs = devSourceFiles.map((path10) => getImportsFromFile(path10, devImportPaths, devTypeImportPaths));
771
791
  const devImports = devImportPairs.flatMap((pair) => pair[0]);
772
792
  const devTypeImports = devImportPairs.flatMap((pair) => pair[1]);
773
- const externalProdImports = prodImports.filter((imp) => !imp.startsWith(".") && !imp.startsWith("#") && !imp.startsWith("node:"));
774
- const externalProdTypeImports = prodTypeImports.filter((imp) => !imp.startsWith(".") && !imp.startsWith("#") && !imp.startsWith("node:"));
775
- const externalDevImports = devImports.filter((imp) => !imp.startsWith(".") && !imp.startsWith("#") && !imp.startsWith("node:"));
793
+ const externalProdImports = removeInternalImports(prodImports);
794
+ const externalProdTypeImports = removeInternalImports(prodTypeImports);
795
+ const externalDevImports = removeInternalImports(devImports);
776
796
  return {
777
797
  prodImports,
778
798
  devImports,
@@ -786,34 +806,40 @@ function getExternalImportsFromFiles({ prodSourceFiles, devSourceFiles }) {
786
806
  externalProdTypeImports
787
807
  };
788
808
  }
789
- function check({
790
- name,
791
- location,
792
- devDeps = false,
793
- peerDeps = false
809
+
810
+ // src/actions/deplint/checkPackage/getTypesInDependencies.ts
811
+ import chalk13 from "chalk";
812
+ function getTypesInDependencies({ name, location }, { dependencies }, {}) {
813
+ let typesInDependencies = 0;
814
+ for (const dep of dependencies) {
815
+ if (dep.startsWith("@types/")) {
816
+ typesInDependencies++;
817
+ console.log(`[${chalk13.blue(name)}] @types in dependencies in package.json: ${chalk13.red(dep)}`);
818
+ console.log(` ${location}/package.json
819
+ `);
820
+ console.log("");
821
+ }
822
+ }
823
+ return typesInDependencies;
824
+ }
825
+
826
+ // src/actions/deplint/checkPackage/getUnlistedDependencies.ts
827
+ import chalk14 from "chalk";
828
+ function getUnlistedDependencies({ name }, {
829
+ dependencies,
830
+ devDependencies,
831
+ peerDependencies
832
+ }, {
833
+ externalProdTypeImports,
834
+ prodTypeImportPaths,
835
+ externalProdImports,
836
+ prodImportPaths
794
837
  }) {
795
- const { prodSourceFiles, devSourceFiles } = findFiles(location);
796
- const {
797
- prodTypeImportPaths,
798
- prodImportPaths,
799
- externalProdTypeImports,
800
- devImportPaths,
801
- externalProdImports,
802
- externalDevImports
803
- } = getExternalImportsFromFiles({ prodSourceFiles, devSourceFiles });
804
- const {
805
- dependencies,
806
- devDependencies,
807
- peerDependencies
808
- } = getDependenciesFromPackageJson(`${location}/package.json`);
809
838
  let unlistedDependencies = 0;
810
- let unlistedDevDependencies = 0;
811
- let unusedDependencies = 0;
812
- let typesInDependencies = 0;
813
839
  for (const imp of externalProdTypeImports) {
814
840
  if (!dependencies.includes(imp) && !peerDependencies.includes(imp) && !devDependencies.includes(imp) && !devDependencies.includes(`@types/${imp}`)) {
815
841
  unlistedDependencies++;
816
- console.log(`[${chalk13.blue(name)}] Missing dependency in package.json: ${chalk13.red(imp)}`);
842
+ console.log(`[${chalk14.blue(name)}] Missing dependency in package.json: ${chalk14.red(imp)}`);
817
843
  console.log(` ${prodTypeImportPaths[imp].join("\n")}`);
818
844
  console.log("");
819
845
  }
@@ -821,70 +847,119 @@ function check({
821
847
  for (const imp of externalProdImports) {
822
848
  if (!dependencies.includes(imp) && !peerDependencies.includes(imp)) {
823
849
  unlistedDependencies++;
824
- console.log(`[${chalk13.blue(name)}] Missing dependency in package.json: ${chalk13.red(imp)}`);
850
+ console.log(`[${chalk14.blue(name)}] Missing dependency in package.json: ${chalk14.red(imp)}`);
825
851
  console.log(` ${prodImportPaths[imp].join("\n")}`);
826
852
  console.log("");
827
853
  }
828
854
  }
855
+ return unlistedDependencies;
856
+ }
857
+
858
+ // src/actions/deplint/checkPackage/getUnlistedDevDependencies.ts
859
+ import chalk15 from "chalk";
860
+ function getUnlistedDevDependencies({ name }, { devDependencies }, { devImportPaths, externalDevImports }) {
861
+ let unlistedDevDependencies = 0;
862
+ for (const imp of externalDevImports) {
863
+ if (!devDependencies.includes(imp)) {
864
+ unlistedDevDependencies++;
865
+ console.log(`[${chalk15.blue(name)}] Missing devDependency in package.json: ${chalk15.red(imp)}`);
866
+ console.log(` Found in: ${devImportPaths[imp].join(", ")}`);
867
+ }
868
+ }
869
+ return unlistedDevDependencies;
870
+ }
871
+
872
+ // src/actions/deplint/checkPackage/getUnusedDependencies.ts
873
+ import chalk16 from "chalk";
874
+ function getUnusedDependencies({ name, location }, { dependencies }, {
875
+ externalProdImports,
876
+ externalProdTypeImports
877
+ }) {
878
+ let unusedDependencies = 0;
829
879
  for (const dep of dependencies) {
830
- if (dep.startsWith("@types/")) {
831
- typesInDependencies++;
832
- console.log(`[${chalk13.blue(name)}] @types in dependencies in package.json: ${chalk13.red(dep)}`);
880
+ if (!externalProdImports.includes(dep) && !externalProdTypeImports.includes(dep)) {
881
+ unusedDependencies++;
882
+ console.log(`[${chalk16.blue(name)}] Unused dependency in package.json: ${chalk16.red(dep)}`);
833
883
  console.log(` ${location}/package.json
834
884
  `);
835
885
  console.log("");
836
886
  }
837
- if (!externalProdImports.includes(dep)) {
887
+ }
888
+ return unusedDependencies;
889
+ }
890
+
891
+ // src/actions/deplint/checkPackage/getUnusedPeerDependencies.ts
892
+ import chalk17 from "chalk";
893
+ function getUnusedPeerDependencies({ name, location }, { peerDependencies }, { externalProdImports, externalProdTypeImports }) {
894
+ let unusedDependencies = 0;
895
+ for (const dep of peerDependencies) {
896
+ if (!externalProdImports.includes(dep) && !externalProdTypeImports.includes(dep)) {
838
897
  unusedDependencies++;
839
- console.log(`[${chalk13.blue(name)}] Unused dependency in package.json: ${chalk13.red(dep)}`);
898
+ console.log(`[${chalk17.blue(name)}] Unused peerDependency in package.json: ${chalk17.red(dep)}`);
840
899
  console.log(` ${location}/package.json
841
900
  `);
842
901
  console.log("");
843
902
  }
844
903
  }
845
- if (peerDeps) {
846
- for (const dep of peerDependencies) {
847
- if (!externalProdImports.includes(dep)) {
848
- unusedDependencies++;
849
- console.log(`[${chalk13.blue(name)}] Unused peerDependency in package.json: ${chalk13.red(dep)}`);
850
- console.log(` ${location}/package.json
851
- `);
852
- console.log("");
853
- }
854
- }
855
- }
856
- if (devDeps) {
857
- for (const imp of externalDevImports) {
858
- if (!devDependencies.includes(imp)) {
859
- unlistedDevDependencies++;
860
- console.log(`[${chalk13.blue(name)}] Missing devDependency in package.json: ${chalk13.red(imp)}`);
861
- console.log(` Found in: ${devImportPaths[imp].join(", ")}`);
862
- }
863
- }
864
- }
865
- const totalErrors = unlistedDependencies + unlistedDevDependencies + unusedDependencies + typesInDependencies;
904
+ return unusedDependencies;
905
+ }
906
+
907
+ // src/actions/deplint/checkPackage/checkPackage.ts
908
+ function checkPackage({
909
+ name,
910
+ location,
911
+ deps = false,
912
+ devDeps = false,
913
+ peerDeps = false
914
+ }) {
915
+ const { prodSourceFiles, devSourceFiles } = findFiles(location);
916
+ const checkDeps = deps || !(deps || devDeps || peerDeps);
917
+ const checkDevDeps = devDeps || !(deps || devDeps || peerDeps);
918
+ const checkPeerDeps = peerDeps || !(deps || devDeps || peerDeps);
919
+ const sourceParams = getExternalImportsFromFiles({ prodSourceFiles, devSourceFiles });
920
+ const packageParams = getDependenciesFromPackageJson(`${location}/package.json`);
921
+ const unlistedDependencies = checkDeps ? getUnlistedDependencies({ name, location }, packageParams, sourceParams) : 0;
922
+ const unusedDependencies = checkDeps ? getUnusedDependencies({ name, location }, packageParams, sourceParams) : 0;
923
+ const typesInDependencies = checkDeps ? getTypesInDependencies({ name, location }, packageParams, sourceParams) : 0;
924
+ const unlistedDevDependencies = checkDevDeps ? getUnlistedDevDependencies({ name, location }, packageParams, sourceParams) : 0;
925
+ const unusedPeerDependencies = checkPeerDeps ? getUnusedPeerDependencies({ name, location }, packageParams, sourceParams) : 0;
926
+ const totalErrors = unlistedDependencies + unlistedDevDependencies + unusedDependencies + typesInDependencies + unusedPeerDependencies;
866
927
  return totalErrors;
867
928
  }
868
- var deplint = ({ pkg }) => {
929
+
930
+ // src/actions/deplint/deplint.ts
931
+ var deplint = ({
932
+ pkg,
933
+ deps,
934
+ devDeps,
935
+ peerDeps
936
+ }) => {
869
937
  if (pkg) {
870
938
  const { location, name } = yarnWorkspace(pkg);
871
939
  console.log(`Running Deplint for ${name}`);
872
- check({
940
+ checkPackage({
873
941
  name,
874
942
  location,
875
- devDeps: true
943
+ devDeps,
944
+ deps,
945
+ peerDeps
876
946
  });
877
947
  } else {
878
948
  const workspaces = yarnWorkspaces();
879
949
  console.log("Deplint Started...");
880
950
  let totalErrors = 0;
881
951
  for (const workspace of workspaces) {
882
- totalErrors += check(workspace);
952
+ totalErrors += checkPackage({
953
+ ...workspace,
954
+ deps,
955
+ devDeps,
956
+ peerDeps
957
+ });
883
958
  }
884
959
  if (totalErrors > 0) {
885
- console.log(`Found ${chalk13.red(totalErrors)} unlisted imports.`);
960
+ console.log(`Deplint: Found ${chalk18.red(totalErrors)} dependency problems. ${chalk18.red("\u2716")}`);
886
961
  } else {
887
- console.log(`No unlisted imports found. ${chalk13.green("\u2714")}`);
962
+ console.log(`Deplint: Found no dependency problems. ${chalk18.green("\u2714")}`);
888
963
  }
889
964
  }
890
965
  return 0;
@@ -991,18 +1066,18 @@ var deployNext = () => {
991
1066
  };
992
1067
 
993
1068
  // src/actions/dupdeps.ts
994
- import chalk14 from "chalk";
1069
+ import chalk19 from "chalk";
995
1070
  var dupdeps = () => {
996
- console.log(chalk14.green("Checking all Dependencies for Duplicates"));
1071
+ console.log(chalk19.green("Checking all Dependencies for Duplicates"));
997
1072
  const allDependencies = parsedPackageJSON()?.dependencies;
998
1073
  const dependencies = Object.entries(allDependencies).map(([k]) => k);
999
1074
  return detectDuplicateDependencies(dependencies);
1000
1075
  };
1001
1076
 
1002
1077
  // src/actions/lint.ts
1003
- import chalk15 from "chalk";
1078
+ import chalk20 from "chalk";
1004
1079
  var lintPackage = ({ pkg, fix: fix2 }) => {
1005
- console.log(chalk15.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
1080
+ console.log(chalk20.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
1006
1081
  const start = Date.now();
1007
1082
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [${pkg}]`, [
1008
1083
  ["yarn", [
@@ -1012,7 +1087,7 @@ var lintPackage = ({ pkg, fix: fix2 }) => {
1012
1087
  fix2 ? "package-fix" : "package-lint"
1013
1088
  ]]
1014
1089
  ]);
1015
- console.log(chalk15.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk15.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk15.gray("seconds")}`));
1090
+ console.log(chalk20.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk20.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk20.gray("seconds")}`));
1016
1091
  return result;
1017
1092
  };
1018
1093
  var lint = ({
@@ -1028,13 +1103,13 @@ var lint = ({
1028
1103
  });
1029
1104
  };
1030
1105
  var lintAllPackages = ({ fix: fix2 = false } = {}) => {
1031
- console.log(chalk15.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1106
+ console.log(chalk20.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1032
1107
  const start = Date.now();
1033
1108
  const fixOptions = fix2 ? ["--fix"] : [];
1034
1109
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
1035
1110
  ["yarn", ["eslint", ...fixOptions]]
1036
1111
  ]);
1037
- console.log(chalk15.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk15.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk15.gray("seconds")}`));
1112
+ console.log(chalk20.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk20.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk20.gray("seconds")}`));
1038
1113
  return result;
1039
1114
  };
1040
1115
 
@@ -1062,7 +1137,7 @@ var filename = ".gitignore";
1062
1137
  var gitignoreGen = (pkg) => generateIgnoreFiles(filename, pkg);
1063
1138
 
1064
1139
  // src/actions/gitlint.ts
1065
- import chalk16 from "chalk";
1140
+ import chalk21 from "chalk";
1066
1141
  import ParseGitConfig from "parse-git-config";
1067
1142
  var gitlint = () => {
1068
1143
  console.log(`
@@ -1073,7 +1148,7 @@ Gitlint Start [${process.cwd()}]
1073
1148
  const errors = 0;
1074
1149
  const gitConfig = ParseGitConfig.sync();
1075
1150
  const warn = (message) => {
1076
- console.warn(chalk16.yellow(`Warning: ${message}`));
1151
+ console.warn(chalk21.yellow(`Warning: ${message}`));
1077
1152
  warnings++;
1078
1153
  };
1079
1154
  if (gitConfig.core.ignorecase) {
@@ -1093,13 +1168,13 @@ Gitlint Start [${process.cwd()}]
1093
1168
  }
1094
1169
  const resultMessages = [];
1095
1170
  if (valid > 0) {
1096
- resultMessages.push(chalk16.green(`Passed: ${valid}`));
1171
+ resultMessages.push(chalk21.green(`Passed: ${valid}`));
1097
1172
  }
1098
1173
  if (warnings > 0) {
1099
- resultMessages.push(chalk16.yellow(`Warnings: ${warnings}`));
1174
+ resultMessages.push(chalk21.yellow(`Warnings: ${warnings}`));
1100
1175
  }
1101
1176
  if (errors > 0) {
1102
- resultMessages.push(chalk16.red(` Errors: ${errors}`));
1177
+ resultMessages.push(chalk21.red(` Errors: ${errors}`));
1103
1178
  }
1104
1179
  console.warn(`Gitlint Finish [ ${resultMessages.join(" | ")} ]
1105
1180
  `);
@@ -1108,7 +1183,7 @@ Gitlint Start [${process.cwd()}]
1108
1183
 
1109
1184
  // src/actions/gitlint-fix.ts
1110
1185
  import { execSync as execSync2 } from "node:child_process";
1111
- import chalk17 from "chalk";
1186
+ import chalk22 from "chalk";
1112
1187
  import ParseGitConfig2 from "parse-git-config";
1113
1188
  var gitlintFix = () => {
1114
1189
  console.log(`
@@ -1117,15 +1192,15 @@ Gitlint Fix Start [${process.cwd()}]
1117
1192
  const gitConfig = ParseGitConfig2.sync();
1118
1193
  if (gitConfig.core.ignorecase) {
1119
1194
  execSync2("git config core.ignorecase false", { stdio: "inherit" });
1120
- console.warn(chalk17.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1195
+ console.warn(chalk22.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
1121
1196
  }
1122
1197
  if (gitConfig.core.autocrlf !== false) {
1123
1198
  execSync2("git config core.autocrlf false", { stdio: "inherit" });
1124
- console.warn(chalk17.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1199
+ console.warn(chalk22.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
1125
1200
  }
1126
1201
  if (gitConfig.core.eol !== "lf") {
1127
1202
  execSync2("git config core.eol lf", { stdio: "inherit" });
1128
- console.warn(chalk17.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1203
+ console.warn(chalk22.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
1129
1204
  }
1130
1205
  return 1;
1131
1206
  };
@@ -1136,7 +1211,7 @@ var knip = () => {
1136
1211
  };
1137
1212
 
1138
1213
  // src/actions/license.ts
1139
- import chalk18 from "chalk";
1214
+ import chalk23 from "chalk";
1140
1215
  import { init } from "license-checker";
1141
1216
  var license = async (pkg) => {
1142
1217
  const workspaces = yarnWorkspaces();
@@ -1161,18 +1236,18 @@ var license = async (pkg) => {
1161
1236
  "LGPL-3.0-or-later",
1162
1237
  "Python-2.0"
1163
1238
  ]);
1164
- console.log(chalk18.green("License Checker"));
1239
+ console.log(chalk23.green("License Checker"));
1165
1240
  return (await Promise.all(
1166
1241
  workspaceList.map(({ location, name }) => {
1167
1242
  return new Promise((resolve) => {
1168
1243
  init({ production: true, start: location }, (error, packages) => {
1169
1244
  if (error) {
1170
- console.error(chalk18.red(`License Checker [${name}] Error`));
1171
- console.error(chalk18.gray(error));
1245
+ console.error(chalk23.red(`License Checker [${name}] Error`));
1246
+ console.error(chalk23.gray(error));
1172
1247
  console.log("\n");
1173
1248
  resolve(1);
1174
1249
  } else {
1175
- console.log(chalk18.green(`License Checker [${name}]`));
1250
+ console.log(chalk23.green(`License Checker [${name}]`));
1176
1251
  let count = 0;
1177
1252
  for (const [name2, info] of Object.entries(packages)) {
1178
1253
  const licenses = Array.isArray(info.licenses) ? info.licenses : [info.licenses];
@@ -1188,7 +1263,7 @@ var license = async (pkg) => {
1188
1263
  }
1189
1264
  if (!orLicenseFound) {
1190
1265
  count++;
1191
- console.warn(chalk18.yellow(`${name2}: Package License not allowed [${license2}]`));
1266
+ console.warn(chalk23.yellow(`${name2}: Package License not allowed [${license2}]`));
1192
1267
  }
1193
1268
  }
1194
1269
  }
@@ -1207,13 +1282,13 @@ var filename2 = ".npmignore";
1207
1282
  var npmignoreGen = (pkg) => generateIgnoreFiles(filename2, pkg);
1208
1283
 
1209
1284
  // src/actions/package/clean-outputs.ts
1210
- import path4 from "node:path";
1211
- import chalk19 from "chalk";
1285
+ import path5 from "node:path";
1286
+ import chalk24 from "chalk";
1212
1287
  var packageCleanOutputs = () => {
1213
1288
  const pkg = process.env.INIT_CWD ?? ".";
1214
1289
  const pkgName = process.env.npm_package_name;
1215
- const folders = [path4.join(pkg, "dist"), path4.join(pkg, "build"), path4.join(pkg, "docs")];
1216
- console.log(chalk19.green(`Cleaning Outputs [${pkgName}]`));
1290
+ const folders = [path5.join(pkg, "dist"), path5.join(pkg, "build"), path5.join(pkg, "docs")];
1291
+ console.log(chalk24.green(`Cleaning Outputs [${pkgName}]`));
1217
1292
  for (let folder of folders) {
1218
1293
  deleteGlob(folder);
1219
1294
  }
@@ -1221,13 +1296,13 @@ var packageCleanOutputs = () => {
1221
1296
  };
1222
1297
 
1223
1298
  // src/actions/package/clean-typescript.ts
1224
- import path5 from "node:path";
1225
- import chalk20 from "chalk";
1299
+ import path6 from "node:path";
1300
+ import chalk25 from "chalk";
1226
1301
  var packageCleanTypescript = () => {
1227
1302
  const pkg = process.env.INIT_CWD ?? ".";
1228
1303
  const pkgName = process.env.npm_package_name;
1229
- console.log(chalk20.green(`Cleaning Typescript [${pkgName}]`));
1230
- const files = [path5.join(pkg, "*.tsbuildinfo"), path5.join(pkg, ".tsconfig.*"), path5.join(pkg, ".eslintcache")];
1304
+ console.log(chalk25.green(`Cleaning Typescript [${pkgName}]`));
1305
+ const files = [path6.join(pkg, "*.tsbuildinfo"), path6.join(pkg, ".tsconfig.*"), path6.join(pkg, ".eslintcache")];
1231
1306
  for (let file of files) {
1232
1307
  deleteGlob(file);
1233
1308
  }
@@ -1240,19 +1315,19 @@ var packageClean = async () => {
1240
1315
  };
1241
1316
 
1242
1317
  // src/actions/package/compile/compile.ts
1243
- import chalk24 from "chalk";
1318
+ import chalk29 from "chalk";
1244
1319
 
1245
1320
  // src/actions/package/publint.ts
1246
- import { promises as fs3 } from "node:fs";
1247
- import chalk21 from "chalk";
1321
+ import { promises as fs4 } from "node:fs";
1322
+ import chalk26 from "chalk";
1248
1323
  import sortPackageJson from "sort-package-json";
1249
1324
  var packagePublint = async (params) => {
1250
1325
  const pkgDir = process.env.INIT_CWD;
1251
- const sortedPkg = sortPackageJson(await fs3.readFile(`${pkgDir}/package.json`, "utf8"));
1252
- await fs3.writeFile(`${pkgDir}/package.json`, sortedPkg);
1253
- const pkg = JSON.parse(await fs3.readFile(`${pkgDir}/package.json`, "utf8"));
1254
- console.log(chalk21.green(`Publint: ${pkg.name}`));
1255
- console.log(chalk21.gray(pkgDir));
1326
+ const sortedPkg = sortPackageJson(await fs4.readFile(`${pkgDir}/package.json`, "utf8"));
1327
+ await fs4.writeFile(`${pkgDir}/package.json`, sortedPkg);
1328
+ const pkg = JSON.parse(await fs4.readFile(`${pkgDir}/package.json`, "utf8"));
1329
+ console.log(chalk26.green(`Publint: ${pkg.name}`));
1330
+ console.log(chalk26.gray(pkgDir));
1256
1331
  const { publint: publint2 } = await import("publint");
1257
1332
  const { messages } = await publint2({
1258
1333
  level: "suggestion",
@@ -1267,21 +1342,21 @@ var packagePublint = async (params) => {
1267
1342
  for (const message of validMessages) {
1268
1343
  switch (message.type) {
1269
1344
  case "error": {
1270
- console.error(chalk21.red(`[${message.code}] ${formatMessage(message, pkg)}`));
1345
+ console.error(chalk26.red(`[${message.code}] ${formatMessage(message, pkg)}`));
1271
1346
  break;
1272
1347
  }
1273
1348
  case "warning": {
1274
- console.warn(chalk21.yellow(`[${message.code}] ${formatMessage(message, pkg)}`));
1349
+ console.warn(chalk26.yellow(`[${message.code}] ${formatMessage(message, pkg)}`));
1275
1350
  break;
1276
1351
  }
1277
1352
  default: {
1278
- console.log(chalk21.white(`[${message.code}] ${formatMessage(message, pkg)}`));
1353
+ console.log(chalk26.white(`[${message.code}] ${formatMessage(message, pkg)}`));
1279
1354
  break;
1280
1355
  }
1281
1356
  }
1282
1357
  }
1283
1358
  if (params?.verbose) {
1284
- console.log(chalk21.gray(`Publint [Finish]: ${pkgDir} [${validMessages.length}]`));
1359
+ console.log(chalk26.gray(`Publint [Finish]: ${pkgDir} [${validMessages.length}]`));
1285
1360
  }
1286
1361
  return validMessages.filter((message) => message.type === "error").length;
1287
1362
  };
@@ -1318,7 +1393,7 @@ var buildEntries = (folder, entryMode = "single", excludeSpecAndStories = true,
1318
1393
 
1319
1394
  // src/actions/package/compile/packageCompileTscTypes.ts
1320
1395
  import { cwd } from "node:process";
1321
- import chalk22 from "chalk";
1396
+ import chalk27 from "chalk";
1322
1397
  import { createProgramFromConfig } from "tsc-prog";
1323
1398
  import {
1324
1399
  DiagnosticCategory,
@@ -1373,7 +1448,7 @@ var packageCompileTscTypes = (folder = "src", config2 = {}, compilerOptionsParam
1373
1448
  const validTsExt = [".ts", ".tsx", ".d.ts", ".cts", ".d.cts", ".mts", ".d.mts"];
1374
1449
  const excludes = [".stories.", ".spec."];
1375
1450
  const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && !excludes.some((exclude) => file.includes(exclude)));
1376
- console.log(chalk22.green(`Compiling Types ${pkg}: ${files.length}`));
1451
+ console.log(chalk27.green(`Compiling Types ${pkg}: ${files.length}`));
1377
1452
  if (files.length > 0) {
1378
1453
  const program = createProgramFromConfig({
1379
1454
  basePath: pkg ?? cwd(),
@@ -1430,7 +1505,7 @@ function deepMergeObjects(objects) {
1430
1505
 
1431
1506
  // src/actions/package/compile/packageCompileTsc.ts
1432
1507
  import { cwd as cwd2 } from "node:process";
1433
- import chalk23 from "chalk";
1508
+ import chalk28 from "chalk";
1434
1509
  import { createProgramFromConfig as createProgramFromConfig2 } from "tsc-prog";
1435
1510
  import {
1436
1511
  DiagnosticCategory as DiagnosticCategory2,
@@ -1456,7 +1531,7 @@ var packageCompileTsc = (folder = "src", config2 = {}, compilerOptionsParam) =>
1456
1531
  const validTsExt = [".ts", ".tsx", ".d.ts", ".cts", ".d.cts", ".mts", ".d.mts"];
1457
1532
  const includes = [".stories.", ".spec.", ".d.ts", ".d.cts", ".d.mts"];
1458
1533
  const files = buildEntries(folder, "all", verbose).filter((file) => validTsExt.find((ext) => file.endsWith(ext)) && includes.find((include) => file.includes(include)));
1459
- console.log(chalk23.green(`Compiling Files ${pkg}: ${files.length}`));
1534
+ console.log(chalk28.green(`Compiling Files ${pkg}: ${files.length}`));
1460
1535
  if (files.length > 0) {
1461
1536
  const program = createProgramFromConfig2({
1462
1537
  basePath: pkg ?? cwd2(),
@@ -1607,7 +1682,7 @@ var packageCompileTsup = async (config2) => {
1607
1682
  // src/actions/package/compile/compile.ts
1608
1683
  var packageCompile = async (inConfig = {}) => {
1609
1684
  const pkg = process.env.INIT_CWD;
1610
- console.log(chalk24.green(`Compiling ${pkg}`));
1685
+ console.log(chalk29.green(`Compiling ${pkg}`));
1611
1686
  const config2 = await loadConfig(inConfig);
1612
1687
  const publint2 = config2.publint;
1613
1688
  const tsupResults = await packageCompileTsup(config2);
@@ -1618,8 +1693,8 @@ var packageCompile = async (inConfig = {}) => {
1618
1693
  };
1619
1694
 
1620
1695
  // src/actions/package/copy-assets.ts
1621
- import path6 from "node:path/posix";
1622
- import chalk25 from "chalk";
1696
+ import path7 from "node:path/posix";
1697
+ import chalk30 from "chalk";
1623
1698
  import cpy2 from "cpy";
1624
1699
  var copyTargetAssets2 = async (target, name, location) => {
1625
1700
  try {
@@ -1627,12 +1702,12 @@ var copyTargetAssets2 = async (target, name, location) => {
1627
1702
  ["**/*.jpg", "**/*.png", "**/*.gif", "**/*.svg", "**/*.webp", "**/*.sass", "**/*.scss", "**/*.gif", "**/*.css"],
1628
1703
  `../dist/${target}`,
1629
1704
  {
1630
- cwd: path6.join(location, "src"),
1705
+ cwd: path7.join(location, "src"),
1631
1706
  flat: false
1632
1707
  }
1633
1708
  );
1634
1709
  if (values.length > 0) {
1635
- console.log(chalk25.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1710
+ console.log(chalk30.green(`Copying Assets [${target.toUpperCase()}] - ${name} - ${location}`));
1636
1711
  }
1637
1712
  for (const value of values) {
1638
1713
  console.log(`${value.split("/").pop()} => ./dist/${target}`);
@@ -1700,8 +1775,8 @@ var packageCycle = async ({ verbose = false }) => {
1700
1775
 
1701
1776
  // src/actions/package/gen-docs.ts
1702
1777
  import { existsSync as existsSync4 } from "node:fs";
1703
- import path7 from "node:path";
1704
- import chalk26 from "chalk";
1778
+ import path8 from "node:path";
1779
+ import chalk31 from "chalk";
1705
1780
  import {
1706
1781
  Application,
1707
1782
  ArgumentsReader,
@@ -1719,7 +1794,7 @@ var ExitCodes = {
1719
1794
  };
1720
1795
  var packageGenDocs = async () => {
1721
1796
  const pkg = process.env.INIT_CWD;
1722
- if (pkg && !existsSync4(path7.join(pkg, "typedoc.json"))) {
1797
+ if (pkg && !existsSync4(path8.join(pkg, "typedoc.json"))) {
1723
1798
  return;
1724
1799
  }
1725
1800
  const app = await Application.bootstrap({
@@ -1805,16 +1880,16 @@ var runTypeDoc = async (app) => {
1805
1880
  return ExitCodes.OutputError;
1806
1881
  }
1807
1882
  }
1808
- console.log(chalk26.green(`${pkgName} - Ok`));
1883
+ console.log(chalk31.green(`${pkgName} - Ok`));
1809
1884
  return ExitCodes.Ok;
1810
1885
  };
1811
1886
 
1812
1887
  // src/actions/package/lint.ts
1813
1888
  import { readdirSync } from "node:fs";
1814
- import path8 from "node:path";
1889
+ import path9 from "node:path";
1815
1890
  import { cwd as cwd3 } from "node:process";
1816
1891
  import { pathToFileURL } from "node:url";
1817
- import chalk27 from "chalk";
1892
+ import chalk32 from "chalk";
1818
1893
  import { ESLint } from "eslint";
1819
1894
  import { findUp } from "find-up";
1820
1895
  import picomatch from "picomatch";
@@ -1823,14 +1898,14 @@ var dumpMessages = (lintResults) => {
1823
1898
  const severity = ["none", "warning", "error"];
1824
1899
  for (const lintResult of lintResults) {
1825
1900
  if (lintResult.messages.length > 0) {
1826
- console.log(chalk27.gray(`
1901
+ console.log(chalk32.gray(`
1827
1902
  ${lintResult.filePath}`));
1828
1903
  for (const message of lintResult.messages) {
1829
1904
  console.log(
1830
- chalk27.gray(` ${message.line}:${message.column}`),
1831
- chalk27[colors[message.severity]](` ${severity[message.severity]}`),
1832
- chalk27.white(` ${message.message}`),
1833
- chalk27.gray(` ${message.ruleId}`)
1905
+ chalk32.gray(` ${message.line}:${message.column}`),
1906
+ chalk32[colors[message.severity]](` ${severity[message.severity]}`),
1907
+ chalk32.white(` ${message.message}`),
1908
+ chalk32.gray(` ${message.ruleId}`)
1834
1909
  );
1835
1910
  }
1836
1911
  }
@@ -1848,7 +1923,7 @@ function getFiles(dir, ignoreFolders) {
1848
1923
  const subDirectory = dir.split(currentDirectory)[1];
1849
1924
  if (ignoreFolders.includes(subDirectory)) return [];
1850
1925
  return readdirSync(dir, { withFileTypes: true }).flatMap((dirent) => {
1851
- const res = path8.resolve(dir, dirent.name);
1926
+ const res = path9.resolve(dir, dirent.name);
1852
1927
  const relativePath = subDirectory ? `${subDirectory}/${dirent.name}` : dirent.name;
1853
1928
  const ignoreMatchers = ignoreFolders.map((pattern) => picomatch(pattern));
1854
1929
  if (ignoreMatchers.some((isMatch) => isMatch(relativePath))) return [];
@@ -1869,7 +1944,7 @@ var packageLint = async (fix2 = false, verbose = false, cache = true) => {
1869
1944
  });
1870
1945
  const files = getFiles(cwd3(), ignoreFolders);
1871
1946
  if (verbose) {
1872
- console.log(chalk27.green(`Linting ${pkg} [files = ${files.length}]`));
1947
+ console.log(chalk32.green(`Linting ${pkg} [files = ${files.length}]`));
1873
1948
  }
1874
1949
  const lintResults = await engine.lintFiles(files);
1875
1950
  dumpMessages(lintResults);
@@ -1879,7 +1954,7 @@ var packageLint = async (fix2 = false, verbose = false, cache = true) => {
1879
1954
  const filesCountColor = files.length < 100 ? "green" : files.length < 1e3 ? "yellow" : "red";
1880
1955
  const lintTime = Date.now() - start;
1881
1956
  const lintTimeColor = lintTime < 1e3 ? "green" : lintTime < 3e3 ? "yellow" : "red";
1882
- console.log(chalk27.white(`Linted ${chalk27[filesCountColor](files.length)} files in ${chalk27[lintTimeColor](lintTime)}ms`));
1957
+ console.log(chalk32.white(`Linted ${chalk32[filesCountColor](files.length)} files in ${chalk32[lintTimeColor](lintTime)}ms`));
1883
1958
  return lintResults.reduce((prev, lintResult) => prev + lintResult.errorCount, 0);
1884
1959
  };
1885
1960
 
@@ -1909,7 +1984,7 @@ var rebuild = ({ target }) => {
1909
1984
  };
1910
1985
 
1911
1986
  // src/actions/recompile.ts
1912
- import chalk28 from "chalk";
1987
+ import chalk33 from "chalk";
1913
1988
  var recompile = async ({
1914
1989
  verbose,
1915
1990
  target,
@@ -1945,7 +2020,7 @@ var recompileAll = async ({
1945
2020
  const incrementalOptions = incremental ? ["--since", "-Apt", "--topological-dev"] : ["--parallel", "-Apt", "--topological-dev"];
1946
2021
  const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
1947
2022
  if (jobs) {
1948
- console.log(chalk28.blue(`Jobs set to [${jobs}]`));
2023
+ console.log(chalk33.blue(`Jobs set to [${jobs}]`));
1949
2024
  }
1950
2025
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
1951
2026
  [
@@ -1976,7 +2051,7 @@ var recompileAll = async ({
1976
2051
  ]
1977
2052
  ]);
1978
2053
  console.log(
1979
- `${chalk28.gray("Recompiled in")} [${chalk28.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk28.gray("seconds")}`
2054
+ `${chalk33.gray("Recompiled in")} [${chalk33.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk33.gray("seconds")}`
1980
2055
  );
1981
2056
  return result;
1982
2057
  };
@@ -2007,9 +2082,9 @@ var reinstall = () => {
2007
2082
  };
2008
2083
 
2009
2084
  // src/actions/relint.ts
2010
- import chalk29 from "chalk";
2085
+ import chalk34 from "chalk";
2011
2086
  var relintPackage = ({ pkg }) => {
2012
- console.log(chalk29.gray(`${"Relint"} [All-Packages]`));
2087
+ console.log(chalk34.gray(`${"Relint"} [All-Packages]`));
2013
2088
  const start = Date.now();
2014
2089
  const result = runSteps("Relint [All-Packages]", [
2015
2090
  ["yarn", [
@@ -2019,7 +2094,7 @@ var relintPackage = ({ pkg }) => {
2019
2094
  "package-relint"
2020
2095
  ]]
2021
2096
  ]);
2022
- console.log(chalk29.gray(`${"Relinted in"} [${chalk29.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk29.gray("seconds")}`));
2097
+ console.log(chalk34.gray(`${"Relinted in"} [${chalk34.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk34.gray("seconds")}`));
2023
2098
  return result;
2024
2099
  };
2025
2100
  var relint = ({
@@ -2030,7 +2105,7 @@ var relint = ({
2030
2105
  return pkg ? relintPackage({ pkg }) : relintAllPackages({ verbose, incremental });
2031
2106
  };
2032
2107
  var relintAllPackages = ({ verbose = true, incremental } = {}) => {
2033
- console.log(chalk29.gray(`${"Relint"} [All-Packages]`));
2108
+ console.log(chalk34.gray(`${"Relint"} [All-Packages]`));
2034
2109
  const start = Date.now();
2035
2110
  const verboseOptions = verbose ? ["--verbose"] : ["--no-verbose"];
2036
2111
  const incrementalOptions = incremental ? ["--since", "-Ap"] : ["--parallel", "-Ap"];
@@ -2044,7 +2119,7 @@ var relintAllPackages = ({ verbose = true, incremental } = {}) => {
2044
2119
  "package-relint"
2045
2120
  ]]
2046
2121
  ]);
2047
- console.log(chalk29.gray(`Relinted in [${chalk29.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk29.gray("seconds")}`));
2122
+ console.log(chalk34.gray(`Relinted in [${chalk34.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk34.gray("seconds")}`));
2048
2123
  return result;
2049
2124
  };
2050
2125
 
@@ -2062,10 +2137,10 @@ var sonar = () => {
2062
2137
  };
2063
2138
 
2064
2139
  // src/actions/statics.ts
2065
- import chalk30 from "chalk";
2140
+ import chalk35 from "chalk";
2066
2141
  var DefaultDependencies = ["axios", "@xylabs/pixel", "react", "graphql", "react-router", "@mui/material", "@mui/system"];
2067
2142
  var statics = () => {
2068
- console.log(chalk30.green("Check Required Static Dependencies"));
2143
+ console.log(chalk35.green("Check Required Static Dependencies"));
2069
2144
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
2070
2145
  return detectDuplicateDependencies(statics2, DefaultDependencies);
2071
2146
  };