Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Let automatically set name in package.json based on name of folder. #2050

Closed
Mlocik97 opened this issue Jul 31, 2021 · 1 comment · Fixed by #2415
Closed

Let automatically set name in package.json based on name of folder. #2050

Mlocik97 opened this issue Jul 31, 2021 · 1 comment · Fixed by #2415
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

Comments

@Mlocik97
Copy link
Contributor

Mlocik97 commented Jul 31, 2021

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 with npm 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 to foo.
if I use command npm init svelte@next bar, it should automatically set name to bar,

it should also convert all capitals letter and remove invalid characters (or throw error like npm init -y), that doesn't use pattern:

"^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$"

Alternatives considered

Importance

nice to have

Additional Information

No response

@benmccann benmccann added pkg:create-svelte p2-nice-to-have SvelteKit cannot be used by a small number of people, quality of life improvements, etc. feature / enhancement New feature or request labels Aug 1, 2021
@ambarvm
Copy link
Contributor

ambarvm commented Sep 13, 2021

Can I work on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants