Skip to content

Conversation

@43081j
Copy link
Collaborator

@43081j 43081j commented Apr 3, 2025

Exports a SpinnerResult which is the API spinner produces.

Also adds initial tests for the prompts package.

Notable changes:

  • block consumes a Readable and Writable now so we can pass our own in when testing (instead of process.stdout etc)
  • spinner accepts an output option, maybe we want to move this into a "base options" one day that all prompts accept

Fixes #248

Exports a `SpinnerResult` which is the API `spinner` produces.

Also adds initial tests for the `prompts` package.
@changeset-bot
Copy link

changeset-bot bot commented Apr 3, 2025

🦋 Changeset detected

Latest commit: c9ae56a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clack/prompts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Apr 3, 2025

@example/basic@example/changesets

npm i https://pkg.pr.new/bombshell-dev/clack/@clack/core@265
npm i https://pkg.pr.new/bombshell-dev/clack/@clack/prompts@265

commit: c9ae56a

Copy link
Member

@dreyfus92 dreyfus92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a nit, aside from it LGTM 😁

Co-authored-by: Paul Valladares <[email protected]>
Copy link
Member

@dreyfus92 dreyfus92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you James 🫡

@43081j 43081j merged commit 17342d2 into main Apr 4, 2025
6 checks passed
@43081j 43081j deleted the spinner-tests branch April 4, 2025 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request] Export type for Spinner (ReturnType<typeof spinner>)

3 participants