Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
},
"patchedDependencies": {
"@langchain/core": "patches/@langchain__core.patch",
"react-native-track-player@4.1.2": "patches/react-native-track-player@4.1.2.patch"
"react-native-track-player@4.1.2": "patches/react-native-track-player@4.1.2.patch",
"@expo/cli@54.0.23": "patches/@expo__cli@54.0.23.patch"
}
},
"packageManager": "pnpm@9.15.0"
Expand Down
32 changes: 32 additions & 0 deletions patches/@expo__cli@54.0.23.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
diff --git a/build/src/utils/filePath.js b/build/src/utils/filePath.js
index 68eed166a8061d9a2488a454aeaa13487416d53b..6ff1ae8b6a1a37c722aa0e71182d2835a5eca9a6 100644
--- a/build/src/utils/filePath.js
+++ b/build/src/utils/filePath.js
@@ -23,6 +23,13 @@ function _fs() {
};
return data;
}
+function _path() {
+ const data = /*#__PURE__*/ _interop_require_default(require("path"));
+ _path = function() {
+ return data;
+ };
+ return data;
+}
function _interop_require_default(obj) {
return obj && obj.__esModule ? obj : {
default: obj
@@ -30,6 +37,13 @@ function _interop_require_default(obj) {
}
const REGEXP_REPLACE_SLASHES = /\\/g;
function resolveRealEntryFilePath(projectRoot, entryFile) {
+ // A relative --entry-file is relative to the project root (not the server
+ // root). Resolve it to an absolute path first so Metro gets a correct
+ // mainModuleName in pnpm monorepos on Windows. Mirrors the fix in
+ // expo/expo#44414 (SDK 55), not backported to SDK 54.
+ if (!_path().default.isAbsolute(entryFile)) {
+ entryFile = _path().default.resolve(process.cwd(), projectRoot, entryFile);
+ }
if (projectRoot.startsWith('/private/var') && entryFile.startsWith('/var')) {
return _fs().default.realpathSync(entryFile);
}
7 changes: 5 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.