@@ -91,23 +91,23 @@ class TangramClient {
91
91
}
92
92
93
93
async push ( target : string ) : Promise < void > {
94
- await $ `${ this . exe } push ${ target } ` . quiet ( ) ;
94
+ await $ `${ this . exe } push ${ target } ` ;
95
95
}
96
96
97
97
async cancel ( processId : string , token : string ) : Promise < void > {
98
98
await $ `${ this . exe } cancel ${ processId } ${ token } ` . quiet ( ) ;
99
99
}
100
100
101
101
async format ( path : string ) : Promise < void > {
102
- await $ `${ this . exe } format ${ path } ` . quiet ( ) ;
102
+ await $ `${ this . exe } format ${ path } ` ;
103
103
}
104
104
105
105
async check ( path : string ) : Promise < void > {
106
- await $ `${ this . exe } check ${ path } ` . quiet ( ) ;
106
+ await $ `${ this . exe } check ${ path } ` ;
107
107
}
108
108
109
109
async publish ( path : string ) : Promise < void > {
110
- await $ `${ this . exe } publish ${ path } ` . quiet ( ) ;
110
+ await $ `${ this . exe } publish ${ path } ` ;
111
111
}
112
112
}
113
113
@@ -138,9 +138,11 @@ interface PackageFilter {
138
138
function resolvePackages ( filter : PackageFilter ) : string [ ] {
139
139
const blacklist = new Set ( [ "demo" , "sanity" , "webdemo" ] ) ;
140
140
let packages : string [ ] = [ ] ;
141
+ let wasExplicitlyIncluded = false ;
141
142
142
143
if ( filter . include && filter . include . length > 0 ) {
143
144
packages = [ ...filter . include ] ;
145
+ wasExplicitlyIncluded = true ;
144
146
} else {
145
147
const entries = fs . readdirSync ( packagesPath ( ) , { withFileTypes : true } ) ;
146
148
@@ -161,7 +163,9 @@ function resolvePackages(filter: PackageFilter): string[] {
161
163
packages = packages . filter ( ( pkg ) => ! filter . exclude ?. includes ( pkg ) ) ;
162
164
}
163
165
164
- return packages . sort ( ) ;
166
+ // Only sort if packages were discovered from the filesystem
167
+ // Preserve order if explicitly included via command-line arguments
168
+ return wasExplicitlyIncluded ? packages : packages . sort ( ) ;
165
169
}
166
170
167
171
class Configuration {
@@ -186,7 +190,7 @@ class Configuration {
186
190
} ) {
187
191
this . packages = options . packages || { } ;
188
192
this . actions = options . actions || [ ] ;
189
- this . parallel = options . parallel ?? true ;
193
+ this . parallel = options . parallel ?? false ;
190
194
this . tangram = options . tangram || this . detectTangramExe ( ) ;
191
195
this . currentPlatform = options . platform || this . detectPlatform ( ) ;
192
196
this . exports = options . exports || [ "default" ] ;
@@ -270,7 +274,7 @@ Flags:
270
274
--exclude=PKG Exclude specific packages
271
275
--dry-run Show what would be done without executing
272
276
--verbose Enable verbose output
273
- --sequential Run packages sequentially (default: parallel )
277
+ --parallel Run packages in parallel (default: sequential )
274
278
--platform=PLAT Override target platform
275
279
276
280
Action Dependencies:
@@ -300,7 +304,7 @@ function parseFromArgs(): Configuration {
300
304
test : { type : "boolean" , short : "t" , default : false } ,
301
305
"dry-run" : { type : "boolean" , default : false } ,
302
306
verbose : { type : "boolean" , default : false } ,
303
- sequential : { type : "boolean" , default : false } ,
307
+ parallel : { type : "boolean" , default : false } ,
304
308
export : { type : "string" , multiple : true } ,
305
309
exclude : { type : "string" , multiple : true } ,
306
310
platform : { type : "string" } ,
@@ -348,7 +352,7 @@ function parseFromArgs(): Configuration {
348
352
exclude : values . exclude ,
349
353
} ,
350
354
actions,
351
- parallel : ! values . sequential ,
355
+ parallel : values . parallel ?? false ,
352
356
exports,
353
357
dryRun : values [ "dry-run" ] ?? false ,
354
358
verbose : values . verbose ?? false ,
0 commit comments