Microsoft/TypeScript

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

Open

#62,373 建立於 2025年9月1日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)TypeScript (6,726 fork)batch import
BugDomain: tsc -bHelp Wanted

倉庫指標

Star
 (48,455 star)
PR 合併指標
 (平均合併 6天 17小時) (30 天內合併 9 個 PR)

描述

🔎 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

貢獻者指南