@@ -50,10 +50,8 @@ export type DeployOptions = {
5050 concise ?: boolean ;
5151 'single-package' ?: boolean ;
5252 status ?: RequestStatus ;
53-
5453 'pre-destructive-changes' ?: string ;
5554 'post-destructive-changes' ?: string ;
56-
5755 'purge-on-delete' ?: boolean ;
5856} ;
5957
@@ -143,16 +141,20 @@ export async function executeDeploy(
143141 await deploy . start ( ) ;
144142 }
145143 } 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+
156158 componentSet = await buildComponentSet ( opts , stl ) ;
157159 if ( componentSet . size === 0 ) {
158160 if ( opts [ 'source-dir' ] ?? opts . manifest ?? opts . metadata ?? throwOnEmpty ) {
0 commit comments