Microsoft/TypeScript

[CLI] "@" character removed when it's first path character with --build

Open

#62.373 aberto em 1 de set. de 2025

Ver no GitHub
 (4 comments) (0 reactions) (0 assignees)TypeScript (6.726 forks)batch import
BugDomain: tsc -bHelp Wanted

Métricas do repositório

Stars
 (48.455 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

Description

🔎 Search Terms

"cli", "tsc", "build mode", "path"

🕗 Version & Regression Information

  • This changed between versions 3.0 and 3.1 (LOL) and continue to 5.9.2

⏯ Playground Link

https://github.com/GongT/issues/tree/typescript-path-at-char

💻 Code

# all this is ok
tsc -p @scoped/package/src
tsc -b xxx@yyy/package/src
cd @scoped ; tsc -p package/src

# this is not
tsc -b @scoped/package/src

🙁 Actual behavior

error TS5083: Cannot read file 'scoped/package/src'.

🙂 Expected behavior

It should read @scoped/package/src(/tsconfig.json)

Additional information about the issue

No response

Guia do colaborador