-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingreproducibleThis issue can be successfully reproducedThis issue can be successfully reproducedupholdedReal issues without formal reproductionReal issues without formal reproduction
Description
- I'd be willing to implement a fix
Describe the bug
{
"scripts": {
"foo": "yarn --cwd .yarn exec cd"
}
}
Running yarn foo
prints out the current path, not .yarn
as specified in --cwd
.
Running yarn --cwd .yarn exec cd
directly in the shell produces the correct output.
To Reproduce
Use the following package.json
{
"name": "foo",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"foo": "yarn --cwd .yarn exec cd"
}
}
Run yarn foo
from the package directorty.
Environment if relevant
- OS: Windows 10 v2004
- Node version: 12.13.1
- Yarn version: 2.4.0
rattrayalex, 0sama, scowalt, DoodlesEpic, basickarl and 1 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingreproducibleThis issue can be successfully reproducedThis issue can be successfully reproducedupholdedReal issues without formal reproductionReal issues without formal reproduction