Skip to content

Commit

Permalink
Add typecheck command (#83)
Browse files Browse the repository at this point in the history
Add a typecheck command to test types before building
  • Loading branch information
jaipaljadeja authored Jun 19, 2024
2 parents 83fb5f4 + 9074560 commit 51f640e
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/evm-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions examples/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions examples/starknet-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/evm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"scripts": {
"build": "unbuild",
"lint": "biome check .",
"typecheck": "tsc --noEmit",
"lint:fix": "pnpm lint --write",
"format": "biome format . --write"
},
Expand Down
1 change: 1 addition & 0 deletions packages/protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/starknet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"build"
]
},
"typecheck": {
"cache": false
},
"lint": {
"cache": false
},
Expand Down

0 comments on commit 51f640e

Please sign in to comment.