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

Incremental flag #16

Closed
johngeorgewright opened this issue Jun 17, 2019 · 1 comment · Fixed by #18
Closed

Incremental flag #16

johngeorgewright opened this issue Jun 17, 2019 · 1 comment · Fixed by #18
Labels

Comments

@johngeorgewright
Copy link
Collaborator

This script will currently fail if the incremental: true flag is specified in a tsconfig.json file.

/* tsconfig.json */
{
  "compilerOptions": {
    "target": "es2018",
    "module": "es2015",
    "moduleResolution": "Node",
    "noImplicitAny": true,
    "skipLibCheck": true,
    "experimentalDecorators": false,
    "jsx": "react-native",
    "importHelpers": false,
    "pretty": true,
    "sourceMap": true,
    "strict": true,
    "esModuleInterop": true,
    "outDir": "lib",
    "forceConsistentCasingInFileNames": true,
    "noEmitOnError": false,
    "noErrorTruncation": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitReturns": true,
    "noUnusedLocals": true,
    "noUnusedParameters": true,
    "declaration": false,
    "lib": ["es2018"],
    "incremental": true
  },
  "include": ["src"]
}
$ npx typescript-json-validator file.ts SomeOutput
Option '--incremental' can only be specified using tsconfig, emitting to single file or when option `--tsBuildInfoFile` is specified.
Did not expect generator to be null
johngeorgewright added a commit to johngeorgewright/typescript-json-validator that referenced this issue Jun 17, 2019
ForbesLindesay pushed a commit that referenced this issue Jun 17, 2019
@ForbesLindesay
Copy link
Owner

🎉 This issue has been resolved in version 2.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

2 participants