From 960cdba30d7ec9647d442e0e6b3b911fe5f8bf32 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 28 Apr 2023 13:23:10 -0400 Subject: [PATCH] Update Solid ecosystem package logic to include packages with peerDep of Solid --- .changeset/purple-lamps-sleep.md | 5 +++++ packages/integrations/solid/src/dependencies.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/purple-lamps-sleep.md diff --git a/.changeset/purple-lamps-sleep.md b/.changeset/purple-lamps-sleep.md new file mode 100644 index 000000000..63f532cca --- /dev/null +++ b/.changeset/purple-lamps-sleep.md @@ -0,0 +1,5 @@ +--- +"@astrojs/solid-js": patch +--- + +Update Solid ecosystem package logic to include packages with peerDep of Solid diff --git a/packages/integrations/solid/src/dependencies.ts b/packages/integrations/solid/src/dependencies.ts index ebe5e2a0a..115090848 100644 --- a/packages/integrations/solid/src/dependencies.ts +++ b/packages/integrations/solid/src/dependencies.ts @@ -8,7 +8,7 @@ export async function getSolidPkgsConfig(isBuild: boolean, astroConfig: AstroCon isBuild, viteUserConfig: astroConfig.vite, isFrameworkPkgByJson(pkgJson) { - return containsSolidField(pkgJson.exports || {}); + return containsSolidField(pkgJson.exports || {}) || !!(pkgJson.peerDependencies || {})['solid-js']; }, }); }