Microsoft/TypeScript

Source files being ignored from symlink directories

Open

#43.415 geöffnet am 29. März 2021

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (6.726 Forks)batch import
BugDomain: Something ElseHelp Wanted

Repository-Metriken

Stars
 (48.455 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (9 gemergte PRs in 30 T)

Beschreibung

Bug Report

Source files are being ignored from symlink directories when tsconfig.json contains a configuration such as "include": ["**/file", "src/**/*]

🔎 Search Terms

symlink, listFiles

🕗 Version & Regression Information

  • This changed between versions 3.3.4000 and 3.4.1

Works well on 3.3.4000 Doesn't work from 3.4.1 Doesn't work on typescript@next (4.3.0)

💻 Code

Reproduction repository: https://github.com/bvallee-thefork/tsc-bug-symlink

🙁 Actual behavior

With "include": ["src/**/*], src/symlink/file2.ts is correctly listed in the output of: npx tsc -p tsconfig-valid.json --listFiles

With "include": ["**/file", "src/**/*], src/symlink/file2.ts is not listed in the output of: npx tsc -p tsconfig.json --listFiles

🙂 Expected behavior

src/symlink/file2.ts should be listed in the output of npx tsc -p tsconfig.json --listFiles with the following tsconfig: "include": ["**/file", "src/**/*]

Contributor Guide