microsoft / TypeScript-Handbook

Deprecated, please use the TypeScript-Website repo instead
https://github.com/microsoft/TypeScript-Website
Apache License 2.0
4.88k stars 1.13k forks source link

Incorrect example on "Compiler Options" #1337

Closed neiker closed 4 years ago

neiker commented 4 years ago

If you run this on console:

# Transpile any .ts files in the folder src, with the compiler settings from tsconfig.json
tsc --project tsconfig.json src/*.ts

This message is shown:

error TS5042: Option 'project' cannot be mixed with source files on a command line.

Seen on: https://www.typescriptlang.org/docs/handbook/compiler-options.html

orta commented 4 years ago

This is fixed in the v2 site already, thanks!