Skip to content

Commit

Permalink
fix(#7933, plt-789): cleanup dotfiles during build
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Aug 15, 2023
1 parent 53ad9ef commit a3f45ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/astro/src/core/build/static-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ async function cleanServerOutput(opts: StaticBuildOptions) {
// The SSR output is all .mjs files, the client output is not.
const files = await glob('**/*.mjs', {
cwd: fileURLToPath(out),
// Important! Also cleanup dotfiles like `node_modules/.pnpm/**`
dot: true,
});
if (files.length) {
// Remove all the SSR generated .mjs files
Expand Down

0 comments on commit a3f45ff

Please sign in to comment.