view tsconfig.json @ 258:828e021d52fd

Explicitly include source files in tsconfig tsc only knows about files that are directly imported from main.ts root, and does not discover files that are buildtime dynamically discovered by Webpack using require.context(). Including the source files explicitly ensures that they are known by tsc. This is required for some external tooling, namely tslint. Also, do not exclude .spec.ts files from linting. Reviewed-by: jkang Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-October/025465.html
author Andrew Azores <aazores@redhat.com>
date Mon, 23 Oct 2017 09:55:00 -0400
parents 288f0c458eb6
children
line wrap: on
line source

{
  "files": [
    "src/rx-subject.stub.ts",
    "src/main.ts"
  ],
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "./dist",
    "noImplicitAny": true,
    "target": "es5",
    "experimentalDecorators": true,
    "allowJs": true,
    "allowSyntheticDefaultImports": true,
    "sourceMap": true,
    "paths": {
      "shared/*": ["src/app/shared/*"],
      "components/*": ["src/app/components/*"]
    },
    "lib": [
      "es2015",
      "dom"
    ]
  },
  "include": [
    "src/**/*.ts",
    "src/**/*.d.ts",
    "src/**/*.spec.ts",
    "src/**/*.spec.js",
    "src/**/*.js"
  ],
  "exclude": [
    "node_modules"
  ]
}