This commit is contained in:
khai96_ 2020-05-08 14:17:43 +07:00
parent 429bc133fd
commit fe1f80eaca
2 changed files with 1 additions and 0 deletions

BIN
dist/index.js vendored

Binary file not shown.

View File

@ -18,6 +18,7 @@ async function parsePath(pattern: string, inputName: string) {
const paths = await builder.glob()
if (paths.length !== 1) {
error(`Input ${inputName} is expected to match 1 path, but it matches ${paths.length}: ${inspect(paths)}`)
throw process.exit(1)
}
return paths[0]
}