-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
astro build to non-project directory adds TypeScript d.ts files #10610
Comments
Can you make a minimal project where this happens? It could be a GH repo since you said this can't be reproduced online. I tested with Astro 4.5.12 for the example projects (building statically and for SSR) and everything is being generated correctly, I got no |
Hello @m-radzikowski. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
Hey, sure, here is the repo with reproduction: https://github.com/m-radzikowski/astro-issue-10610 It's a fresh, clean project with all default options and only one file created in |
Confirming the reproduction. Thanks @m-radzikowski |
If anyone wants to help, this should be an easy fix |
I am up for getting this done! |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
In astro project with TypeScript, running
astro build --outDir ../dist
writes.d.ts
files to the output dir.The files include
types.d.ts
from.astro/
but also other types added by plugins, for exampleicon.d.ts
from astro-icon.This does not happen if we build to the dir
./dist
or any child like./sub/dir
. But it always happen when we build to a dir outside the project, like../dist
.What's the expected result?
The output dir should not contain
.d.ts
files.Link to Minimal Reproducible Example
not reproducible online
Participation
The text was updated successfully, but these errors were encountered: