@@ -50,10 +50,8 @@ export type DeployOptions = {
50
50
concise ?: boolean ;
51
51
'single-package' ?: boolean ;
52
52
status ?: RequestStatus ;
53
-
54
53
'pre-destructive-changes' ?: string ;
55
54
'post-destructive-changes' ?: string ;
56
-
57
55
'purge-on-delete' ?: boolean ;
58
56
} ;
59
57
@@ -143,16 +141,20 @@ export async function executeDeploy(
143
141
await deploy . start ( ) ;
144
142
}
145
143
} else {
146
- // instantiate source tracking
147
- // stl will decide, based on the org's properties, what needs to be done
148
- const stl = await SourceTracking . create ( {
149
- org,
150
- // mdapi format deploys don't require a project, but at this point we need one
151
- project : project ?? ( await SfProject . resolve ( ) ) ,
152
- subscribeSDREvents : true ,
153
- ignoreConflicts : opts [ 'ignore-conflicts' ] ,
154
- } ) ;
155
- registry = stl . registry ;
144
+ let stl : SourceTracking | undefined ;
145
+ if ( ! opts [ 'dry-run' ] ) {
146
+ // instantiate source tracking
147
+ // stl will decide, based on the org's properties, what needs to be done
148
+ stl = await SourceTracking . create ( {
149
+ org,
150
+ // mdapi format deploys don't require a project, but at this point we need one
151
+ project : project ?? ( await SfProject . resolve ( ) ) ,
152
+ subscribeSDREvents : true ,
153
+ ignoreConflicts : opts [ 'ignore-conflicts' ] ,
154
+ } ) ;
155
+ registry = stl . registry ;
156
+ }
157
+
156
158
componentSet = await buildComponentSet ( opts , stl ) ;
157
159
if ( componentSet . size === 0 ) {
158
160
if ( opts [ 'source-dir' ] ?? opts . manifest ?? opts . metadata ?? throwOnEmpty ) {
0 commit comments