Skip to content

Commit b597dec

Browse files
authoredJan 7, 2024
Fix target option on macOS (#332)
1 parent 31da4c3 commit b597dec

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎index.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,15 @@ const baseOpen = async options => {
238238
}
239239
}
240240

241-
if (options.target) {
242-
cliArguments.push(options.target);
243-
}
244-
245241
if (platform === 'darwin' && appArguments.length > 0) {
246242
cliArguments.push('--args', ...appArguments);
247243
}
248244

245+
// This has to come after `--args`.
246+
if (options.target) {
247+
cliArguments.push(options.target);
248+
}
249+
249250
const subprocess = childProcess.spawn(command, cliArguments, childProcessOptions);
250251

251252
if (options.wait) {

0 commit comments

Comments
 (0)
Please sign in to comment.