Skip to content

Commit

Permalink
do not fail in setupTypeScript.js when there is a .vscode folder alre…
Browse files Browse the repository at this point in the history
…ady (sveltejs#205)
  • Loading branch information
nesro authored Jan 6, 2021
1 parent ebde863 commit b1bdb5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setupTypeScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ if (!argv[2]) {
}

// Adds the extension recommendation
fs.mkdirSync(path.join(projectRoot, ".vscode"))
fs.mkdirSync(path.join(projectRoot, ".vscode"), { recursive: true })
fs.writeFileSync(path.join(projectRoot, ".vscode", "extensions.json"), `{
"recommendations": ["svelte.svelte-vscode"]
}
Expand Down

0 comments on commit b1bdb5c

Please sign in to comment.