Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

use project name for package.json name in init Command #421

Open
arashsheyda opened this issue May 28, 2024 · 1 comment · May be fixed by #422
Open

use project name for package.json name in init Command #421

arashsheyda opened this issue May 28, 2024 · 1 comment · May be fixed by #422

Comments

@arashsheyda
Copy link
Member

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.

@Eckhardt-D
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants