Skip to content

Commit 283faff

Browse files
authored
Merge pull request total-typescript#14 from emanuel-sol/fix-command-failed-error
Program Errors if space in path
2 parents c23b10f + c828837 commit 283faff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/exercise.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ chokidar.watch(exerciseFile).on("all", (event, path) => {
4242
console.clear();
4343
if (containsVitest) {
4444
console.log("Running tests...");
45-
execSync(`vitest run ${exerciseFile} --passWithNoTests`, {
45+
execSync(`vitest run "${exerciseFile}" --passWithNoTests`, {
4646
stdio: "inherit",
4747
});
4848
}
4949
console.log("Checking types...");
50-
execSync(`tsc ${exerciseFile} --noEmit --strict`, {
50+
execSync(`tsc "${exerciseFile}" --noEmit --strict`, {
5151
stdio: "inherit",
5252
});
5353
console.log("Typecheck complete. You finished the exercise!");

0 commit comments

Comments
 (0)