From 90745603dc3db6e967e37869942e5c35dc2c8aba Mon Sep 17 00:00:00 2001 From: Francesco Ceccon Date: Wed, 19 Jun 2024 17:34:00 +0200 Subject: [PATCH] Add typecheck command --- .github/workflows/build.yml | 2 ++ examples/evm-client/package.json | 1 + examples/indexer/package.json | 1 + examples/starknet-client/package.json | 1 + package.json | 1 + packages/evm/package.json | 1 + packages/indexer/package.json | 1 + packages/protocol/package.json | 1 + packages/starknet/package.json | 1 + turbo.json | 3 +++ 10 files changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c5ff337..5661f71 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,8 @@ jobs: run: pnpm lint - name: Run format run: pnpm format + - name: Run typecheck + run: pnpm typecheck - name: Run build run: pnpm build - name: Run test diff --git a/examples/evm-client/package.json b/examples/evm-client/package.json index 828206b..e89da5e 100644 --- a/examples/evm-client/package.json +++ b/examples/evm-client/package.json @@ -4,6 +4,7 @@ "private": true, "scripts": { "start": "jiti ./src/main.ts", + "typecheck": "tsc --noEmit", "lint": "biome check .", "lint:fix": "pnpm lint --write", "format": "biome format . --write" diff --git a/examples/indexer/package.json b/examples/indexer/package.json index 35aec3c..a661c35 100644 --- a/examples/indexer/package.json +++ b/examples/indexer/package.json @@ -4,6 +4,7 @@ "private": true, "scripts": { "start": "jiti ./src/main.ts", + "typecheck": "tsc --noEmit", "lint": "biome check .", "lint:fix": "pnpm lint --write", "format": "biome format . --write" diff --git a/examples/starknet-client/package.json b/examples/starknet-client/package.json index 37a6c4c..3ea832e 100644 --- a/examples/starknet-client/package.json +++ b/examples/starknet-client/package.json @@ -4,6 +4,7 @@ "private": true, "scripts": { "start": "jiti ./src/main.ts", + "typecheck": "tsc --noEmit", "lint": "biome check .", "lint:fix": "pnpm lint --write", "format": "biome format . --write" diff --git a/package.json b/package.json index af72b98..aff3aff 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "description": "Apibara Typescript monorepo", "scripts": { "build": "turbo run build --parallel", + "typecheck": "turbo run typecheck --parallel", "test": "turbo run test", "lint": "turbo run lint --parallel", "lint:fix": "turbo run lint:fix --parallel", diff --git a/packages/evm/package.json b/packages/evm/package.json index 5d8e40c..0ddc2e0 100644 --- a/packages/evm/package.json +++ b/packages/evm/package.json @@ -20,6 +20,7 @@ "scripts": { "build": "pnpm build:proto && unbuild", "build:proto": "buf generate proto", + "typecheck": "tsc --noEmit", "test": "vitest", "lint": "biome check .", "lint:fix": "pnpm lint --write", diff --git a/packages/indexer/package.json b/packages/indexer/package.json index 8f252fe..69fd730 100644 --- a/packages/indexer/package.json +++ b/packages/indexer/package.json @@ -35,6 +35,7 @@ "scripts": { "build": "unbuild", "lint": "biome check .", + "typecheck": "tsc --noEmit", "lint:fix": "pnpm lint --write", "format": "biome format . --write" }, diff --git a/packages/protocol/package.json b/packages/protocol/package.json index 92908f6..7a27c07 100644 --- a/packages/protocol/package.json +++ b/packages/protocol/package.json @@ -20,6 +20,7 @@ "scripts": { "build": "pnpm build:proto && unbuild", "build:proto": "buf generate proto", + "typecheck": "tsc --noEmit", "test": "vitest", "lint": "biome check .", "lint:fix": "pnpm lint --write", diff --git a/packages/starknet/package.json b/packages/starknet/package.json index 479d8f9..d921899 100644 --- a/packages/starknet/package.json +++ b/packages/starknet/package.json @@ -20,6 +20,7 @@ "scripts": { "build": "pnpm build:proto && unbuild", "build:proto": "buf generate proto", + "typecheck": "tsc --noEmit", "test": "vitest", "lint": "biome check .", "lint:fix": "pnpm lint --write", diff --git a/turbo.json b/turbo.json index c02f689..24b2e45 100644 --- a/turbo.json +++ b/turbo.json @@ -12,6 +12,9 @@ "build" ] }, + "typecheck": { + "cache": false + }, "lint": { "cache": false },