# Yarn workspaces and Ember

**URL:** <https://discuss.emberjs.com/t/yarn-workspaces-and-ember/15672>\
**Category:** Uncategorized\
**Created:** [October 17, 2018, 3:54pm UTC](https://discuss.emberjs.com/t/yarn-workspaces-and-ember/15672 "2018-10-17T15:54:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![lennyburdette](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/lennyburdette/32/13794_2.png) [@lennyburdette](https://discuss.emberjs.com/u/lennyburdette)\
**Post date:** [October 22, 2018, 5:22pm UTC](https://discuss.emberjs.com/t/yarn-workspaces-and-ember/15672/3 "2018-10-22T17:22:02Z")

</div>

Hi, I wrote that blog post. 😁

If I’m reading this correctly:

> My workspace root is the Ember app and all of the workspaces are subdirectories in `lib` under the Ember application.

… your project looks like this?

```sh
package.json # with "workspaces" config
ember-cli-build.js
app/
lib/
├── some-package/
├── ├── package.json
├── ├── index.js
├── another-package/
├── ├── package.json
├── ├── index.js

```

Yeah, I don’t think that’ll work. The top-level “package” shouldn’t be a real package and generally doesn’t have its own dependencies. You don’t have to nest projects under a “packages” directory, but it’s very common in monorepos like babel so I used that as the example layout in the blog post.

My current project layout looks like this:

```sh
package.json
.eslintrc.js # and other dotfiles
team-one/
├── engine-a/
├── ├── package.json
├── ├── index.js
├── ├── addon/
├── addon-b/
├── ├── package.json
├── ├── index.json
├── ├── addon/
├── ├── app/
team-two/
├── ├── engine-c/
... # more packages
host-application/
├── package.json
├── ember-cli-build.js

```

The top-level package.json is just:

```json
{
  "private": true,
  "workspaces": [
    "host-application",
    "team-one/*",
    "team-two/*"
  ]
}

```

Hope this helps!

---

_[View the full topic](https://discuss.emberjs.com/t/yarn-workspaces-and-ember/15672)._
