Compare commits

...

2 commits

Author SHA1 Message Date
Matthew Phillips
960cdba30d Update Solid ecosystem package logic to include packages with peerDep of Solid 2023-04-28 13:23:10 -04:00
Matthew Phillips
7888251955 Configure redoc to be noExternal 2023-04-28 13:07:49 -04:00
4 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/react": patch
---
Automatically configure redoc

View file

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

View file

@ -66,6 +66,7 @@ function getViteConfiguration() {
'@mui/material',
'@mui/base',
'@babel/runtime',
'redoc',
'use-immer',
],
},

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