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] Resolve properly package.json dependency aliases #608

Merged
merged 7 commits into from
May 4, 2023

Conversation

d3xter666
Copy link
Contributor

Resolves: SAP/ui5-tooling#809

When shimmed packages are defined as dependency aliases in the package.json, they are being excluded from the bundlig as the packager eventually finds the real package and its path and as it's not defined in the shim, but its alias, it gets ignored.

We need to provide more robust discovery in order to handle those cases:

@d3xter666 d3xter666 requested a review from a team May 2, 2023 07:00
@coveralls
Copy link

coveralls commented May 2, 2023

Coverage Status

Coverage: 95.794% (-0.02%) from 95.815% when pulling 53edb46 on fix-dependency-aliases into 4a69f2c on main.

@flovogt flovogt changed the title [FIX] Resolve properly pakcage.json dependency aliases [FIX] Resolve properly package.json dependency aliases May 2, 2023
@flovogt flovogt requested a review from a team May 2, 2023 09:20
Comment on lines 76 to 77
// This version of library.d has an additional dependency to library.f,
// which in turn has a dependency to library.g
Copy link
Member

Choose a reason for hiding this comment

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

I think this comment does not apply here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed. Thanks!

@d3xter666 d3xter666 merged commit f8753e5 into main May 4, 2023
@d3xter666 d3xter666 deleted the fix-dependency-aliases branch May 4, 2023 11:12
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.

Shims not bundled if installed under npm alias for v3
4 participants