yalc
yalc copied to clipboard
Fix yalc push always adding in pure mode for repos with workspaces
Fixes #75.
It's working in pure mode even for a non-monorepo with no yarn workspaces
defined. It tells me to use --no-pure
to override, but when I do that it still prints out that it's operating "purely."
@wclr
@Nantris Unfortunately only the "add" and "link" commands are set up to receive/process the "--pure" flag:
- https://github.com/wclr/yalc/blob/3b834e488837e87df47414fd9917c10f07f0df08/src/yalc.ts#L170
- https://github.com/wclr/yalc/blob/3b834e488837e87df47414fd9917c10f07f0df08/src/yalc.ts#L186
If you're using one of the other commands (eg. "restore"), the command doesn't look for the "pure" flag, so cannot pass it down to the underlying functions that it calls. (which I'm assuming is your scenario; I hit this issue when trying to use "yalc restore" in a monorepo, and wondering why "yalc restore --no-pure" had no difference/effect)