Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override tsconfig with command line #446

Open
ye-yu opened this issue Dec 30, 2020 · 0 comments
Open

Override tsconfig with command line #446

ye-yu opened this issue Dec 30, 2020 · 0 comments

Comments

@ye-yu
Copy link

ye-yu commented Dec 30, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant