Skip to content

Commit

Permalink
fix incorrect if statement in watchRecursive
Browse files Browse the repository at this point in the history
  • Loading branch information
morris committed Jul 1, 2024
1 parent d0bf12a commit fa6024c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/watchRecursive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function watchRecursive(options: WatchRecursiveOptions) {
}

export async function importWatchFunctions() {
if (!canImportModule('typescript')) {
if (!(await canImportModule('typescript'))) {
throw new Error(
"Cannot watch files: Could not import package 'typescript'",
);
Expand Down

0 comments on commit fa6024c

Please sign in to comment.