From fe1f80eaca67811d0a2e57c36f1772e6e8b84ce8 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Fri, 8 May 2020 14:17:43 +0700 Subject: [PATCH] Exit --- dist/index.js | Bin 413235 -> 413257 bytes src/inputs/index.ts | 1 + 2 files changed, 1 insertion(+) diff --git a/dist/index.js b/dist/index.js index 226a511da021ebc05baac09c0d5a137fe234e701..5599524d7174819365ea96204c4cf06a3fdbc106 100644 GIT binary patch delta 55 zcmdlyNAlzx$%ZYAM+-!)OEQY`%M}WW@{?1Gi}g|~GD|cJ+m9450x=U1GXpWp_9F$X G`F8<_nHOgO delta 33 kcmX>(M{@HV$%ZYAM+@3-7cc@b6A&{4G0XPb1*~~@0T6}{^#A|> diff --git a/src/inputs/index.ts b/src/inputs/index.ts index 313fa50..fa13ec4 100644 --- a/src/inputs/index.ts +++ b/src/inputs/index.ts @@ -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] }