use project name for package.json name in init Command
Opened this issue · 1 comments
Description
When running the command npx nuxi@latest init <project-name>
, the package.json
's name
is always initialized with nuxt-app
I am aware that we are fetching the files from the templates but do you think that would be possible to make it dynamic to match the <project-name>
?
usecase
This enhancement would improve consistency and streamline the initialization process for new Nuxt projects specially in monorepo projects I'd say.
To add to this, it would also fix an error when initializing multiple Nuxt projects in e.g. Bun Monorepo.
If, for example, you initialize a Nuxt project in packages/base
(with the intention of extending it) and don't manually change the name
property in package.json, if you initialize another project in apps/myapp
the dependency install will fail.