File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 44
44
"unbuild" : " ^3.0.1"
45
45
},
46
46
"peerDependencies" : {
47
- "nuxi" : " ^3.17.2"
47
+ "nuxi" : " ^3.17.2" ,
48
+ "typescript" : " ^5.6.3"
48
49
},
49
50
"devDependencies" : {
50
51
"@nuxt/eslint-config" : " ^0.7.4" ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import type { NuxtModule } from '@nuxt/schema'
13
13
import { findExports , resolvePath } from 'mlly'
14
14
import type { ESMExport } from 'mlly'
15
15
import { defineCommand } from 'citty'
16
+ import { convertCompilerOptionsFromJson } from 'typescript'
16
17
17
18
import { name , version } from '../../package.json'
18
19
@@ -83,6 +84,8 @@ export default defineCommand({
83
84
'@nuxt/kit' ,
84
85
'@nuxt/kit-nightly' ,
85
86
'@nuxt/kit-edge' ,
87
+ '#app' ,
88
+ '#app/nuxt' ,
86
89
'nuxt' ,
87
90
'nuxt-nightly' ,
88
91
'nuxt-edge' ,
@@ -97,6 +100,14 @@ export default defineCommand({
97
100
} )
98
101
} ,
99
102
async 'rollup:options' ( ctx , options ) {
103
+ const [ entry ] = ctx . buildEntries
104
+ const mergedCompilerOptions = defu ( {
105
+ noEmit : false ,
106
+ paths : {
107
+ '#app/nuxt' : [ './node_modules/nuxt/dist/app/nuxt' ] ,
108
+ } ,
109
+ } , ctx . options . rollup . dts . compilerOptions , await loadTSCompilerOptions ( entry ! . path ) )
110
+ ctx . options . rollup . dts . compilerOptions = convertCompilerOptionsFromJson ( mergedCompilerOptions , entry ! . path ) . options
100
111
options . plugins ||= [ ]
101
112
if ( ! Array . isArray ( options . plugins ) )
102
113
options . plugins = [ options . plugins ]
You can’t perform that action at this time.
0 commit comments