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",