Skip to content

Commit cbdaae6

Browse files
committed
Resolve empty config options (no files, options)
1 parent 5deba48 commit cbdaae6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/tsconfig.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ export function load (cwd: string, filename?: string): Promise<LoadResult> {
124124
.then<LoadResult>(path => {
125125
if (path == null) {
126126
return Promise.resolve<LoadResult>({
127-
config: {}
127+
config: {
128+
files: [],
129+
compilerOptions: {}
130+
}
128131
})
129132
}
130133

@@ -140,7 +143,10 @@ export function loadSync (cwd: string, filename?: string): LoadResult {
140143

141144
if (path == null) {
142145
return {
143-
config: {}
146+
config: {
147+
files: [],
148+
compilerOptions: {}
149+
}
144150
}
145151
}
146152

0 commit comments

Comments
 (0)