-
Notifications
You must be signed in to change notification settings - Fork 116
Conversation
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.
Thanks
I'm not sure about that change... Not sure if when the usage of a dependency is only within types then that warrants a peer dependency. This forces NPM to install the webpack dependency in projects that use Types are not really a requirement for using this package, thus I'm not sure if this is really a correct change. You could say that if I don't want I'm not sure what are the typical conventions in those kind of scenarios but something feels off about this change due to how NPM handles such cases. |
I guess I could also add an argument that Webpack 4 doesn't come with types (the types are provided through I would opt for reverting this change and instead maybe mentioning this in the documentation since the situation is complicated with webpack. |
Sounds reasonable, however, it would be still somewhat useful to provide this information to the end user. |
Based on my past experience, I don't think that would work. The npm would still install the dependency as a production one. It would just not complain if it failed installing. |
As per npm/rfcs#221 (comment), setting I am in favour of using |
I'm all for trying and would be glad if it worked . |
Releasing as |
Note that |
add webpack as peerDependency as webpack is used in index.d.ts for typing
sentry-webpack-plugin/index.d.ts
Line 1 in 4e85f79