Skip to content

error when using passThrough  #1658

Open

Description

@ceonizm

when using the passThrough options I would expect the tsc command arguments to not comport the list of files to compile otherwise the tsc command produce this error:
error TS5042: Option 'project' cannot be mixed with source files on a command line.

Expected Behaviour

/path/to/tsc --project /path/to/tsconfig.json

Actual Behaviour

Actually the command adds the list of files first
/path/to/tsc file1.ts file2.ts --project /path/to/tsconfig.json

Steps to Reproduce the Problem

here's the config I use in gruntfile:
editor: { tsconfig: { tsconfig: path.normalize(path.resolve('./tsconfig.json')), passThrough: true },

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions