Open chadwickellis opened 2 weeks ago
By downgrading @nuxt/kit
, @nuxt/schema
, and nuxt
to version 3.11.x and locking @nuxt/module-builder
to version 0.7.0, the nuxt-module-build build
command no longer generates empty .d.ts
files:
{
"dependencies": {
- "@nuxt/kit": "^3.12.1",
+ "@nuxt/kit": "~3.11.2"
},
"devDependencies": {
- "@nuxt/module-builder": "^0.7.0",
- "@nuxt/schema": "^3.12.1",
- "nuxt": "^3.12.1",
+ "@nuxt/module-builder": "0.7.0",
+ "@nuxt/schema": "~3.11.2",
+ "nuxt": "~3.11.2"
}
}
You can see a StackBlitz reproduction.
Problem
When using
nuxt-module-build build
, empty.d.ts
files are generated if internal TypeScript interfaces are referenced.Steps to Reproduce
dev:prepare
commandprepack
commandExpected Behavior
The
.d.ts
files should contain the expected type definitions without being empty.Actual Behavior
The
.d.ts
files are empty when internal TypeScript interfaces are referenced.