-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: master
Are you sure you want to change the base?
Conversation
…encies but are required by the map-layers package at runtime.
@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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"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", |
There was a problem hiding this comment.
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
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 directdependency
, or be in bothdevDependency
andpeerDependency
.devDependencies
to directdependencies
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.