microsoft / microsoft/TypeScript
[CLI] "@" character removed when it's first path character with --build
还没有人认领这个 Issue。
- 主要语言
- Go
- 星标
- 111k
- 派生
- 14.3k
- 平均合并
- 2 天 4 小时
- 30 天内合并 PR
- 132
描述
### 🔎 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
```bash
# 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_
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 `tsc -b @scoped/package/src` 重现报告的行为,然后将其与正常工作的 `tsc -p @scoped/package/src` 情况进行比较。当构建模式保留开头的 `@`,并按预期读取 `@scoped/package/src/tsconfig.json` 时,修复就完成了。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- build-system, cli
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100