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

workspaces throwing warnings in yarn #93

Open
ghost opened this issue Jul 13, 2021 · 3 comments
Open

workspaces throwing warnings in yarn #93

ghost opened this issue Jul 13, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 13, 2021

Tracked this down to clipanion and typanion. Leaving workspaces in 'package.json' causes yarn to whine, even though they're in node_modules, which I figured it'd ignore, but noooooooo

➜ root git:(master) ✗ yarn install
yarn install v1.22.10
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.

@arcanis
Copy link
Owner

arcanis commented Jul 13, 2021

That seems unlikely, unless perhaps you made an overarching workspace glob pattern like ** or similar.

@ghost
Copy link
Author

ghost commented Jul 13, 2021

Try it yourself :)

➜ ~ mkdir temp
➜ ~ cd temp
➜ temp yarn init
yarn init v1.22.10
question name (temp):
question version (1.0.0):
question description:
question entry point (index.js):
question repository url:
question author:
question license (MIT):
question private:
success Saved package.json
✨ Done in 2.82s.
➜ temp yarn add clipanion
yarn add v1.22.10
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > clipanion@3.0.0" has unmet peer dependency "typanion@*".
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
[4/4] 🔨 Building fresh packages...

success Saved lockfile.
warning Workspaces can only be enabled in private projects.
warning Workspaces can only be enabled in private projects.
success Saved 2 new dependencies.
info Direct dependencies
└─ clipanion@3.0.0
info All dependencies
├─ clipanion@3.0.0
└─ typanion@3.3.2
✨ Done in 0.39s.

@swansontec
Copy link

swansontec commented Nov 10, 2021

I am getting the same issue, and the reproduction steps above match my basic setup. This is with Yarn v1.22.17.

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

No branches or pull requests

2 participants