Skip to content

Commit

Permalink
fix: wrap project name in quotes for CLI scaffolder create-svelte (#1…
Browse files Browse the repository at this point in the history
…2843)

This commit updates the instructions given by the CLI tool that scaffolds the sveltKit project. it wraps the project name in double quotes. This prevents errors when navigating into directories with spaces in their names.
  • Loading branch information
ch33kaboo authored Oct 20, 2024
1 parent b884c94 commit 868a0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-svelte/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ let i = 1;

const relative = path.relative(process.cwd(), cwd);
if (relative !== '') {
console.log(` ${i++}: ${bold(cyan(`cd ${relative}`))}`);
console.log(` ${i++}: ${bold(cyan(`cd "${relative}"`))}`);
}

console.log(` ${i++}: ${bold(cyan(`${package_manager} install`))}`);
Expand Down

0 comments on commit 868a0bc

Please sign in to comment.