cli icon indicating copy to clipboard operation
cli copied to clipboard

use project name for package.json name in init Command

Open arashsheyda opened this issue 1 year ago • 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.

arashsheyda avatar May 28 '24 17:05 arashsheyda

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.

Eckhardt-D avatar May 30 '24 05:05 Eckhardt-D