Files
tsgo/testdata/baselines/reference/tsc/showConfig/Show-TSConfig-with-paths-and-more.js
98677a673d Fix --showConfig to include files field (#3343)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-04-15 00:08:49 +00:00

78 lines
1.8 KiB
TypeScript

currentDirectory::/home/src/workspaces/project
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/project/src/index.ts] *new*
export const a = 1;
//// [/home/src/workspaces/project/tsconfig.json] *new*
{
"compilerOptions": {
"allowJs": true,
"outDir": "./lib",
"esModuleInterop": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "ES2017",
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@root/*": ["./*"],
"@configs/*": ["src/configs/*"],
"@common/*": ["src/common/*"],
"*": [
"node_modules/*",
"src/types/*"
]
},
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"resolveJsonModule": true
},
"include": [
"./src/**/*"
]
}
tsgo -p tsconfig.json --showConfig
ExitStatus:: Success
Output::
{
"compilerOptions": {
"allowJs": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"moduleResolution": "node",
"outDir": "./lib",
"paths": {
"@root/*": [
"./*"
],
"@configs/*": [
"src/configs/*"
],
"@common/*": [
"src/common/*"
],
"*": [
"node_modules/*",
"src/types/*"
]
},
"resolveJsonModule": true,
"sourceMap": true,
"target": "es2017",
"baseUrl": "./",
"esModuleInterop": true,
"useDefineForClassFields": false
},
"files": [
"./src/index.ts"
],
"include": [
"./src/**/*"
],
"exclude": [
"/home/src/workspaces/project/lib"
]
}