Consolidate dependencies and remove duplicates#4883
Consolidate dependencies and remove duplicates#4883dcousens merged 1 commit intoJedWatson:masterfrom
Conversation
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 2060f64:
|
08e28dd to
dbfc3a9
Compare
There was a problem hiding this comment.
Thanks for the PR! Can you keep all the dependencies for the root package and docs package in dependencies instead of splitting it into devDependencies and dependencies? For those packages, it doesn't really matter whether it's a dependency or dev dependency since it will not ever get installed by another package.
|
I'm curious how come you prefer to put everything in |
|
@jgeurts It's purely a stylistic choice (imo) that Jed said he preferred in our maintainers meeting when we looked at this PR. Since those packages are never used outside of this repository there is no functional difference between them being dependencies or devDependencies so might as well just stick them all in dependencies. (Personally I prefer the semantic difference between dependencies and devDependencies even for apps where it doesn't make a functional difference since it still designates which dependencies are packaged by Webpack and used at runtime, but to each his own and it's Jed's project.) |
|
Or I guess another way of thinking about it is that the docs and root packages are primarily Node packages and the "dev dependencies" are in fact a runtime dependency since the main function of those packages is to start a Webpack build. |
Cool, thanks for the insight! |
55948c5 to
cbd408f
Compare
* Move most dependencies to be devDependencies * Reduce duplication of dependencies
c28243b to
2060f64
Compare
|
This is always going to be an arbitrary balance, but I think this is helpful enough as is that we can refine anything else in future pull requests. |
Hi! Hope this PR finds you well. I'm not sure how useful this is since it seems that preconstruct does similar at build time.
I ran through all of the scripts in package.json and things appear to work as they did prior to this PR.