Skip to content

outDir is not working when using tsconfig #312

@gilamran

Description

@gilamran

This is my grunt config:

        ts: {
            options: {
                target: 'es5',
                sourceMap: false,
                declaration: false,
                removeComments: false,
                experimentalDecorators: true,
                module: 'commonjs',
                verbose: true
            },
            build: {
                outDir: '.tmp',
                tsconfig: {
                    tsconfig: 'app/tsconfig.json',
                    ignoreFiles: true,
                    ignoreSettings: false,
                    overwriteFilesGlob: false,
                    updateFiles: true,
                    passThrough: false
                }
            }
        }

And my tsconfig.json contains only filesGlob (No compilerOptions section)
Everything works, except that it will not respect the outDir option, all the js file are being generated right next to the ts files...
If I add compilerOptions with outDir inside the tsconfig.json, it will respect it... I also tried setting the ignoreSettings to true, but it didn't change anything

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions