File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/module/src/modules/config Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
- import { dirname } from 'node:path'
1
+ import { dirname , join } from 'node:path'
2
2
import fs from 'node:fs/promises'
3
3
import type { Nuxt } from '@nuxt/schema'
4
4
import type { ESLintConfigGenAddon } from '../../types'
@@ -17,8 +17,10 @@ export async function setupConfigGen(options: ModuleOptions, nuxt: Nuxt) {
17
17
createAddonGlobals ( nuxt ) ,
18
18
]
19
19
20
- nuxt . hook ( 'prepare:types' , ( { declarations } ) => {
20
+ nuxt . hook ( 'prepare:types' , ( { declarations, nodeReferences } ) => {
21
21
declarations . push ( '/// <reference path="./eslint-typegen.d.ts" />' )
22
+ if ( nodeReferences )
23
+ nodeReferences . push ( { path : join ( nuxt . options . buildDir , 'eslint-typegen.d.ts' ) } )
22
24
} )
23
25
24
26
let _configFile : string = undefined !
You can’t perform that action at this time.
0 commit comments