Skip to content

Commit 37241ea

Browse files
committed
Improved exercise
1 parent e6f6b8f commit 37241ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/exercise.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ const compilerOptions = Object.entries(tsconfig.compilerOptions)
1313
}
1414
return "";
1515
}
16-
return `--${key} ${value}`;
16+
17+
if (Array.isArray(value)) {
18+
return `--${key} ${value.join(" ")}`;
19+
}
20+
21+
return `--${key} ${JSON.stringify(value)}`;
1722
})
1823
.join(" ");
1924

0 commit comments

Comments
 (0)