Skip to content

Commit 5f5f9e3

Browse files
committed
[skip ci] fix(build/serve): first argument is removed in legacy commands
1 parent 0f76198 commit 5f5f9e3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

index.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,11 @@ module.exports = (api, options) => {
372372
console.log(
373373
'This command is deprecated. Please use electron:build instead.'
374374
)
375-
return api.service.run('electron:build', args, rawArgs)
375+
return api.service.run(
376+
'electron:build',
377+
{ ...args, _: ['First arg is removed', ...args._] },
378+
['First arg is removed', ...rawArgs]
379+
)
376380
}
377381
)
378382

@@ -388,7 +392,11 @@ module.exports = (api, options) => {
388392
console.log(
389393
'This command is deprecated. Please use electron:serve instead.'
390394
)
391-
return api.service.run('electron:serve', args, rawArgs)
395+
return api.service.run(
396+
'electron:serve',
397+
{ ...args, _: ['First arg is removed', ...args._] },
398+
['First arg is removed', ...rawArgs]
399+
)
392400
}
393401
)
394402
}

0 commit comments

Comments
 (0)