Skip to content

Better default experience when using a tsconfig file with no "files" property. #3289

Closed
@jbrantly

Description

@jbrantly

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

  1. mkdir test
  2. cd test
  3. npm install typescript (install locally, not globally)
  4. touch tsconfig.json
  5. ./node_modules/typescript/bin/tsc

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issueSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions