Skip to content

Commit

Permalink
fix: update @clack/prompts (#9346)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Mar 7, 2023
1 parent 8114c65 commit 696fec9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-beans-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

fix: prevent duplicated lines in project creation CLI
3 changes: 3 additions & 0 deletions packages/create-svelte/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const options = await p.group(
template: () =>
p.select({
message: 'Which Svelte app template?',
// @ts-expect-error i have no idea what is going on here
options: fs.readdirSync(dist('templates')).map((dir) => {
const meta_file = dist(`templates/${dir}/meta.json`);
const { title, description } = JSON.parse(fs.readFileSync(meta_file, 'utf8'));
Expand All @@ -65,10 +66,12 @@ const options = await p.group(
options: [
{
label: 'Yes, using JavaScript with JSDoc comments',
// @ts-expect-error :shrug:
value: 'checkjs'
},
{
label: 'Yes, using TypeScript syntax',
// @ts-expect-error :shrug:
value: 'typescript'
},
{ label: 'No', value: null }
Expand Down
2 changes: 1 addition & 1 deletion packages/create-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bin": "./bin.js",
"main": "./index.js",
"dependencies": {
"@clack/prompts": "^0.6.0",
"@clack/prompts": "^0.6.3",
"kleur": "^4.1.5"
},
"devDependencies": {
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 696fec9

Please sign in to comment.