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

alwaysStrict not read from tsconfig.json #432

Open
aciccarello opened this issue Apr 28, 2019 · 1 comment
Open

alwaysStrict not read from tsconfig.json #432

aciccarello opened this issue Apr 28, 2019 · 1 comment

Comments

@aciccarello
Copy link

Problem

When the following compiler options are set in a tsconfig.json grunt-ts fails to read the "alwaysStrict": false option from the tsconfig.json file.

  "strict": true,
  "noImplicitUseStrict": true,
  "alwaysStrict": false

This results in the following error

Using tsc v3.4.5
error TS5053: Option 'noImplicitUseStrict' cannot be specified with option 'alwaysStrict'

Workaround

This can be worked around by adding the additional flag.

        ts: {
            default: {
                tsconfig: './tsconfig.json',
                options: {
                    additionalFlags: '--alwaysStrict false'
                }
            }
        },

This was confusing as a user because the other options were read but alwaysStrict was not. It was only after I realized that tsc would compile that I realize it was a grunt config issue.

Environment

> npm -v
6.9.0
> node -v
v10.11.0
> npm ls grunt-ts grunt-cli grunt typescript
baseDir
├─┬ [email protected] 
│ └── [email protected] 
├── [email protected] 
├── [email protected]
└── [email protected] 
@aciccarello aciccarello changed the title Error alwaysStrict not read from tsconfig.json Apr 28, 2019
@nycdotnet
Copy link
Contributor

Thank you for the report. Will add this to the bug list. I am sorry but I do not have an ETA on a fix as I don't have much time for maintaining this library anymore as I don't use it. PRs definitely accepted.

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

No branches or pull requests

2 participants