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

fix: fix syntax not supported in all circumstances for package.json override #360

Merged
merged 1 commit into from
Nov 12, 2022
Merged

fix: fix syntax not supported in all circumstances for package.json override #360

merged 1 commit into from
Nov 12, 2022

Conversation

mpopv
Copy link
Contributor

@mpopv mpopv commented Nov 12, 2022

Overview

Yet another override fix. There are several different ways to reference overrides: nested objects, various string formats, etc. Apparently they are not all equivalent - the "package": "other-package" syntax is supported in some but not all circumstances; as it will successfully apply the override if you clone and install but not if you clone and delete package-lock and then install. Switching to "package": "npm:other-package@^1.0.0" fixes this issue.

Legal

This project is available under the Apache 2.0 License.

@mpopv mpopv requested a review from sheilaXu November 12, 2022 00:20
@mpopv mpopv marked this pull request as ready for review November 12, 2022 00:45
@mpopv mpopv merged commit 7b97dd1 into awslabs:main Nov 12, 2022
@mpopv mpopv deleted the override-fix branch November 12, 2022 00:46
@github-actions github-actions bot mentioned this pull request Nov 12, 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.

None yet

2 participants