ember-cli / ember-cli-update

Update Ember CLI projects
MIT License
278 stars 41 forks source link

Runs on v2 addon with wrong package name #1248

Closed simonihmig closed 1 year ago

simonihmig commented 1 year ago

After #1240, running ecu on a v2 addon gets further along, but it's still not quite right...

The v2 addon blueprint removed the name entry from its root level (monorepo) package.json. But as mentioned elsewhere this seems to cause ecu to run the blueprint with a fallback name of my-project instead of the actual addon's name, and that causes some weird diffs...

This is from running the master branch of ecu on ember-stargate, showing references to files in my-project being deleted by "us":

image

In the log you can see that it is running the blueprint with ember addon my-project ...:

image

Given that we have the right name not readily available in the root package.json anymore, we might want to grab it instead from config/ember-cli-update.json (by adding it there in a new version of the blueprint)?

Or (also) provide a CLI flag to specify it explicitly? (for when we don't have it anywhere, like with today's output of the v2 blueprint)

cc @mansona