Update Solid ecosystem package logic to include packages with peerDep of Solid

This commit is contained in:
Matthew Phillips 2023-04-28 13:23:10 -04:00
parent 7888251955
commit 960cdba30d
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/solid-js": patch
---
Update Solid ecosystem package logic to include packages with peerDep of Solid

View file

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