ITADN

When Typescript (`v7.0.2`) & `@typescript/typescript6` are both installed in a project, `bun tsc --version` prints `Version 6.0.3`

#37152OpenMulverineX 创建于 14 天前
bugneeds triage
M
MulverineXcommented
### What version of Bun is running? 1.3.14+0d9b296af ### What platform is your computer? Linux 7.1.5-ogc5.1.fc44.x86_64 x86_64 unknown ### What steps can reproduce the bug? - Create a new bun project (`bun init`) - Run `bun install typescript@latest @typescript/typescript6` - Run `bun tsc --version` - Run `bun tsc6 --version` - Run `bun tsc7 --version` - Run `bun tsgo --version` ### What is the expected behavior? ``` 📦[mulverine@fedora sandstone]$ bun tsc --version Version 7.0.2 📦[mulverine@fedora sandstone]$ bun tsc6 --version Version 6.0.3 📦[mulverine@fedora sandstone]$ bun tsc7 --version error: Script not found "tsc7" 📦[mulverine@fedora sandstone]$ bun tsgo --version error: Script not found "tsgo" ``` ### What do you see instead? ``` 📦[mulverine@fedora sandstone]$ bun tsc --version Version 6.0.3 📦[mulverine@fedora sandstone]$ bun tsc6 --version Version 6.0.3 📦[mulverine@fedora sandstone]$ bun tsc7 --version error: Script not found "tsc7" 📦[mulverine@fedora sandstone]$ bun tsgo --version error: Script not found "tsgo" ``` ### Additional information Related issues: - https://github.com/oven-sh/bun/issues/33834 - https://github.com/microsoft/typescript-go/issues/4567 I do not have access to the result of PR #33835 to test with, that might have fixed this but this case should be specifically tested.
0 条评论