@@ -137,9 +137,9 @@ async function writeTypes(distDir: string, meta: ModuleMeta) {
137
137
)
138
138
const isStub = moduleTypes . includes ( 'export *' )
139
139
140
- const appShims = [ ]
141
- const schemaShims = [ ]
142
- const moduleImports = [ ]
140
+ const appShims : string [ ] = [ ]
141
+ const schemaShims : string [ ] = [ ]
142
+ const moduleImports : string [ ] = [ ]
143
143
144
144
const hasTypeExport = ( name : string ) => isStub || typeExports . find ( exp => exp . names . includes ( name ) )
145
145
@@ -154,7 +154,7 @@ async function writeTypes(distDir: string, meta: ModuleMeta) {
154
154
}
155
155
156
156
if ( hasTypeExport ( 'ModuleRuntimeHooks' ) ) {
157
- const runtimeHooksInterfaces = [ ]
157
+ const runtimeHooksInterfaces : string [ ] = [ ]
158
158
159
159
if ( hasTypeExport ( 'ModuleRuntimeHooks' ) ) {
160
160
runtimeHooksInterfaces . push ( 'ModuleRuntimeHooks' )
@@ -184,7 +184,7 @@ ${typeExports[0] ? `\nexport type { ${typeExports[0].names.join(', ')} } from '.
184
184
185
185
await fsp . writeFile ( dtsFile , dtsContents , 'utf8' )
186
186
if ( ! existsSync ( dtsFileMts ) ) {
187
- await fsp . writeFile ( dtsFileMts , dtsContents . replaceAll ( '. /module' , './module.js' ) , 'utf8' )
187
+ await fsp . writeFile ( dtsFileMts , dtsContents . replace ( / \. \ /m o d u l e / g , './module.js' ) , 'utf8' )
188
188
}
189
189
}
190
190
0 commit comments