Skip to content

Commit

Permalink
Add --composite false to "typecheck:api" npm command
Browse files Browse the repository at this point in the history
TypeScript incremental build seems to be a problem for projects using
Babel, like Next.js apps:

"error TS5053: Option 'noEmit' cannot be specified with option 'composite'."

So... microsoft/TypeScript#36917
  • Loading branch information
iquabius committed Jun 17, 2020
1 parent 8577eb8 commit 092d39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"test:codecov:validate": "curl --data-binary @codecov.yml https://codecov.io/validate",
"test:watch": "jest --watch",
"typecheck": "npm-run-all --parallel typecheck:*",
"typecheck:api": "tsc --noEmit --project packages/api/tsconfig.json",
"typecheck:api": "tsc --noEmit --composite false --project packages/api/tsconfig.json",
"typecheck:web": "tsc --noEmit --project packages/web/tsconfig.json"
}
}

0 comments on commit 092d39b

Please sign in to comment.