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

Bugfix/missing peerdeps #714

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Bugfix/missing peerdeps #714

wants to merge 3 commits into from

Conversation

a-gagnon
Copy link
Contributor

@a-gagnon a-gagnon commented Dec 15, 2023

Add missing peerDependencies that are required at runtime by the map-layers package.
Besides type imports, anything that is used by the package should be a direct dependency, or be in both devDependency and peerDependency.

  • Move some devDependencies to direct dependencies

Found the problem when adding the @itwin/map-layers package to my test-app. I didn't get a warning for missing peerDependency, but it complained about missing @itwin/map-layers-formats at build time.

…encies but are required by the map-layers package at runtime.
@a-gagnon a-gagnon enabled auto-merge (squash) December 15, 2023 15:50
@aruniverse aruniverse disabled auto-merge July 2, 2024 15:34
@bsy-nicholasw
Copy link
Contributor

@a-gagnon This is old and no one approved...does it need additional update before we can complete it?

@a-gagnon
Copy link
Contributor Author

@a-gagnon This is old and no one approved...does it need additional update before we can complete it?

Haven't played with the app since then, but those should really be deps. I think it's fine to approve.

"changes": [
{
"packageName": "@itwin/map-layers",
"comment": "Some packages were pulled as devDependency when they really should be direct dependencies",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"comment": "Some packages were pulled as devDependency when they really should be direct dependencies",
"comment": "Updated dependencies",

@@ -38,6 +38,9 @@
"dependencies": {
"@itwin/itwinui-icons-color-react": "^2.1.0",
"@itwin/itwinui-icons-react": "^2.6.0",
"@itwin/itwinui-react": "^2.11.2",
"@itwin/itwinui-variables": "^2.0.0",
"@itwin/map-layers-formats": "^4.1.2",
Copy link
Member

Choose a reason for hiding this comment

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

why is this a direct dep? is this dep pure / has no side effects?
if its not, needs to be dev + peer dep

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.

3 participants