@xylabs/ts-scripts-yarn3 6.4.3 → 6.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -822,7 +822,7 @@ function findFilesByGlob(cwd4, pattern) {
822
822
  return globSync(pattern, { cwd: cwd4, absolute: true });
823
823
  }
824
824
  function findFiles(path9) {
825
- const allSourceInclude = ["./src/**/*.{ts,tsx}"];
825
+ const allSourceInclude = ["./src/**/*.{ts,tsx}", "./dist/**/*.d.ts"];
826
826
  const prodExcludeEndswith = [".spec.ts", ".stories.tsx"];
827
827
  const prodExcludeIncludes = ["/spec/", "/stories/", "/scripts/"];
828
828
  const allSourceFiles = allSourceInclude.flatMap((pattern) => findFilesByGlob(path9, pattern));
@@ -852,6 +852,7 @@ function getExternalImportsFromFiles({ prodSourceFiles, devSourceFiles }) {
852
852
  prodImports,
853
853
  devImports,
854
854
  prodImportPaths,
855
+ prodTypeImportPaths,
855
856
  devImportPaths,
856
857
  externalProdImports,
857
858
  externalDevImports,
@@ -868,6 +869,7 @@ function check({
868
869
  }) {
869
870
  const { prodSourceFiles, devSourceFiles } = findFiles(location);
870
871
  const {
872
+ prodTypeImportPaths,
871
873
  prodImportPaths,
872
874
  externalProdTypeImports,
873
875
  devImportPaths,
@@ -887,7 +889,7 @@ function check({
887
889
  if (!dependencies.includes(imp) && !peerDependencies.includes(imp) && !devDependencies.includes(imp) && !devDependencies.includes(`@types/${imp}`)) {
888
890
  unlistedDependencies++;
889
891
  console.log(`[${chalk14.blue(name)}] Missing dependency in package.json: ${chalk14.red(imp)}`);
890
- console.log(` ${prodImportPaths[imp].join("\n")}`);
892
+ console.log(` ${prodTypeImportPaths[imp].join("\n")}`);
891
893
  console.log("");
892
894
  }
893
895
  }