Skip to content

Commit

Permalink
chore: update example & readme (bombshell-dev#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpreston321 authored Aug 10, 2023
2 parents e08e7b5 + 6c555fc commit ef7d414
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .changeset/stale-pans-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
6 changes: 5 additions & 1 deletion examples/basic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ async function main() {
p.select({
message: `Pick a project type within "${results.path}"`,
initialValue: 'ts',
maxItems: 5,
options: [
{ value: 'ts', label: 'TypeScript' },
{ value: 'js', label: 'JavaScript' },
{ value: 'rust', label: 'Rust' },
{ value: 'go', label: 'Go' },
{ value: 'python', label: 'Python' },
{ value: 'coffee', label: 'CoffeeScript', hint: 'oh no' },
],
}),
Expand Down Expand Up @@ -66,7 +70,7 @@ async function main() {
if (project.install) {
const s = p.spinner();
s.start('Installing via pnpm');
await setTimeout(5000);
await setTimeout(2500);
s.stop('Installed via pnpm');
}

Expand Down
2 changes: 1 addition & 1 deletion packages/prompts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ import { spinner } from '@clack/prompts';

const s = spinner();
s.start('Installing via npm');
// Do installation
// Do installation here
s.stop('Installed via npm');
```

Expand Down

0 comments on commit ef7d414

Please sign in to comment.