Closed samesfahani-tuplehealth closed 2 years ago
Yarn is intercepting the --
before it reaches turbo. Adding --
to the turbo invocation fixed this issue for me:
"scripts": {
"test": "turbo run test --"
},
Yarn is intercepting the
--
before it reaches turbo. Adding--
to the turbo invocation fixed this issue for me:"scripts": { "test": "turbo run test --" },
I was having the same problem, then I used this solution and now if I try to use any option it is ignored.
For example:
I try to run yarn build --filter=foo -- bar
What's being executed is turbo run build -- bar
What version of Turborepo are you using?
1.4.3
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
According to docs:
I have a script in my
package.json
as so:and in my package's
packages/whatever/package.json
I have:In my previous set up I might run something like
yarn test foo
and that would get passed through to Jest to target files withfoo
in their name. However, I am seeing this outputOk no problem, I tried running
yarn test -- foo
to accommodate. I get the same error with a warning now:It seems like the command that gets run is
turbo run test foo
which is not valid since it is looking for a task calledfoo
. Of course if I runturbo run test -- foo
, things behave as desired but it still remains unknown why I can't pass it through via Yarn.Expected Behavior
I would expect the final command to be resolved to
jest foo
.To Reproduce
Should be fairly trivial to reproduce from any starter (see text/screenshots above).