From 221d1728430b8678319d071cb468b1cd49b12b9c Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Thu, 2 Jul 2020 12:04:55 +0100 Subject: [PATCH] chore: add typecheck command (#6140) If you want to run TypeScript only to verify that it's typechecking correctly, this command is quicker as it doesn't output CJS and ESM to disk. Useful for checking during development. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index be0a4dda42462..f06e29d2c8d62 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "tsc": "npm run clean-lib && tsc --version && npm run tsc-cjs && npm run tsc-esm", "tsc-cjs": "tsc -p . && cp src/protocol.d.ts lib/cjs", "tsc-esm": "tsc --build tsconfig-esm.json && cp src/protocol.d.ts lib/esm", + "typecheck": "tsc -p . --noEmit", "apply-next-version": "node utils/apply_next_version.js", "update-protocol-d-ts": "node utils/protocol-types-generator update", "compare-protocol-d-ts": "node utils/protocol-types-generator compare",