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

feat: add warning if package.json specifies workspaces #5413

Closed
wants to merge 4 commits into from

Conversation

mjgerace
Copy link

This PR attempts to add a suggestion to use pnpm-workspace.yaml > package.json in cases where a user still has workspaces specified in their package.json file, per #5363 .

@welcome
Copy link

welcome bot commented Sep 26, 2022

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@mjgerace
Copy link
Author

@zkochan please give advice, first contribution and we probably want to add test cases for this + clean it up (maybe provide typings for package.json file, since today the parsed json is any typed)

@zkochan
Copy link
Member

zkochan commented Sep 27, 2022

We already read the package.json file. No need to read it again.

Put the check here: https://github.com/pnpm/pnpm/blob/main/packages/cli-utils/src/readProjectManifest.ts

@zkochan
Copy link
Member

zkochan commented Oct 25, 2022

I have created a new PR: #5547

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

Successfully merging this pull request may close these issues.

None yet

2 participants