Incorrect config file updated using the updateConfig
function when cwd
is missing a trailing slash
#187
Labels
bug
Something isn't working
Environment
Node:
v20.8.1
c12:
2.0.0-beta.1
Reproduction
This issue was identified in the nuxt repo: nuxt/nuxt#28797
Link to reproduce the issue: https://stackblitz.com/edit/stackblitz-starters-ea59nb?file=README.md
Describe the bug
Without a trailing slash at the end of
cwd
, theupdateConfig
ends up modifying the wrong file.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: