Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 283faff

Browse filesBrowse 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
Copy full SHA for 283faff

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎scripts/exercise.js

Copy file name to clipboardExpand all lines: scripts/exercise.js
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.