repo-tools: work around /* type imports

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-01-18 01:02:06 +01:00
parent 3e63951e49
commit 32a4a05838
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/repo-tools': patch
---
Tweaked type dependency check to trim wildcard type imports.
@@ -105,7 +105,10 @@ function checkTypes(pkg: Package) {
const errors = [];
const typeDeps = [];
for (const dep of deps) {
for (let dep of deps) {
if (dep.endsWith('/*')) {
dep = dep.slice(0, -2);
}
try {
const typeDep = findTypesPackage(dep, pkg);
if (typeDep) {