From e3eac0f1006a880f11e7fec2dd13026255a1d5f6 Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Thu, 2 Jul 2020 12:03:01 +0100 Subject: [PATCH] chore: add typecheck command 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",