File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,11 @@ module.exports = Command.extend({
99
99
return validateRootUrl . run ( projectConfig , options . force )
100
100
. then ( validateLocationType . prepare ( projectConfig ) )
101
101
. then ( validateAllowNavigation . prepare ( false ) )
102
- . then ( validatePlatform . prepare ( ) )
102
+ . then ( function ( result ) {
103
+ if ( options . skipCordovaBuild !== true ) {
104
+ validatePlatform . run ( ) ;
105
+ }
106
+ } )
103
107
. then ( hook . prepare ( 'beforeBuild' , options ) )
104
108
. then ( function ( ) {
105
109
if ( options . skipEmberBuild !== true ) {
Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ describe('Build Command', function() {
139
139
expect ( tasks ) . to . deep . equal ( [
140
140
'validate-root-url' ,
141
141
'validate-allow-navigation' ,
142
- 'validate-platform' ,
143
142
'hook beforeBuild' ,
144
143
'ember-build' ,
145
144
'hook afterBuild'
You can’t perform that action at this time.
0 commit comments