Skip to content

Commit

Permalink
chore: add expo plugin support
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr committed Nov 15, 2023
1 parent 8af7ad5 commit 1e6d6e7
Show file tree
Hide file tree
Showing 3 changed files with 265 additions and 6 deletions.
16 changes: 16 additions & 0 deletions app.plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const { createRunOncePlugin } = require('@expo/config-plugins');
// keeping the name, and version in sync with it's package
const pkg = require('./package.json');

const withNothing = (config) => {
return config;
};

module.exports = createRunOncePlugin(
// the plugin to guard
withNothing,
// an identifier used to track if the plugin has already been run
pkg.name,
// optional version property
pkg.version
);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"devDependencies": {
"@commitlint/config-conventional": "^17.0.2",
"@evilmartians/lefthook": "^1.5.0",
"@expo/config-plugins": "^7.2.5",
"@react-native/eslint-config": "^0.72.2",
"@release-it/conventional-changelog": "^5.0.0",
"@types/jest": "^28.1.2",
Expand Down
Loading

0 comments on commit 1e6d6e7

Please sign in to comment.