nksaraf / vinxi

The Full Stack JavaScript SDK
https://vinxi.vercel.app
MIT License
1.33k stars 57 forks source link

[Proposal] Bundle config file to some outdir #314

Open GoodbyeNJN opened 2 weeks ago

GoodbyeNJN commented 2 weeks ago

https://github.com/nksaraf/vinxi/blob/a63eabd27a43af491772126a547a970f4bc7d484/packages/vinxi/lib/load-app.js#L106-L114

The current output directory is the project root directory. After starting dev server, a temporary config file will be generated in the project root directory. It needs to be manually ignored from git, and in some cases, the file will not be automatically deleted after stopping dev server. This is quite annoying.

Instead, I recommend changing the output directory to other directories, such as .temp, node_modules/temp, node_modules/.vinxi/temp, etc. These directories are generally ignored by git and do not matter even if they are not automatically deleted.