Skip to content

Commit c33f1d5

Browse files
committed
:)
1 parent 656b9b9 commit c33f1d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/api/cli/src/electron-forge.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ program
2121
.command('package', 'Package the current Electron application')
2222
.command('make', 'Generate distributables for the current Electron application')
2323
.command('publish', 'Publish the current Electron application')
24-
.hook('preSubcommand', async () => {
24+
.hook('preSubcommand', async (_command, subcommand) => {
2525
if (!process.argv.includes('--help') && !process.argv.includes('-h')) {
2626
const runner = new Listr<{
2727
command: string;
@@ -30,7 +30,7 @@ program
3030
{
3131
title: 'Checking your system',
3232
task: async (ctx, task) => {
33-
ctx.command = commands[0];
33+
ctx.command = subcommand.name();
3434
return await checkSystem(task);
3535
},
3636
},

0 commit comments

Comments
 (0)