From 87fe6bfa8331a3b79988c9f72443eef648c0b5ee Mon Sep 17 00:00:00 2001 From: filmaj Date: Mon, 7 Jun 2021 08:59:41 -0400 Subject: [PATCH] exit with code 1 in case of any errors, remove no longer used env var for testing. relates to architect/architect#1156 --- package.json | 2 +- src/cli.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8ef3bd1..cd195f4 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "lint": "eslint . --fix", "test": "npm run lint && npm run coverage", - "test:unit": "cross-env FUSE=0 tape 'test/unit/**/*-test.js' | tap-spec", + "test:unit": "cross-env tape 'test/unit/**/*-test.js' | tap-spec", "coverage": "cross-env nyc --reporter=lcov --reporter=text npm run test:unit", "test:integration": "cross-env tape test/integration/**/*-test.js | tap-spec", "rc": "npm version prerelease --preid RC" diff --git a/src/cli.js b/src/cli.js index 77e2574..f4834d6 100755 --- a/src/cli.js +++ b/src/cli.js @@ -75,6 +75,7 @@ async function main (args) { else { update.error(err) } + process.exit(1) } }