move cwd as the first argument to yarn

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-02-04 20:10:44 +01:00
parent d3a9cd3afa
commit 9aac2b0d36
134 changed files with 269 additions and 161 deletions
+2 -2
View File
@@ -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(