fix(packaging): include runtime files in tarball#10
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7d1a915098
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
package.json
Outdated
| ], | ||
| "scripts": { | ||
| "prepack": "nuxt-module-build build && unbuild", | ||
| "clean:dist": "rm -rf dist", |
There was a problem hiding this comment.
Replace Unix-only dist cleanup command
Using rm -rf dist in clean:dist makes prepack fail on Windows shells, where rm is not a recognized command. Since prepack runs during pnpm pack/publish flows, maintainers on Windows (or Windows CI runners) cannot produce or publish the package after this change. Please switch to a cross-platform cleanup command (for example via a Node script or a portable utility) so packaging works across supported development environments.
Useful? React with 👍 / 👎.
summary
distbeforeprepackso a prior stub symlink cannot leak into package artifactsdist/runtimeis still a symlink#importsusage for editors outside Nuxt auto-import contextvalidation
pnpm dev:prepare && pnpm prepack && pnpm packnow includesdist/runtime/**in tarball/tmpapp:server/utilsuseSafeRuntimeConfig()typechecks with the packed tarballrelated