Github user stevengill commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/252#discussion_r33314837
  
    --- Diff: cordova-lib/src/cordova/platform.js ---
    @@ -161,8 +161,17 @@ function addHelper(cmd, hooksRunner, projectRoot, 
targets, opts) {
                         }
                         return superspawn.spawn(bin, args, copts);
                     }).then(function() {
    -                    copy_cordova_js(projectRoot, platform);
    -                    copy_cordovajs_src(projectRoot, platform, 
platDetails.libDir);
    +                    var platform_www = path.join(projectRoot, 'platforms', 
platform, 'platform_www');
    +
    +                    // only want to copy cordova_js once, when the 
platform is added
    +                    if (!fs.existsSync(path.join(platform_www, 
'cordova.js'))) {
    --- End diff --
    
    You don't need this check. These functions only get run once when the 
platform gets added.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to