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

Yarn workspaces support #20

Closed
Yzrsah opened this issue May 4, 2019 · 1 comment
Closed

Yarn workspaces support #20

Yzrsah opened this issue May 4, 2019 · 1 comment

Comments

@Yzrsah
Copy link

Yzrsah commented May 4, 2019

It would be great if syncpack could work with yarn workspaces to help synchronize package versions across workspaces. A syncpack command specifying the root package.json could automatically use globs for workspaces.

@JamieMason
Copy link
Owner

JamieMason commented May 6, 2019

Thanks @Yzrsah, there is similar support for Lerna so adding Yarn Workspaces support should hopefully be fairly approachable to you. The function that would need changing is getSources and its test suite is at /src/lib/get-packages.spec.ts, it is tested as an implementation detail of getPackages.

Your tests I think would need to mock out a package.json file which contains Yarn's workspaces property and assert that getPackages returns the expected package.json files.

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.

2 participants