cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikhilkh <>
Subject [GitHub] cordova-lib pull request: CB-9051 Plugins don't get re-added if pl...
Date Thu, 21 May 2015 17:01:24 GMT
Github user nikhilkh commented on a diff in the pull request:
    --- Diff: cordova-lib/src/cordova/platform.js ---
    @@ -663,6 +668,12 @@ function copy_cordovajs_src(projectRoot, platform, platLib) {
    +// Remove <platform>.json file from plugins directory.
    +function removePlatformPluginsJson(projectRoot, target) {
    +    var plugins_json = path.join(projectRoot, 'plugins', target + '.json');
    +    if (fs.existsSync(plugins_json)) shell.rm(plugins_json);
    --- End diff --
    Nit: you can use shell.rm('-f', plugins_json) and then you do not need an exists check.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message