next.js
6efe76f9 - CNA: exclude ts(js)conf.json as well as .git folder (#61412)

Commit
1 year ago
CNA: exclude ts(js)conf.json as well as .git folder (#61412) ### What? On windows the .git/* files are read only, when the CNA "import path" script attempts to open one of the .git/* files ### Why? attempting to open any of the .git/* files results in an error thrown by CNA and CNA exists, hence not finishing the setup of a new project ### How? My suggested fix uses the fast-glob ignore option to exclude the .git folder, I also moved the the ts(js)config.json exclusion into the ignore (was an "if" before) - Fixes #61411 - Discussion https://github.com/vercel/next.js/discussions/61261
Author
Parents
Loading