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

auto add workspaces to root package.json #577

Closed
1 of 2 tasks
GiladShoham opened this issue Jan 7, 2018 · 0 comments
Closed
1 of 2 tasks

auto add workspaces to root package.json #577

GiladShoham opened this issue Jan 7, 2018 · 0 comments

Comments

@GiladShoham
Copy link
Member

GiladShoham commented Jan 7, 2018

If yarn workspaces is enabled we should validate that the components dirs are configured in the workspaces in the root's package.json
During import we should make sure that the paths:
componentsDefaultDirectory
dependenciesDirectory
are defined.
If we do import with -p we should add this path to the workspaces

We will add a new key to bit.json called manageWorkspaces which is boolean define wether to auto add workspaces to package.json

  • add field to bit.json manageWorkspaces
  • add imported components to package.json (workspaces field)
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