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

Adding a scenario for a nested Monorepo #74

Closed
wants to merge 1 commit into from

Conversation

mxro
Copy link
Contributor

@mxro mxro commented May 6, 2022

Description (What)

For #66 - introduces an additional screnario for nested workspaces.

Did not verify if this would run since I had problems running the unit tests, see #73.

},
{
path: 'workspaces/b/packages/c/package.json',
before: wrapper('c', [], [], [], {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the meaning of [], [], [] here (and why for other wrappers there are less empty arrays)?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're entries that map to dependencies, devDependencies, and peerDependencies. An empty array just skips that particular type: https://github.com/JamieMason/syncpack/blob/master/test/mock.ts#L14. I'll probably change its API to an options object to make it clearer than it is now

@JamieMason
Copy link
Owner

Merged and added to the test suite in e26ab69 and cbdc6cc, thanks a lot.

@JamieMason JamieMason closed this May 29, 2022
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.

2 participants