Skip to content

Commit f10cee1

Browse files
authored
fix(cli): wait for help task to finish before exiting (#3160)
add a call to `await` on the default `taskHelp` to ensure both `npx stencil` and `npx stencil --help` generates the same output
1 parent ba919a0 commit f10cee1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cli/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export const runTask = async (
134134
break;
135135

136136
case 'help':
137-
taskHelp(config, config.logger, sys);
137+
await taskHelp(config, config.logger, sys);
138138
break;
139139

140140
case 'prerender':
@@ -162,7 +162,7 @@ export const runTask = async (
162162

163163
default:
164164
config.logger.error(`${config.logger.emoji('❌ ')}Invalid stencil command, please see the options below:`);
165-
taskHelp(config, config.logger, sys);
165+
await taskHelp(config, config.logger, sys);
166166
return config.sys.exit(1);
167167
}
168168
};

0 commit comments

Comments
 (0)