diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e2ddb6c..79d38322 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,9 +28,6 @@ jobs: - name: Lint run: yarn lint - - name: Build dependencies (for type check) - run: ./scripts/build_api.sh - - name: Type check run: yarn typecheck diff --git a/backend/api/package.json b/backend/api/package.json index 707c92e9..6a964e01 100644 --- a/backend/api/package.json +++ b/backend/api/package.json @@ -19,7 +19,7 @@ "watch": "tsc -w", "lint": "npx eslint . --max-warnings 0", "lint-fix": "npx eslint . --fix", - "typecheck": "npx tsc --noEmit", + "typecheck": "yarn build && npx tsc --noEmit", "regen-types": "cd ../supabase && make ENV=prod regen-types", "regen-types-dev": "cd ../supabase && make ENV=dev regen-types-dev", "test": "jest --config jest.config.js", diff --git a/package.json b/package.json index c5de7139..f4393858 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "scripts": { "lint": "yarn --cwd=web lint; yarn --cwd=common lint; yarn --cwd=backend/api lint; yarn --cwd=backend/shared lint", "lint-fix": "yarn --cwd=web lint-fix; yarn --cwd=common lint-fix; yarn --cwd=backend/api lint-fix; yarn --cwd=backend/shared lint-fix", - "typecheck": "yarn --cwd=web typecheck; yarn --cwd=common typecheck; yarn --cwd=backend/api typecheck; yarn --cwd=backend/shared typecheck", + "typecheck": "yarn --cwd=web typecheck; yarn --cwd=backend/api typecheck; yarn --cwd=common typecheck; yarn --cwd=backend/shared typecheck", "prettier": "prettier --write .", "prettier:check": "prettier --check .", "dev": "./scripts/run_local.sh dev",