diff --git a/.github/scripts/announce.mjs b/.github/scripts/announce.mjs index 16daf09711..4cc91fbc21 100755 --- a/.github/scripts/announce.mjs +++ b/.github/scripts/announce.mjs @@ -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) => { diff --git a/packages/astro/src/content/vite-plugin-content-virtual-mod.ts b/packages/astro/src/content/vite-plugin-content-virtual-mod.ts index 5f7ff2d8f0..7244562234 100644 --- a/packages/astro/src/content/vite-plugin-content-virtual-mod.ts +++ b/packages/astro/src/content/vite-plugin-content-virtual-mod.ts @@ -273,6 +273,7 @@ export async function generateLookupMap({ `${relContentDir}**/*${getExtGlob([...dataEntryExts, ...contentEntryExts])}`, { absolute: true, + expandDirectories: false, cwd: fileURLToPath(root), }, );