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: add opentelemetry/core as a dependency to package.json #128

Closed
wants to merge 1 commit into from

Conversation

Aghassi
Copy link
Contributor

@Aghassi Aghassi commented Apr 25, 2024

Solves #127

This will fix support for package managers like pnpm that require you to be very explicit about your dependencies

Which problem is this PR solving?

Short description of the changes

Abides by requirements outlined here https://pnpm.io/how-peers-are-resolved

Given this package doesn't produce a bundle and is distributed using transpiled source code you still need the dependency manager to have the user resolve what is imported. The source code of this project directly imports this package https://github.com/search?q=repo%3Ahoneycombio%2Fhoneycomb-opentelemetry-web%20%22%40opentelemetry%2Fcore%22&type=code, thus this project relies on its presence.

How to verify that this has the expected result

Import this project and try to run it through webpack using pnpm as the package manager for the project. It will fail because the package I'm adding in this diff is never resolved in node_modules

@Aghassi Aghassi requested review from a team as code owners April 25, 2024 17:29
@Aghassi Aghassi force-pushed the patch-1 branch 2 times, most recently from 082eb2b to ae4275f Compare April 25, 2024 17:59
@Aghassi Aghassi changed the title add opentelemetry/core as a peerdependency to package.json fix: add opentelemetry/core as a peerdependency to package.json Apr 25, 2024
@pkanal
Copy link
Contributor

pkanal commented Apr 30, 2024

Thank you so much for your contribution! Since this is being imported directly by the source code, could you update it to be a direct dependency instead?

Solves honeycombio#127

This will fix support for package managers like `pnpm` that require you to be very explicit about your dependencies
@Aghassi
Copy link
Contributor Author

Aghassi commented Apr 30, 2024

@pkanal done

@Aghassi Aghassi changed the title fix: add opentelemetry/core as a peerdependency to package.json fix: add opentelemetry/core as a dependency to package.json Apr 30, 2024
@pkanal
Copy link
Contributor

pkanal commented May 1, 2024

@Aghassi due to some setup issues on our side, forked PRs are not running the CircleCI workflow. I have just updated it to run but I think I will have to close / reopen this PR. Going to try that now.

@MustafaHaddara
Copy link
Contributor

Thank you so much @Aghassi! We had merged other PRs that introduced merge conflicts onto your PR and we wanted to get this merged quickly so we've gone ahead and resolved those for you in #136

MustafaHaddara added a commit that referenced this pull request May 1, 2024
Solves #127
Closes #128 

This will fix support for package managers like `pnpm` that require you
to be very explicit about your dependencies

## Which problem is this PR solving?

Closes #128 

@Aghassi contributed a fix in that PR but we merged other PRs and
created merge conflicts. This PR resolves those merge conflicts on their
behalf.

Co-authored-by: David <[email protected]>
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.

package.json is missing @opentelemetry/core in peerDependencies
3 participants