Suppress warnings for solidjs dependency crawling (#5089)

This commit is contained in:
Bjorn Lu 2022-10-14 17:51:42 +08:00 committed by GitHub
parent 49a8d18b49
commit 0173c2b2df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/solid-js': patch
---
Suppress warnings for dependency crawling

View file

@ -45,9 +45,7 @@ export function getSolidDeps(root: URL) {
}
dir = parent;
}
} catch (e) {
console.warn("Couldn't find package.json for", dep, e);
}
} catch {}
}
});
return deps.reduce<string[]>((acc, dep, i) => {