From 245e2b23bd43121e945f705d8354b5fd5031711a Mon Sep 17 00:00:00 2001 From: Jakub Romanczyk Date: Wed, 3 Apr 2024 18:56:53 +0200 Subject: [PATCH] chore: hoist workspace packages to avoid workarounds in monorepo --- .npmrc | 3 ++- packages/TesterApp/webpack.config.mjs | 11 ----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.npmrc b/.npmrc index b1c3f64c1..a3e9b9f60 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ -auto-install-peers=false \ No newline at end of file +auto-install-peers=false +hoist-workspace-packages=true diff --git a/packages/TesterApp/webpack.config.mjs b/packages/TesterApp/webpack.config.mjs index a0234ca82..6e30dd2e7 100644 --- a/packages/TesterApp/webpack.config.mjs +++ b/packages/TesterApp/webpack.config.mjs @@ -93,17 +93,6 @@ export default (env) => { alias: { 'react-native': reactNativePath, }, - /** - * Because Re.Pack is symlinked from it's workspace, we need to provide a fallback for - * `react-native-event-source` package used for lazyCompilation. This is not needed in - * normal projects. - */ - fallback: { - 'react-native-event-source': path.join( - dirname, - 'node_modules/react-native-event-source' - ), - }, }, /** * Configures output.