Files
tsgo/testdata/baselines/reference/tsc/commandLine/file-in-tsconfig-does-not-exist.js

1.4 KiB

currentDirectory::/home/src/workspaces/project
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/project/tsconfig.json] *new*
{
"files": ["./src/doesNotExist.ts"]
}
 
tsgo -p ./tsconfig.json
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
error TS6053: File '/home/src/workspaces/project/src/doesNotExist.ts' not found.
The file is in the program because:
Part of 'files' list in tsconfig.json
tsconfig.json:2:31 - File is matched by 'files' list specified here.
2 "files": ["./src/doesNotExist.ts"]
~~~~~~~~~~~~~~~~~~~~~~~
 
 
Found 1 error.
 
//// [/home/src/tslibs/TS/Lib/lib.es2025.full.d.ts] *Lib*
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
interface SymbolConstructor {
(desc?: string | number): symbol;
for(name: string): symbol;
readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
readonly [Symbol.toStringTag]: string;
}
declare const console: { log(msg: any): void; };