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

pnpm init should do more than creating package.json file #7006

Open
1 task done
KSXGitHub opened this issue Aug 30, 2023 · 2 comments
Open
1 task done

pnpm init should do more than creating package.json file #7006

KSXGitHub opened this issue Aug 30, 2023 · 2 comments

Comments

@KSXGitHub
Copy link
Contributor

Contribution

Describe the user story

  1. In Rust, cargo init would create a .git, .gitignore, and Cargo.toml. I think pnpm init should do similar.

Describe the solution you'd like

pnpm init should create a .git directory if not exist, a .gitignore with node_modules as content if not exist, and a package.json.

pnpm init --workspace should create a directory named packages and a file named pnpm-workspace.yaml.

Describe the drawbacks of your solution

I don't think there is a drawback.

Describe alternatives you've considered

git clone from template repos is too verbose.

@KSXGitHub
Copy link
Contributor Author

What do you think, @zkochan?

@zkochan
Copy link
Member

zkochan commented Sep 6, 2023

We already have the pnpm create command and there must be existing projects for bootstrapping different types of projects. I'd rather recommend users using those instead of pnpm init. We could list them in the docs.

I am OK with pnpm init --workspace that creates a pnpm-workspace.yaml.

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

No branches or pull requests

2 participants