We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 656b9b9 commit c33f1d5Copy full SHA for c33f1d5
packages/api/cli/src/electron-forge.ts
@@ -21,7 +21,7 @@ program
21
.command('package', 'Package the current Electron application')
22
.command('make', 'Generate distributables for the current Electron application')
23
.command('publish', 'Publish the current Electron application')
24
- .hook('preSubcommand', async () => {
+ .hook('preSubcommand', async (_command, subcommand) => {
25
if (!process.argv.includes('--help') && !process.argv.includes('-h')) {
26
const runner = new Listr<{
27
command: string;
@@ -30,7 +30,7 @@ program
30
{
31
title: 'Checking your system',
32
task: async (ctx, task) => {
33
- ctx.command = commands[0];
+ ctx.command = subcommand.name();
34
return await checkSystem(task);
35
},
36
0 commit comments