Closed
Description
When using a tsconfig file with no files
property all declaration files under node_modules are currently pulled in. This is especially problematic if typescript itself resides under node_modules since you wind up with duplicate identifiers from lib.core.d.ts
and lib.core.es6.d.ts
, etc. I realize this is partially taken care of with #3043 and #3188 but I'm wondering if there should be a special default case of excluding typescript declaration files. Plugins for JS toolchains like gulp-typescript and ts-loader pull in typescript locally so this becomes an issue there.
Edit: Repro steps for TS 1.5 beta
mkdir test
cd test
npm install typescript
(install locally, not globally)touch tsconfig.json
./node_modules/typescript/bin/tsc