From 092d39b22a1442b28f12e5834f87a39fd96e09f7 Mon Sep 17 00:00:00 2001 From: Josias Iquabius Date: Wed, 17 Jun 2020 15:53:06 -0400 Subject: [PATCH] Add --composite false to "typecheck:api" npm command 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... https://github.com/microsoft/TypeScript/issues/36917 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fb7c08f2d..c5d403b9d 100644 --- a/package.json +++ b/package.json @@ -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" } }