Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit c76e1bc

Browse files
Merge pull request #974 from abhayastudios/master
fix for issue #968
2 parents 715862d + 8a10a52 commit c76e1bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

publish/scripts/installer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ module.exports = function($logger, $projectData, hookArgs) {
798798
var platform = hookArgs['checkForChangesOpts']['platform'].toLowerCase(); // ios | android
799799
var platformsDir = hookArgs['checkForChangesOpts']['projectData']['platformsDir'];
800800
var appResourcesDirectoryPath = hookArgs['checkForChangesOpts']['projectData']['appResourcesDirectoryPath'];
801-
var forcePrepare = true; // whether to force NS to run prepare
801+
var forcePrepare = true; // whether to force NS to run prepare, defaults to true
802802
var npfInfoPath = path.join(platformsDir, platform, ".pluginfirebaseinfo");
803803
var nsPrepareInfoPath = path.join(platformsDir, platform, ".nsprepareinfo");
804804
var copyPlistOpts = { platform, appResourcesDirectoryPath, buildType, $logger }
@@ -818,10 +818,10 @@ module.exports = function($logger, $projectData, hookArgs) {
818818
$logger.info('nativescript-plugin-firebase: running release build or change in environment detected, forcing prepare!');
819819
820820
if (fs.existsSync(npfInfoPath)) { fs.unlinkSync(npfInfoPath); }
821-
fs.unlinkSync(nsPrepareInfoPath);
821+
if (fs.existsSync(nsPrepareInfoPath)) { fs.unlinkSync(nsPrepareInfoPath); }
822822
823823
if (copyPlist(copyPlistOpts)) { resolve(); } else { reject(); }
824-
} else { if (copyPlist(copyPlistOpts)) { resolve(); } else { reject(); } }
824+
} else { resolve(); }
825825
});
826826
};
827827

0 commit comments

Comments
 (0)