File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ 7.1.1
2+ -------------------
3+ * fix: Rename platform config ` iphone ` to ` ios ` to align with
4+ ` ti.targetPlatforms `
5+
167.1.0 (5/25/2024)
27-------------------
38 * feat: Support async hook ` init() ` functions
Original file line number Diff line number Diff line change 11{
22 "name" : " titanium" ,
3- "version" : " 7.1.0 " ,
3+ "version" : " 7.1.1 " ,
44 "author" : " TiDev, Inc. <npm@tidev.io>" ,
55 "description" : " Command line interface for building Titanium SDK apps" ,
66 "type" : " module" ,
Original file line number Diff line number Diff line change @@ -681,6 +681,7 @@ export class CLI {
681681 const platformConf = this . command . conf . platforms [ this . argv . platform ] ;
682682
683683 this . argv . $platform = this . argv . platform ;
684+ this . command . setOptionValue ( 'platform' , this . argv . platform ) ;
684685
685686 // set platform context
686687 this . command . platform = {
@@ -947,6 +948,13 @@ export class CLI {
947948
948949 // if we have a `--platforms` option branch, override the help
949950 if ( conf . platforms ) {
951+ // the build command's config `platforms` uses `iphone`, but
952+ // the `ti.targetPlatforms` uses `ios`, so rename the key
953+ if ( ! conf . platforms . ios && conf . platforms . iphone ) {
954+ conf . platforms . ios = conf . platforms . iphone ;
955+ delete conf . platforms . iphone ;
956+ }
957+
950958 this . debugLogger . trace ( `Detected conf.platforms loading "${ cmdName } ", overriding createHelp()` ) ;
951959 this . command . createHelp = ( ) => {
952960 return Object . assign ( new TiHelp ( this , conf . platforms ) , this . command . configureHelp ( ) ) ;
You can’t perform that action at this time.
0 commit comments