kant2002 / gulp-tsc

gulp.js plugin for compiling TypeScript files
MIT License
16 stars 11 forks source link

When passing only 'project', the build incorrectly assumes 'target' = ES3 #28

Closed timhurkmans closed 7 years ago

timhurkmans commented 7 years ago
typescript({
        project: "tsconfig.json",
}

Results in:

--module commonjs --target ES3 --project tsconfig.json

Expected:

--project tsconfig.json

Workaround:

typescript({
        project: "tsconfig.json",
        target: "ES5",
}

Results in:

--module commonjs --target ES5 --project tsconfig.json

It messes up my code as tsconfig.json can define another module and target, and I don't want to duplicate the options.

kant2002 commented 7 years ago

@timhurkmans Fixed in 1.3.2

Please free to reopen if you have any concerns