Skip to content

Commit b21326e

Browse files
committed
Have scan use the cwd override as its fallback targets
1 parent c300fd9 commit b21326e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/scan/cmd-scan-create.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,14 @@ async function run(
233233
dryRun,
234234
)
235235

236-
// Accept zero or more paths. Default to cwd() if none given.
237-
let targets = cli.input || [process.cwd()]
238-
239236
const cwd =
240237
cwdOverride && cwdOverride !== 'process.cwd()'
241238
? path.resolve(process.cwd(), String(cwdOverride))
242239
: process.cwd()
243240

241+
// Accept zero or more paths. Default to cwd() if none given.
242+
let targets = cli.input || [cwd]
243+
244244
const sockJson = await readOrDefaultSocketJson(cwd)
245245

246246
// Note: This needs meow booleanDefault=undefined

0 commit comments

Comments
 (0)