Skip to content

Commit 0740247

Browse files
authored
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.
1 parent 30e57ad commit 0740247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-native-device-activity/app.plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const withCopyTargetFolder = require("./config-plugin/withCopyTargetFolder");
66
const withEntitlementsPlugin = require("./config-plugin/withEntitlements");
77
const withInfoPlistAppGroup = require("./config-plugin/withInfoPlistAppGroup");
88
const withXcodeSettings = require("./config-plugin/withXCodeSettings");
9-
const pkg = require("../../package.json");
9+
const pkg = require(process.cwd() + "/package.json");
1010

1111
/** @type {import('@expo/config-plugins').ConfigPlugin<{ appleTeamId?: string; match?: string; appGroup: string; copyToTargetFolder?: boolean }>} */
1212
const withActivityMonitorExtensionPlugin = (config, props) => {

0 commit comments

Comments
 (0)