Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Sep 13, 2024
1 parent b321918 commit 031e339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/toolkit/utils/src/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const isDevCommand = () => {
export const deprecatedCommands = (
program: Command & { commandsMap: Map<string, Command> },
) => {
const lintCommand = program.commandsMap.get('lint');
const lintCommand = program.commandsMap?.get('lint');
if (!lintCommand) {
program
.command('lint [...files]')
Expand All @@ -37,7 +37,7 @@ export const deprecatedCommands = (
);
});
}
const preCommitCommand = program.commandsMap.get('pre-commit');
const preCommitCommand = program.commandsMap?.get('pre-commit');
if (!preCommitCommand) {
program
.command('pre-commit')
Expand Down

0 comments on commit 031e339

Please sign in to comment.