@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/actions/deplint.mjs +4 -2
- package/dist/actions/deplint.mjs.map +1 -1
- package/dist/actions/index.mjs +4 -2
- package/dist/actions/index.mjs.map +1 -1
- package/dist/bin/xy.mjs +4 -2
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/xy/index.mjs +4 -2
- package/dist/xy/index.mjs.map +1 -1
- package/dist/xy/xy.mjs +4 -2
- package/dist/xy/xy.mjs.map +1 -1
- package/dist/xy/xyLintCommands.mjs +4 -2
- package/dist/xy/xyLintCommands.mjs.map +1 -1
- package/package.json +2 -2
package/dist/xy/xy.mjs
CHANGED
|
@@ -730,7 +730,7 @@ function findFilesByGlob(cwd, pattern) {
|
|
|
730
730
|
return globSync(pattern, { cwd, absolute: true });
|
|
731
731
|
}
|
|
732
732
|
function findFiles(path4) {
|
|
733
|
-
const allSourceInclude = ["./src/**/*.{ts,tsx}"];
|
|
733
|
+
const allSourceInclude = ["./src/**/*.{ts,tsx}", "./dist/**/*.d.ts"];
|
|
734
734
|
const prodExcludeEndswith = [".spec.ts", ".stories.tsx"];
|
|
735
735
|
const prodExcludeIncludes = ["/spec/", "/stories/", "/scripts/"];
|
|
736
736
|
const allSourceFiles = allSourceInclude.flatMap((pattern) => findFilesByGlob(path4, pattern));
|
|
@@ -760,6 +760,7 @@ function getExternalImportsFromFiles({ prodSourceFiles, devSourceFiles }) {
|
|
|
760
760
|
prodImports,
|
|
761
761
|
devImports,
|
|
762
762
|
prodImportPaths,
|
|
763
|
+
prodTypeImportPaths,
|
|
763
764
|
devImportPaths,
|
|
764
765
|
externalProdImports,
|
|
765
766
|
externalDevImports,
|
|
@@ -776,6 +777,7 @@ function check({
|
|
|
776
777
|
}) {
|
|
777
778
|
const { prodSourceFiles, devSourceFiles } = findFiles(location);
|
|
778
779
|
const {
|
|
780
|
+
prodTypeImportPaths,
|
|
779
781
|
prodImportPaths,
|
|
780
782
|
externalProdTypeImports,
|
|
781
783
|
devImportPaths,
|
|
@@ -795,7 +797,7 @@ function check({
|
|
|
795
797
|
if (!dependencies.includes(imp) && !peerDependencies.includes(imp) && !devDependencies.includes(imp) && !devDependencies.includes(`@types/${imp}`)) {
|
|
796
798
|
unlistedDependencies++;
|
|
797
799
|
console.log(`[${chalk12.blue(name)}] Missing dependency in package.json: ${chalk12.red(imp)}`);
|
|
798
|
-
console.log(` ${
|
|
800
|
+
console.log(` ${prodTypeImportPaths[imp].join("\n")}`);
|
|
799
801
|
console.log("");
|
|
800
802
|
}
|
|
801
803
|
}
|