Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT packages] Convert to monorepo for RFC #395 #5919

Merged
merged 2 commits into from
Apr 6, 2019

Conversation

HeroicEric
Copy link
Member

@HeroicEric HeroicEric commented Mar 19, 2019

@HeroicEric HeroicEric force-pushed the heroiceric/lerna-monorepo branch 2 times, most recently from 9c10dc6 to c5a43d7 Compare March 20, 2019 00:46
HeroicEric added a commit to HeroicEric/data that referenced this pull request Mar 20, 2019
> Note: Unlike the `--global` flag in npm, `global` is a command which must
> immediately follow `yarn`. Entering `yarn add global package-name` will add
> the packages named `global` and `package-name` locally instead of adding
> package-name globally.

https://yarnpkg.com/lang/en/docs/cli/global/#toc-yarn-global

---

I noticed this while working on
emberjs#5919, where the following error was
starting to show up in CI after converting to use yarn workspaces:

```
yarn add v1.13.0
error Running this command will add the dependency to the workspace root rather than the workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
```
@HeroicEric HeroicEric force-pushed the heroiceric/lerna-monorepo branch from 738bb97 to 92a51ad Compare March 20, 2019 14:51
HeroicEric added a commit to HeroicEric/data that referenced this pull request Mar 20, 2019
This adds a script to `package.json` to run our feature linting script
via `yarn lint:features` rather than using `./bin/lint-features`
directly.

This makes it easier to run the script from the root package after
converting to a monorepo like in emberjs#5919
@HeroicEric HeroicEric force-pushed the heroiceric/lerna-monorepo branch from 92a51ad to 850afc9 Compare March 20, 2019 15:26
runspired pushed a commit that referenced this pull request Mar 21, 2019
This adds a script to `package.json` to run our feature linting script
via `yarn lint:features` rather than using `./bin/lint-features`
directly.

This makes it easier to run the script from the root package after
converting to a monorepo like in #5919
runspired pushed a commit that referenced this pull request Mar 21, 2019
> Note: Unlike the `--global` flag in npm, `global` is a command which must
> immediately follow `yarn`. Entering `yarn add global package-name` will add
> the packages named `global` and `package-name` locally instead of adding
> package-name globally.

https://yarnpkg.com/lang/en/docs/cli/global/#toc-yarn-global

---

I noticed this while working on
#5919, where the following error was
starting to show up in CI after converting to use yarn workspaces:

```
yarn add v1.13.0
error Running this command will add the dependency to the workspace root rather than the workspace itself, which might not be what you want - if you really meant it, make it explicit by running this command again with the -W flag (or --ignore-workspace-root-check).
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
```
@runspired runspired requested a review from rwjblue March 21, 2019 01:09
@HeroicEric HeroicEric force-pushed the heroiceric/lerna-monorepo branch 4 times, most recently from 398a07b to e5848bb Compare March 21, 2019 16:51
@runspired runspired force-pushed the heroiceric/lerna-monorepo branch from e5848bb to 0060f31 Compare March 26, 2019 01:33
@runspired runspired changed the title [WIP] Convert to lerna monorepo [FEAT packages] Convert to lerna monorepo Mar 26, 2019
@runspired runspired changed the title [FEAT packages] Convert to lerna monorepo [FEAT packages] Convert to monorepo for RFC #395 Mar 26, 2019
@igorT igorT force-pushed the heroiceric/lerna-monorepo branch 3 times, most recently from 52bb4ad to d5ab6ec Compare April 3, 2019 02:17
@igorT igorT force-pushed the heroiceric/lerna-monorepo branch 7 times, most recently from 4072791 to b20ae3f Compare April 4, 2019 11:40
@igorT
Copy link
Member

igorT commented Apr 4, 2019

It seems like addons which use ED work, but apps are not building/including ED properly, at least when linked locally

@igorT
Copy link
Member

igorT commented Apr 4, 2019

@runspired @HeroicEric when run against Ember Observer, it seems like ember-data/model is not built/exported properly.

@igorT
Copy link
Member

igorT commented Apr 4, 2019

not ok 35 Chrome 73.0 - [120171 ms] - Acceptance: Addons: addon not found
    ---
        actual: >
            null
        stack: >
            TypeError: Cannot set property default of #<Object> which has only a getter

is a bit of a misleading error, but it's caused by the import from ember-data/model not working. Many thanks to @rwjblue for the help

@igorT igorT force-pushed the heroiceric/lerna-monorepo branch 3 times, most recently from b775139 to a59d3e5 Compare April 6, 2019 02:28
HeroicEric and others added 2 commits April 5, 2019 19:29
@igorT igorT force-pushed the heroiceric/lerna-monorepo branch from a59d3e5 to b876a80 Compare April 6, 2019 02:29
@igorT
Copy link
Member

igorT commented Apr 6, 2019

EmberAddons still have a babel problem, so I marked them as allow-fail in travis, and we can figure it out later to not block the PR

@igorT igorT merged commit 1495b78 into emberjs:master Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants