Skip to content

Override tsconfig with command line #446

@ye-yu

Description

@ye-yu

I would like to create separate tasks for development and production environment, and I would like to turn on the sourceMap in the development environment for debugging purposes.

Normally, without grunt, I can use tsc to override this on the command line:

// in package.json
"scripts": {
    "dev": "tsc --sourceMap && node path/to/index.js",
    "build": "tsc"
}

How do I go about implementing the similar mechanism using grunt-ts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions