I have run the astro initiatilzation setup in an existing repository and currently have it setup so that Astro is inside a child folder, I moved all the relevant package.json/script commands into the root folder, but whenever I run npm run build it seems to be generating an env.d.ts in a folder that's not the astro folder?
For clarity, this is my current repo structure, with annotated notes explaining my issue:
├── LICENSE
├── README.md
├── package-lock.json
├── package.json
├── panel <--- this is the astro folder
│ ├── README.md
│ ├── astro.config.mjs
│ ├── public
│ │ └── favicon.svg
│ ├── src
│ │ ├── components
│ │ │ └── Card.astro
│ │ ├── env.d.ts
│ │ ├── layouts
│ │ │ └── Layout.astro
│ │ └── pages
│ │ └── index.astro
│ └── tsconfig.json
├── src <--- this is a separate thing
│ ├── encrypt.ts
│ ├── env.d.ts <--- why is this here?
│ └── server.ts
└── tsconfig.json
Should I just install astro manually instead of using the cli tool? I'm not sure how I can get it to stop putting that env.d.ts in the wrong folder... I took a look at https://astro.build/config but I don't think that will help solve this problem?

I event tried doing an absolute path and it's still putting em in the wrong src folder