TS 5.6 files
missing from --showConfig
(with absolute / ${configDir}
include
paths)
#60199
Labels
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
🔎 Search Terms
"--showConfig", "include", "configDir", "files", "extends", "absolute"
🕗 Version & Regression Information
3.2.1
(--showConfig
was introduced here)3.2.4
5.5.2
(${configDir}
was introduced here)latest
=>5.6.3
next
=>5.7.0-dev.20241011
--showConfig
cli flag was introduced in TS 3.2 andconfigDir
template variable was introduced in TS 5.5.⏯ Playground Link
No response
💻 Code
🙁 Actual behavior
❌ Printing config yields different results.
files
property is missing.${configDir}
is resolved to and behaves / fails the same as absolute paths.✅ Listing files yields the same output.
List of files printed to stdout, containing
/path/to/
src/index.ts
/path/to/
node_modules/**/*.d.ts
entries from npm dependency type declarations./path/to/
node_modules/typescript/lib/lib.decorators.d.ts
(only in TS 5 of course)/path/to/
node_modules/typescript/lib/lib.decorators.legacy.d.ts
(only in TS 5 of course)✅ Building yields the same
index.js
file content for all configs.🙂 Expected behavior
--showConfig
should show the samefiles
for configs that build the same files and show the same listing for--listFiles
.Additional information about the issue
includeRe
inmatchesSpecs
seems to be calculated differently for absolute / relative paths, resulting in all files being filtered out inconvertToTSConfig
.I can't tell though which behaviour is actually expected. (keep files or filter files out?)
The text was updated successfully, but these errors were encountered: