Skip to content

feat: add pnpm run play playground picker#118

Merged
antfu merged 1 commit into
mainfrom
feat/play-script
Jul 22, 2026
Merged

feat: add pnpm run play playground picker#118
antfu merged 1 commit into
mainfrom
feat/play-script

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

Summary

Adds pnpm run play — an autocomplete prompt to pick and launch any playground in the repo (examples, plugins, storybook, docs), instead of remembering each one's directory and script name by hand.

Details

  • scripts/play.ts discovers playgrounds by expanding the same workspace globs pnpm-workspace.yaml and scripts/verify-typecheck-coverage.ts already mirror (packages/*, plugins/*, examples/*, storybook, docs), keeping only entries whose package.json has a dev/storybook/docs/start script.
  • Presents them via prompts' autocomplete type — type to filter, arrow keys + Enter to pick, with a description line showing the package name and command — then runs pnpm run <script> in the chosen directory with output streamed through.
  • New examples/plugins are picked up automatically; nothing to update in this script when one is added.
  • Added prompts/@types/prompts as catalog devDependencies.

Created with the help of an agent.

Adds scripts/play.ts, an autocomplete prompt (via `prompts`) that
discovers every runnable playground under packages/*, plugins/*,
examples/*, storybook, and docs — mirroring the workspace glob list in
verify-typecheck-coverage.ts — and launches its dev/storybook/docs/start
script in place. New playgrounds are picked up automatically with no
change to this script.
@netlify

netlify Bot commented Jul 22, 2026

Copy link
Copy Markdown

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit 6d539f8
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a600e0d6745460008eb138e
😎 Deploy Preview https://deploy-preview-118--devfra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@antfu
antfu merged commit a478c37 into main Jul 22, 2026
12 checks passed
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.

2 participants