wangdoc / typescript-tutorial

TypeScript 教程
https://wangdoc.com/typescript
2.43k stars 256 forks source link

tsc 命令中的tsc src/*.ts报错 #90

Closed zhaheng closed 9 months ago

zhaheng commented 9 months ago
# 编译 src 目录的所有 .ts 文件
$ tsc src/*.ts

tsc src/.ts这个命令能用吗,我试了使用tsc src/.ts会报错:

error TS6053: File 'src/*.ts' not found. The file is in the program because: Root file specified for compilation

ruanyf commented 9 months ago

请使用 Bash

zhaheng commented 9 months ago

好的