-
Notifications
You must be signed in to change notification settings - Fork 10
Configure deps better using Lerna #261
Comments
@nicholaschiang you want to get rid off common "package.json" ? |
Yup @OrkhanHuseynli! We want to get rid of all the |
@nicholaschiang |
@OrkhanHuseynli The Does that make sense? |
@nicholaschiang hmm..... by aggregate you mean, copy deps defined in packages.json to the common package.json? |
Yup, for individual you're correct! But for aggregate, we want the first option you described:
Because the only point of that file is to check if all of our deps are up to date. Also, Lerna can automatically hoist shared dependencies to a top-level
|
@nicholaschiang thanks |
Right now we have some dependencies that are shared across sub-packages contained in the
package.json
in their top level directories (e.g.firebase
is listed as a dependency in thepackage.json
insrc/app
and insrc/site
).We want to move everything to each sub-package (i.e. duplicate dependencies that are hoisted automatically with Lerna). See Lerna's best practices for more information.
One way to test if you've successfully completed what I want here is to remove all of our
node_modules
directories and run onelerna bootstrap
. That should install everything you need to build (minus perhaps somedevDependencies
that should be specified in a top-levelpackage.json
).Also note that this gets a little bit more difficult with David because we want to be able to track that all of our deps are up to date (in every sub-package).
The text was updated successfully, but these errors were encountered: