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

Complete pnpm init command #7711

Open
1 task
hitesh-can-code opened this issue Feb 24, 2024 · 4 comments · May be fixed by #8113
Open
1 task

Complete pnpm init command #7711

hitesh-can-code opened this issue Feb 24, 2024 · 4 comments · May be fixed by #8113

Comments

@hitesh-can-code
Copy link

hitesh-can-code commented Feb 24, 2024

Contribution

Describe the user story

no need

Describe the solution you'd like

no need

Describe the drawbacks of your solution

no need

Describe alternatives you've considered

no need

@zkochan
Copy link
Member

zkochan commented Feb 26, 2024

What is this issue about? The pnpm init command is implemented.

@hitesh-can-code
Copy link
Author

hitesh-can-code commented Feb 26, 2024

pnpm init is like npm init --yes, it doesn't ask questions and we could provide more features to it

@josh-hemphill
Copy link

I'm going to try my hand at a PR adding the flags to init.
npm has actually deprecated using the config options instead of the cli flags as introduced in pnpm with #4422 in favor of the flags.

Since adding --yes would be a breaking change, I think I might queue that up in a separate PR than the other flags, but I'll try to get the functionality into the main PR so that if it's considered for inclusion in a major version, than the only change really will be the default value/behavior.

@josh-hemphill
Copy link

I've got an initial draft of the PR now and would welcome feedback; as it works now you could globally set your npmrc to get the same prompts as npm gives with

init-ask=npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants