File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ describe('e2e routes', () => {
14
14
it ( 'generates the routes' , async ( ) => {
15
15
const context = createRoutesContext (
16
16
resolveOptions ( {
17
- // dts: join(__dirname, './__types.d.ts'),
17
+ // dts: join(__dirname, './.types/ __types.d.ts'),
18
18
dts : false ,
19
19
logs : false ,
20
20
watch : false ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { generateRouteNamedMap } from '../codegen/generateRouteMap'
6
6
import { MODULE_ROUTES_PATH , MODULE_VUE_ROUTER_AUTO } from './moduleConstants'
7
7
import { generateRouteRecord } from '../codegen/generateRouteRecords'
8
8
import fg from 'fast-glob'
9
- import { relative , resolve } from 'pathe'
9
+ import { dirname , relative , resolve } from 'pathe'
10
10
import { ServerContext } from '../options'
11
11
import { getRouteBlock } from './customBlock'
12
12
import {
@@ -252,6 +252,7 @@ if (import.meta.hot) {
252
252
if ( dts ) {
253
253
const content = generateDTS ( )
254
254
if ( lastDTS !== content ) {
255
+ await fs . mkdir ( dirname ( dts ) , { recursive : true } )
255
256
await fs . writeFile ( dts , content , 'utf-8' )
256
257
logger . timeLog ( 'writeConfigFiles' , 'wrote dts file' )
257
258
lastDTS = content
You can’t perform that action at this time.
0 commit comments