File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
language-core/lib/codegen/script Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export interface ScriptCodegenOptions {
51
51
export function * generateScript ( options : ScriptCodegenOptions ) : Generator < Code , ScriptCodegenContext > {
52
52
const ctx = createScriptCodegenContext ( options ) ;
53
53
54
- yield `/// <reference types="${ options . vueCompilerOptions . lib } /__globalTypes_${ options . vueCompilerOptions . target } _${ options . vueCompilerOptions . strictTemplates } " />${ newLine } ` ;
54
+ yield `/// <reference types="${ options . vueCompilerOptions . lib } /dist/ __globalTypes_${ options . vueCompilerOptions . target } _${ options . vueCompilerOptions . strictTemplates } .d.ts " />${ newLine } ` ;
55
55
56
56
if ( options . sfc . script ?. src ) {
57
57
yield * generateSrc ( options . sfc . script , options . sfc . script . src ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export function run(tscPath = require.resolve('typescript/lib/tsc')) {
27
27
: options . host ?. getCurrentDirectory ( ) ?? ts . sys . getCurrentDirectory ( ) ;
28
28
const libDir = require . resolve ( `${ vueOptions . lib } /package.json` , { paths : [ rootDir ] } )
29
29
. slice ( 0 , - 'package.json' . length ) ;
30
- const globalTypesPath = `${ libDir } __globalTypes_${ vueOptions . target } _${ vueOptions . strictTemplates } .d.ts` ;
30
+ const globalTypesPath = `${ libDir } dist/ __globalTypes_${ vueOptions . target } _${ vueOptions . strictTemplates } .d.ts` ;
31
31
const globalTypesContents = vue . generateGlobalTypes ( vueOptions . lib , vueOptions . target , vueOptions . strictTemplates ) ;
32
32
ts . sys . writeFile ( globalTypesPath , globalTypesContents ) ;
33
33
} catch { }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ describe('vue-tsc-dts', () => {
37
37
: options . host ?. getCurrentDirectory ( ) ?? ts . sys . getCurrentDirectory ( ) ;
38
38
const libDir = require . resolve ( `${ vueOptions . lib } /package.json` , { paths : [ rootDir ] } )
39
39
. slice ( 0 , - 'package.json' . length ) ;
40
- const globalTypesPath = `${ libDir } __globalTypes_${ vueOptions . target } _${ vueOptions . strictTemplates } .d.ts` ;
40
+ const globalTypesPath = `${ libDir } dist/ __globalTypes_${ vueOptions . target } _${ vueOptions . strictTemplates } .d.ts` ;
41
41
const globalTypesContents = vue . generateGlobalTypes ( vueOptions . lib , vueOptions . target , vueOptions . strictTemplates ) ;
42
42
ts . sys . writeFile ( globalTypesPath , globalTypesContents ) ;
43
43
} catch { }
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const plugin: ts.server.PluginModuleFactory = mods => {
63
63
try {
64
64
const libDir = require . resolve ( `${ options . lib } /package.json` , { paths : [ proj . getCurrentDirectory ( ) ] } )
65
65
. slice ( 0 , - 'package.json' . length ) ;
66
- const globalTypesPath = `${ libDir } __globalTypes_${ options . target } _${ options . strictTemplates } .d.ts` ;
66
+ const globalTypesPath = `${ libDir } dist/ __globalTypes_${ options . target } _${ options . strictTemplates } .d.ts` ;
67
67
const globalTypesContents = vue . generateGlobalTypes ( options . lib , options . target , options . strictTemplates ) ;
68
68
proj . writeFile ( globalTypesPath , globalTypesContents ) ;
69
69
} catch { }
You can’t perform that action at this time.
0 commit comments