ember-try icon indicating copy to clipboard operation
ember-try copied to clipboard

Yarn workspaces

Open anehx opened this issue 3 years ago • 3 comments

Hi there!

I've tried running ember-try within a monorepo with yarn workspaces but I couldn't get it to work. I always go the error No ember-cli-build.js found.. This makes total sense to me, since the _runCommand method always uses the project root:

https://github.com/ember-cli/ember-try/blob/61fed6b79109bcccf981ff4ea0638f3adfa73652/lib/tasks/try-each.js#L130-L132

Shouldn't this take the root of the current workspace? Is there an example of a project using the workspaces feature?

anehx avatar Sep 26 '22 12:09 anehx

I've had no issue with it in ember-data, though you'll want to look at the code from a release or two back as we've recently converted to pnpm.

runspired avatar Oct 30 '22 03:10 runspired

I just checked the config of ember-data a few releases back, it's not using useWorkspaces so I don't think we can compare this issue with the situation in ember data.

anehx avatar Nov 01 '22 08:11 anehx

May be a bug with that specifically, but we do use try with workspaces within multiple packages

runspired avatar Nov 01 '22 22:11 runspired