Skip to content

fix(nuxt): add runtime and plugin dts#9

Merged
antfu merged 2 commits into
devframes:mainfrom
userquin:fix-nuxt-types
May 13, 2026
Merged

fix(nuxt): add runtime and plugin dts#9
antfu merged 2 commits into
devframes:mainfrom
userquin:fix-nuxt-types

Conversation

@userquin
Copy link
Copy Markdown
Contributor

@userquin userquin commented May 12, 2026

This PR includes:

  • copy runtime/types.d.ts to the dist folder
  • register runtime/types.dts at module
  • include devframe at sources (tsconfig)
  • split tsdown build, we only need to transpile runtime plugin to ESM: generated custom runtime plugin dts
  • added nuxt as dev dependency to resolve #imports via nuxt/app: added nuxt.d.ts at root to mock the #imports at build time (excluded from the tarball)
  • added nuxt 5.0.0-0 in case we need to do some tests (Daniel should be working on this)
  • remove runtime plugin from subpackage exports: we cannot resolve nuxt build types (#app, #imports... generated when preparing nuxt)
  • added chokidar v5 to pnpm.overrides, adding nuxt 4.4 will prevent installing it when installing deps (nuxt 4 using chokidar v4 and some dependency using chokidar v5, check screenshot bellow)

NOTE: maybe we need to add runtime to nuxt transpile in the module...

pnpm install error adding nuxt 4.4 => chokidar v4 pnpm install error when adding nuxt 4.4: chokidar v4

@netlify
Copy link
Copy Markdown

netlify Bot commented May 12, 2026

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit 0ffc045
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a03d779f5966000088b269d
😎 Deploy Preview https://deploy-preview-9--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.

- drop trailing commas in packages/nuxt/tsconfig.json
- sort overrides keys in pnpm-workspace.yaml
- refresh @devframes/nuxt dts snapshot to match new tsdown output
@antfu antfu merged commit 8e90d6d into devframes:main May 13, 2026
11 checks passed
@userquin userquin deleted the fix-nuxt-types branch May 13, 2026 01:57
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