Migrate tsconfig to Nuxt v4 project references structure
Migrates tsconfig to Nuxt v4 project references structure. Use this when upgrading to Nuxt 4 to restructure TypeScript configuration for the new multi-project setup.
/plugin marketplace add lttr/claude-marketplace/plugin install nuxt@lttr-claude-marketplaceupgrade/Migrate the project's TypeScript configuration to use Nuxt v4's project references structure.
First, verify this is a Nuxt 4+ project:
package.json and check nuxt dependency version<4.0.0, inform user this migration is for Nuxt 4+ only and stopReplace the contents with the project references structure:
{
"files": [],
"references": [
{ "path": "./.nuxt/tsconfig.app.json" },
{ "path": "./.nuxt/tsconfig.server.json" },
{ "path": "./.nuxt/tsconfig.shared.json" },
{ "path": "./.nuxt/tsconfig.node.json" }
]
}
If server/tsconfig.json exists, delete it. Nuxt v4 handles server TypeScript context through the project references.
After making changes, run:
nuxt prepare
This generates the referenced tsconfig files in .nuxt/.
Run nuxt typecheck to verify the configuration is working correctly.