diff --git a/src/main.js b/src/main.js index bf6afa3..a7f3ced 100644 --- a/src/main.js +++ b/src/main.js @@ -27,7 +27,7 @@ export default (context) => { // This script has to be executed depending on the command line arguments, not // on the hook execution cycle. if ((context.hook === 'after_platform_add' && context.cmdLine.includes('platform add')) || - (context.hook === 'after_prepare' && context.cmdLine.includes('prepare')) || + (context.hook === 'after_prepare' || context.cmdLine.includes('prepare')) || (context.hook === 'after_plugin_add' && context.cmdLine.includes('plugin add'))) { getPlatformVersionsFromFileSystem(context, projectRoot).then((platformVersions) => { const IOS_MIN_DEPLOYMENT_TARGET = '7.0';