Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
Todd Thomson edited this page Sep 30, 2015 · 4 revisions
  • How do I specify compilerOptions for different project build scenarios?

There are 2 methods that you may use to specify compiler options for your different project build scenarios:

  1. TsProject allows you to specify a named Typescript configuration file other than "tsconfig.json" when calling TsProject.src(). Each configuration file may have compilation options specific to the build scenario.
  2. TsProject allows you to override the TypeScript compiler options when calling TsProject.src() by using the compilerOptions property of the settings object. For example:
tsproject.src( "./tsconfig.json", {
          logLevel: 1,
          compilerOptions: {
            "module": "amd",
            "target": "es5"
          }
        })
    .pipe(...)  // etc.

Clone this wiki locally