DEV Community

Discussion on: Share EmberJS common code between apps

Collapse
 
michalbryxi profile image
Michal Bryxí

Awesome. Thanks for the tip. Did not know about workspaces. Tried and unfortunately found (at least) two Ember packages I'm using that will blow up when using yarn workspaces. Reported and it will hopefully be fixed soon. Then I will create a new article and deprecate this one :)

Collapse
 
jbailey4 profile image
Joshua Bailey

No problem! yeah, I ran into some churn too while getting a large Ember monorepo transitioned to workspaces. There is a noHoist key you can provide in the root package.json, which will prevent the specified packages getting hoisted to the root of the project. This worked for most of my issues, but it’s not ideal to have this list long.