diff --git a/.github/workflows/static-example-apps-checks.yml b/.github/workflows/static-example-apps-checks.yml index dcb0c79e2b07..e90435cf7fcd 100644 --- a/.github/workflows/static-example-apps-checks.yml +++ b/.github/workflows/static-example-apps-checks.yml @@ -50,7 +50,12 @@ jobs: - name: Check types working-directory: ${{ matrix.working-directory }} + if: ${{ matrix.working-directory != 'apps/web-example' }} run: yarn tsc --noEmit + - name: Check types + working-directory: ${{ matrix.working-directory }} + if: ${{ matrix.working-directory == 'apps/web-example' }} + run: yarn tsc --noEmit --baseUrl ../.. - name: Lint working-directory: ${{ matrix.working-directory }} run: yarn lint diff --git a/apps/web-example/index.js b/apps/web-example/index.js index 1d6e981ef6c4..ab8c69d6eac9 100644 --- a/apps/web-example/index.js +++ b/apps/web-example/index.js @@ -1,3 +1,5 @@ +import "@expo/metro-runtime"; + import { registerRootComponent } from 'expo'; import App from './App'; diff --git a/apps/web-example/tsconfig.json b/apps/web-example/tsconfig.json index 186ee5f11427..ebc7fcf8d016 100644 --- a/apps/web-example/tsconfig.json +++ b/apps/web-example/tsconfig.json @@ -3,7 +3,8 @@ "compilerOptions": { "strict": true, "paths": { - "@/*": ["./*"] + "@/*": ["./*"], + "react-native-reanimated": ["../../packages/react-native-reanimated/src"] } }, "include": ["**/*.ts", "**/*.tsx"]