// TypeScript config file that extends the default tsconfig file for the cdk. This config is
// used to compile the tests for Karma. Since the code will run inside of the browser, the target
// needs to be ES5. The format needs to be CommonJS since Karma only supports that module format.
{
  "extends": "./tsconfig-build",
  "compilerOptions": {
    "importHelpers": false,
    "module": "commonjs",
    "target": "es5",
    "types": ["jasmine"],
    "experimentalDecorators": true,
    "paths": {
      "@angular/cdk/*": ["./*"]
    }
  },
  "files": [
    "./testing/index.ts",
    "./index.ts",
    "typings.d.ts"
  ],
  "angularCompilerOptions": {
    "strictMetadataEmit": true,
    "skipTemplateCodegen": true,
    "emitDecoratorMetadata": true,
    "fullTemplateTypeCheck": true,

    // Unset options inherited from tsconfig-build
    "annotateForClosureCompiler": false,
    "flatModuleOutFile": null,
    "flatModuleId": null
  },
  "include": [
    // Include the index.ts for each secondary entry-point
    "./*/index.ts",
    "**/*.spec.ts"
  ],
  "exclude": [
    "**/schematics/**/*.ts",
    // Exclude end-to-end tests and utilities
    "**/*.e2e.spec.ts",
    "./testing/e2e/**"
  ]
}
