Github user omefire commented on a diff in the pull request:
https://github.com/apache/cordova-lib/pull/426#discussion_r59592544
--- Diff: cordova-lib/src/cordova/run.js ---
@@ -32,8 +32,10 @@ module.exports = function run(options) {
var hooksRunner = new HooksRunner(projectRoot);
return hooksRunner.fire('before_run', options)
.then(function() {
- // Run a prepare first, then shell out to run
- return require('./cordova').raw.prepare(options);
+ if (!options.options.noprepare) {
+ // Run a prepare first, then shell out to run
+ return require('./cordova').raw.prepare(options);
+ }
--- End diff --
Please add ```return Q();``` in the alternative code path
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]