-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get rid of relative import path of package.json idea from @tomfinney Co-authored-by: Mike McNamara <[email protected]>
- Loading branch information
1 parent
8ffa6dd
commit a8d20aa
Showing
3 changed files
with
20 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
module.exports = require('./lib/commonjs/expo-plugins'); | ||
const packageJson = require('./package.json'); | ||
|
||
const pkg = { | ||
// Prevent this plugin from being run more than once. | ||
// This pattern enables users to safely migrate off of this | ||
// out-of-tree `@config-plugins/intercom-react-native` to a future | ||
// upstream plugin in `intercom-react-native` | ||
name: packageJson.name, | ||
// Indicates that this plugin is dangerously linked to a module, | ||
// and might not work with the latest version of that module. | ||
version: packageJson.version, | ||
}; | ||
|
||
const plugin = require('./lib/commonjs/expo-plugins'); | ||
|
||
module.exports = plugin.default(pkg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters