Files globs would be available in TypeScript 2.0, so on the meantime, we need to use "exclude" and "RootDir" to configure W Hich files to load. This lesson shows how to switch from "files" to "exclude".
curently, in Tsconfig.json, we use "files" to tell the main entry file as "Src/main". and import other file into Main.ts. But the problem are if you want add all files manually into "Files" config setting, IDEs cannot give the AutoComplete for The rest of the files. From TypeScript 2.0 We'll be able to get the auto complete by just current setting, but is now We need to use "exclude" and "RootDir" to tell TypeScript which files, we want to use.
{ "compileroptions": { "rootdir": "src", "module": "Commonjs", "target": "ES5", false, false, "OutDir" : "./dist", true }, "Exclude": [ "Node_modules" ]}
[TypeScript] Using Exclude and RootDir until File globs Lands in 2.0.