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: Set legacy-peer-deps npm config #64

Merged
merged 4 commits into from
Sep 26, 2023
Merged

feat: Set legacy-peer-deps npm config #64

merged 4 commits into from
Sep 26, 2023

Conversation

mhan83
Copy link
Contributor

@mhan83 mhan83 commented Sep 26, 2023

Set legacy-peer-deps to true, unless explicitly false or "false".

Some customer node dependencies may declare the test framework as a peer dependency (e.g. @testing-library/testcafe). As of npm@7, peer dependencies are installed automatically. And even though we account for this by how we handle package.json and package-lock.json, setting legacy-peer-deps explicitly to true provides a bit of self-documentation on the expected behaviour for peer deps and provides some redundancy.

Opted to make this configurable in case we want to modify this behaviour in the future without needing to do a runner release.

DEVX-2573

@mhan83 mhan83 merged commit b94278d into main Sep 26, 2023
1 check passed
@mhan83 mhan83 deleted the devx-2573-peer branch September 26, 2023 18:16
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