From 1a167e6289f8ef4cc995b88910bb511612b3d5c4 Mon Sep 17 00:00:00 2001 From: bluwy Date: Fri, 14 Oct 2022 13:49:01 +0800 Subject: [PATCH] Suppress warnings for solidjs dependency crawling --- .changeset/silver-hotels-jam.md | 5 +++++ packages/integrations/solid/src/dependencies.ts | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changeset/silver-hotels-jam.md diff --git a/.changeset/silver-hotels-jam.md b/.changeset/silver-hotels-jam.md new file mode 100644 index 000000000000..1b34b3784806 --- /dev/null +++ b/.changeset/silver-hotels-jam.md @@ -0,0 +1,5 @@ +--- +'@astrojs/solid-js': patch +--- + +Suppress warnings for dependency crawling diff --git a/packages/integrations/solid/src/dependencies.ts b/packages/integrations/solid/src/dependencies.ts index 67e50a947beb..6a073148f2b6 100644 --- a/packages/integrations/solid/src/dependencies.ts +++ b/packages/integrations/solid/src/dependencies.ts @@ -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((acc, dep, i) => {