move cwd as the first argument to yarn
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -95,11 +95,11 @@ async function main() {
|
||||
|
||||
if (failed) {
|
||||
if (!fix) {
|
||||
const command = `yarn dedupe${
|
||||
const command = `yarn${
|
||||
lockFile.directoryRelativeToProjectRoot === '.'
|
||||
? ''
|
||||
: ` --cwd ${lockFile.directoryRelativeToProjectRoot}`
|
||||
}`;
|
||||
} dedupe`;
|
||||
const padding = ' '.repeat(Math.max(0, 85 - 6 - command.length));
|
||||
console.error('');
|
||||
console.error(
|
||||
|
||||
Reference in New Issue
Block a user