Closed danielrentz closed 3 years ago
hi - the best way around this is to use the tsconfig.json integration with passThrough turned on. In this mode, grunt-ts just calls TypeScript and lets it handle the rest.
grunt.initConfig({
ts: {
default: {
// specifying tsconfig as an object allows detailed configuration overrides...
tsconfig: {
tsconfig: './sometsconfig.json',
passThrough: true
}
}
}
});
Thanks for this hint!
I am using grunt-ts with a project file containing an empty "types" array to not load any type definitions from node_modules (as documented here).
Using tsc directly works as expected. But grunt-ts fails with
Maybe this is related to (https://github.com/microsoft/TypeScript/issues/18581)?