File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -788,9 +788,13 @@ export class PlatformService extends EventEmitter implements IPlatformService {
788
788
789
789
private getLatestApplicationPackage ( buildOutputPath : string , validBuildOutputData : IValidBuildOutputData ) : IApplicationPackage {
790
790
let packages = this . getApplicationPackages ( buildOutputPath , validBuildOutputData ) ;
791
+ const packageExtName = path . extname ( validBuildOutputData . packageNames [ 0 ] ) ;
791
792
if ( packages . length === 0 ) {
792
- const packageExtName = path . extname ( validBuildOutputData . packageNames [ 0 ] ) ;
793
- this . $errors . fail ( "No %s found in %s directory" , packageExtName , buildOutputPath ) ;
793
+ this . $errors . fail ( `No ${ packageExtName } found in ${ buildOutputPath } directory.` ) ;
794
+ }
795
+
796
+ if ( packages . length > 1 ) {
797
+ this . $logger . warn ( `More than one ${ packageExtName } found in ${ buildOutputPath } directory. Using the last one produced from build.` ) ;
794
798
}
795
799
796
800
packages = _ . sortBy ( packages , pkg => pkg . time ) . reverse ( ) ; // We need to reverse because sortBy always sorts in ascending order
You can’t perform that action at this time.
0 commit comments