Skip to content

Commit bea8a36

Browse files
chore: disable stl when other flags are used
1 parent 80de220 commit bea8a36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/deploy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ export async function executeDeploy(
142142
}
143143
} else {
144144
let stl: SourceTracking | undefined;
145-
if (!opts['dry-run']) {
145+
if (!(opts['dry-run'] ?? opts.manifest ?? opts.metadata ?? opts['source-dir'])) {
146+
// if not dry-run, or with source-tracking enabling flags
146147
// instantiate source tracking
147148
// stl will decide, based on the org's properties, what needs to be done
148149
stl = await SourceTracking.create({

0 commit comments

Comments
 (0)