File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -170,12 +170,16 @@ function getTmpDir (): string {
170170 * Register TypeScript compiler.
171171 */
172172export function register ( opts : Options = { } ) : Register {
173- const emptyFileListWarnings = [ 18002 , 18003 ]
174173 const options = Object . assign ( { } , DEFAULTS , opts )
175174 const cacheDirectory = options . cacheDirectory || getTmpDir ( )
176- const ignoreDiagnostics = arrify ( options . ignoreDiagnostics ) . concat ( emptyFileListWarnings ) . map ( Number )
177175 const originalJsHandler = require . extensions [ '.js' ]
178176
177+ const ignoreDiagnostics = arrify ( options . ignoreDiagnostics ) . concat ( [
178+ 6059 , // "'rootDir' is expected to contain all source files."
179+ 18002 , // "The 'files' list in config file is empty."
180+ 18003 // "No inputs were found in config file."
181+ ] ) . map ( Number )
182+
179183 const memoryCache : MemoryCache = {
180184 contents : Object . create ( null ) ,
181185 versions : Object . create ( null ) ,
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "target" : " es5" ,
44 "lib" : [" es2015" ],
5+ "rootDir" : " src" ,
56 "outDir" : " dist" ,
67 "module" : " commonjs" ,
78 "declaration" : true ,
You can’t perform that action at this time.
0 commit comments