0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-24 23:21:57 -05:00
This commit is contained in:
bluwy 2024-11-13 15:29:08 +08:00
parent b464fbbd69
commit ff3e959a2f
2 changed files with 3 additions and 0 deletions

View file

@ -85,6 +85,8 @@ async function generatePackageMap() {
const packageRoot = new URL('../../packages/', import.meta.url);
const packages = await glob(['*/package.json', '*/*/package.json'], {
cwd: fileURLToPath(packageRoot),
expandDirectories: false,
ignore: ['**/node_modules/**'],
});
await Promise.all(
packages.map(async (pkg) => {

View file

@ -273,6 +273,7 @@ export async function generateLookupMap({
`${relContentDir}**/*${getExtGlob([...dataEntryExts, ...contentEntryExts])}`,
{
absolute: true,
expandDirectories: false,
cwd: fileURLToPath(root),
},
);