Skip to content

feat(devframe): expose utils/get-port, drop plugin deps on get-port-please - #249

Merged
antfu merged 1 commit into
mainfrom
tiny-chairs-poke
Aug 17, 2026
Merged

feat(devframe): expose utils/get-port, drop plugin deps on get-port-please#249
antfu merged 1 commit into
mainfrom
tiny-chairs-poke

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

Summary

  • Re-export get-port-please's getPort (plus GetPortInput/GetPortOptions) through a new devframe/utils/get-port entry, wired into packages/devframe's exports map and node-only tsdown build.
  • get-port-please stays a devframe devDependency, already bundled into its node build (deps.onlyBundle) — no new runtime dependency for consumers.
  • Every built-in plugin (a11y, assets, code-server, data-inspector, git, inspect, messages, og, terminals) now imports getPort from devframe/utils/get-port instead of get-port-please directly, and drops the now-unused get-port-please dependency entry from each plugin's package.json.
  • Regenerated the tsnapi API snapshot for the new devframe/utils/get-port export.

🤖 Generated with the help of an agent.

…lease

Re-export get-port-please's getPort through devframe/utils/get-port so
plugins resolve a free port without each declaring their own
get-port-please dependency. get-port-please stays a devframe
devDependency, already bundled into its node build.

Updates all nine plugins (a11y, assets, code-server, data-inspector,
git, inspect, messages, og, terminals) plus a11y's demo server to
import from the new util and drops their now-unused get-port-please
dependency entries.
@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit 1bb96d2
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a8297bf3deb990008a56a58
😎 Deploy Preview https://deploy-preview-249--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 f4339bc into main Aug 17, 2026
11 of 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