File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,10 @@ export async function loadConfigFile(
135135 }
136136
137137 return {
138- configs : exported . map ( ( config ) => ( { cwd, ...config } ) ) ,
138+ configs : exported . map ( ( config ) => ( {
139+ ...config ,
140+ cwd : config . cwd ? path . resolve ( cwd , config . cwd ) : cwd ,
141+ } ) ) ,
139142 file,
140143 }
141144}
Original file line number Diff line number Diff line change 1+ import path from 'node:path'
12import { createDebug } from 'obug'
23import { loadConfigFile } from './file.ts'
34import { resolveUserConfig } from './options.ts'
@@ -22,6 +23,10 @@ export async function resolveConfig(inlineConfig: InlineConfig): Promise<{
2223} > {
2324 debug ( 'inline config %O' , inlineConfig )
2425
26+ if ( inlineConfig . cwd ) {
27+ inlineConfig . cwd = path . resolve ( inlineConfig . cwd )
28+ }
29+
2530 const { configs : rootConfigs , file } = await loadConfigFile ( inlineConfig )
2631 const files : string [ ] = [ ]
2732 if ( file ) {
You can’t perform that action at this time.
0 commit comments