Skip to content

Commit e529568

Browse files
Added new --project functionality
1 parent 8bd0703 commit e529568

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

What's-new-in-TypeScript.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ By just passing the `--pretty` command line option, TypeScript gives more colorf
99

1010
![Showing off pretty error messages in ConEmu](https://raw.githubusercontent.com/wiki/Microsoft/TypeScript/images/new-in-typescript/pretty01.png)
1111

12+
## The `--project` (`-p`) flag can now take any file path
13+
14+
The `--project` command line option originally could only take paths to a folder containing a `tsconfig.json`. Given the different scenarios for build configurations, it made sense to allow `--project` to point to any other compatible JSON file. For instance, a user might want to target ES2015 with CommonJS modules for Node 5, but ES5 with AMD modules for the browser. With this new work, users can easily manage two separate build targets using `tsc` alone without having to perform hacky workarounds like placing `tsconfig.json` files in separate directories.
15+
16+
The old behavior still remains the same if given a directory - the compiler will try to find a file in the directory named `tsconfig.json`.
17+
1218
## Support output to IPC-driven files
1319

1420
In TypeScript 1.8 allows users to use the `--outFile` argument with special file system entities like named pipes, devices, etc.

0 commit comments

Comments
 (0)