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']; }, }); }