From 79f243c7d36b30b8808792c4613efc1f775d7992 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 21 Oct 2025 23:08:28 +0200 Subject: [PATCH] Fix typescript --- .github/actions/setup-bun/action.yml | 4 ++-- bun.lock | 1 + bunfig.toml | 2 ++ ...s+0.30.1.patch => react-native-nitro-modules+0.30.2.patch} | 0 package.json | 1 + .../react-native-video/src/expo-plugins/writeToPodfile.ts | 4 ++-- 6 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 bunfig.toml rename example/patches/{react-native-nitro-modules+0.30.1.patch => react-native-nitro-modules+0.30.2.patch} (100%) diff --git a/.github/actions/setup-bun/action.yml b/.github/actions/setup-bun/action.yml index 18688b43..b9bb6272 100644 --- a/.github/actions/setup-bun/action.yml +++ b/.github/actions/setup-bun/action.yml @@ -13,7 +13,7 @@ runs: - name: Setup Bun uses: oven-sh/setup-bun@v2 with: - bun-version: 1.2.19 + bun-version: 1.3.0 - name: Cache dependencies id: bun-cache @@ -30,4 +30,4 @@ runs: working-directory: ${{ inputs.working-directory }} run: bun install shell: bash - \ No newline at end of file + diff --git a/bun.lock b/bun.lock index 4418851c..2fff036c 100644 --- a/bun.lock +++ b/bun.lock @@ -13,6 +13,7 @@ "@release-it/conventional-changelog": "^8.0.2", "@tsconfig/react-native": "^2.0.2", "@types/eslint__js": "^8.42.3", + "@types/node": "^24.9.1", "@types/react": "^18.2.44", "commitlint": "^17.0.2", "eslint": "^8.51.0", diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 00000000..57f75baf --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[install] +linker = "hoisted" diff --git a/example/patches/react-native-nitro-modules+0.30.1.patch b/example/patches/react-native-nitro-modules+0.30.2.patch similarity index 100% rename from example/patches/react-native-nitro-modules+0.30.1.patch rename to example/patches/react-native-nitro-modules+0.30.2.patch diff --git a/package.json b/package.json index cf9863ee..df8d1b1b 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@release-it/conventional-changelog": "^8.0.2", "@tsconfig/react-native": "^2.0.2", "@types/eslint__js": "^8.42.3", + "@types/node": "^24.9.1", "@types/react": "^18.2.44", "commitlint": "^17.0.2", "eslint": "^8.51.0", diff --git a/packages/react-native-video/src/expo-plugins/writeToPodfile.ts b/packages/react-native-video/src/expo-plugins/writeToPodfile.ts index 6ec7515c..b212e1f4 100644 --- a/packages/react-native-video/src/expo-plugins/writeToPodfile.ts +++ b/packages/react-native-video/src/expo-plugins/writeToPodfile.ts @@ -1,6 +1,6 @@ import { mergeContents } from '@expo/config-plugins/build/utils/generateCode'; -import fs from 'fs'; -import path from 'path'; +import fs from 'node:fs'; +import path from 'node:path'; export const writeToPodfile = ( projectRoot: string,