node_modules
in dist
folder
#7933
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
node_modules
in dist
folder
#7933
What version of
astro
are you using?2.10.0
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
macOS
What browser are you using?
N/A (build related)
Describe the Bug
This is related to the Starlight integration but appears to be an issue with Astro itself. This only showed up for Astro versions
2.5.6
and AFTER.2.5.5
and before run as expected.There appear to be 2 files that aren't cleaned up as part of running
pnpm astro build
:dist/node_modules/.pnpm/@[email protected][email protected]/node_modules/@astrojs/starlight/404.astro.mjs
dist/node_modules/.pnpm/@[email protected][email protected]/node_modules/@astrojs/starlight/index.astro.mjs
The content inside the
index.astro.mjs
looks like this:The contents of
404.astro.mjs
is the same but referencing the 404 files instead.Note: I wasn't able to get this to reproduce in Stackblitz but got it locally on a macOS M1 Pro (macOS 13.4 (22F66)) and also on a GitHub Codespace environment.
Original issue in the Starlight repo: withastro/starlight#458
Potentially related: #7397, #7193
What's the expected result?
The
node_modules
folder shouldn't be included in thedist
folder (which is resulting in some downstream tooling thinking a build output parameter isn't configured properly since there's anode_modules
folder).Link to Minimal Reproducible Example
https://github.com/lorenzolewis/starlight-bug-test
Participation
The text was updated successfully, but these errors were encountered: