Skip to content

Commit c107142

Browse files
committed
fix(target): invalid number target
closes #539
1 parent deadba0 commit c107142

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/features/target.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export function resolveTarget(
1818
return
1919
}
2020
}
21+
22+
if (typeof target === 'number') {
23+
throw new TypeError(`Invalid target: ${target}`)
24+
}
2125
const targets = resolveComma(toArray(target))
2226
if (targets.length)
2327
logger.info(

0 commit comments

Comments
 (0)