From a1061f8a90138fbfe529dbb28b8619a652073e30 Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Fri, 14 Jun 2024 10:51:21 +0200 Subject: [PATCH 1/2] Fix hotreload in web-example --- apps/web-example/index.js | 2 ++ apps/web-example/tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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"] From 33a93f62831af92506a379340747f6152211abbb Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Fri, 14 Jun 2024 13:18:30 +0200 Subject: [PATCH 2/2] Update CI --- .github/workflows/static-example-apps-checks.yml | 5 +++++ 1 file changed, 5 insertions(+) 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