Quramy / lerna-yarn-workspaces-example

How to build TypeScript mono-repo project with yarn and lerna
MIT License
898 stars 94 forks source link

Why typescript and ava declared both in the root and pkg? #3

Open mtoso opened 6 years ago

mtoso commented 6 years ago

Hi, thanks for making this example. I was wondering why typescript and ava are declared as devDependencies both in the root package.json and inside the single package.

josh08h commented 4 years ago

@mtoso I think you'd still want to declare your dependencies inside the single package. If you were to declare the superset of all workspace package dependencies only in the root package.json then what dependencies should you remove from the root package.json if you were to move a single package outside of the workspace?

josh08h commented 4 years ago

Is there any way to enforce global package versions across the workspace packages such that all packages use the same version of a particular dependency?