Skip to content

fix(hub): ship dist/ in published tarball#27

Merged
antfu merged 1 commit into
mainfrom
antfu/fix-hub-missing-dist
May 28, 2026
Merged

fix(hub): ship dist/ in published tarball#27
antfu merged 1 commit into
mainfrom
antfu/fix-hub-missing-dist

Conversation

@antfu

@antfu antfu commented May 28, 2026

Copy link
Copy Markdown
Contributor

0.5.0 and 0.5.1 published empty tarballs (LICENSE.md + package.json only, 2.4 KB) because the package had no prepack hook to build dist/ before npm ran, so consumers couldn't resolve any of the entry points in the exports map. This adds the same pnpm run build prepack that @devframes/nuxt already uses, so the next release ships the full dist/ tree. Broken 0.5.0 and 0.5.1 will need npm deprecate after the follow-up release goes out.

This PR was created with the help of an agent.

Without a prepack hook, npm pack never builds dist/ — so 0.5.0 and 0.5.1
published as empty tarballs (LICENSE.md + package.json only, 2.4 KB).
Copilot AI review requested due to automatic review settings May 28, 2026 01:57
@netlify

netlify Bot commented May 28, 2026

Copy link
Copy Markdown

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit af8eb21
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a17a0fc0dd0dd0008cf50f3
😎 Deploy Preview https://deploy-preview-27--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 6da2aad into main May 28, 2026
12 of 13 checks passed
@antfu antfu deleted the antfu/fix-hub-missing-dist branch May 28, 2026 01:57
@antfu antfu review requested due to automatic review settings May 28, 2026 02:17
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.

1 participant