We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23fc08f commit 414eb98Copy full SHA for 414eb98
1 file changed
src/index.ts
@@ -347,13 +347,15 @@ export async function create({
347
const matchedTool = extraTools.find(
348
(extraTool) => extraTool.value === tool,
349
);
350
- if (matchedTool?.action) {
351
- await matchedTool.action();
352
- }
353
- if (matchedTool?.command) {
354
- runCommand(matchedTool.command, distFolder);
+ if (matchedTool) {
+ if (matchedTool.action) {
+ await matchedTool.action();
+ }
+ if (matchedTool.command) {
355
+ runCommand(matchedTool.command, distFolder);
356
357
+ continue;
358
}
- continue;
359
360
361
// Handle built-in tools
0 commit comments