Let automatically set name in package.json based on name of folder. #2050
Labels
feature / enhancement
New feature or request
p2-nice-to-have
SvelteKit cannot be used by a small number of people, quality of life improvements, etc.
pkg:create-svelte
Describe the problem
When I use
npm init -y
it automatically set name in package.json to same as name of folder. It would be nice to have same thing withnpm init svelte@next
.Describe the proposed solution
Let say I'm in folder
foo
.if I use command
npm init svelte@next
or resp.npm init svelte@next .
, it should automatically set name tofoo
.if I use command
npm init svelte@next bar
, it should automatically set name tobar
,it should also convert all capitals letter and remove invalid characters (or throw error like npm init -y), that doesn't use pattern:
Alternatives considered
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: