repo-tools: work around /* type imports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user