in the past, d.ts files in typescript were only loaded when specifically required with a
///<reference path="...
These days everyone uses tsconfig.json
, either original or atom-flavored (in Atom editor).
When using tsconfig.json
, you can omit files list and typescript compiler will compile all *.ts
files it will find in any subdirectory, including *.d.ts
.
Excluding files via exclude
is on the way, as well as files globbing.
If you don't want to use tsconfig.json
or need files globbing right now, you can achieve similar behavior using gulp
with gulp-typescript
and gulp-filter
.