From ddda589ffe7af9c88a3c9e39b9559b2962b64be1 Mon Sep 17 00:00:00 2001 From: gearnode Date: Wed, 12 Feb 2025 13:22:12 -0800 Subject: [PATCH] Add typecheck script Signed-off-by: gearnode --- GNUmakefile | 1 + apps/console/package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 2904dff81..165f641d9 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -48,6 +48,7 @@ bin/probod: pkg/api/console/v1/schema/schema.go pkg/api/console/v1/types/types.g .PHONY: @probo/console @probo/console: NODE_ENV=production @probo/console: + $(NPM) --workspace $@ run typecheck $(NPM) --workspace $@ run build pkg/api/console/v1/schema/schema.go \ diff --git a/apps/console/package.json b/apps/console/package.json index d0436ce7b..5db93eaac 100644 --- a/apps/console/package.json +++ b/apps/console/package.json @@ -7,7 +7,8 @@ "build": "npx node --env-file .env.production scripts/esbuild.mjs", "relay": "npx relay-compiler --output quiet-with-errors", "relay:watch": "npx relay-compiler --output quiet-with-errors --watch", - "lint": "eslint src --ext .ts,.tsx" + "lint": "eslint src --ext .ts,.tsx", + "typecheck": "tsc --noEmit" }, "dependencies": { "@radix-ui/react-avatar": "^1.1.3",