From 0740247ea81819f8386e7fe2484506d995a86ee4 Mon Sep 17 00:00:00 2001 From: Desmond Brand Date: Tue, 26 Aug 2025 16:56:37 -0700 Subject: [PATCH] No longer depend on relative location of node_modules This import fails in my pnpm monorepo because pnpm puts `node_modules` in a different place (with more nesting and symlinks etc). This small changes resolves it though. --- packages/react-native-device-activity/app.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native-device-activity/app.plugin.js b/packages/react-native-device-activity/app.plugin.js index be71b0ed..2abfa4c7 100644 --- a/packages/react-native-device-activity/app.plugin.js +++ b/packages/react-native-device-activity/app.plugin.js @@ -6,7 +6,7 @@ const withCopyTargetFolder = require("./config-plugin/withCopyTargetFolder"); const withEntitlementsPlugin = require("./config-plugin/withEntitlements"); const withInfoPlistAppGroup = require("./config-plugin/withInfoPlistAppGroup"); const withXcodeSettings = require("./config-plugin/withXCodeSettings"); -const pkg = require("../../package.json"); +const pkg = require(process.cwd() + "/package.json"); /** @type {import('@expo/config-plugins').ConfigPlugin<{ appleTeamId?: string; match?: string; appGroup: string; copyToTargetFolder?: boolean }>} */ const withActivityMonitorExtensionPlugin = (config, props) => {