@browserstack/accessibility-devtools-cli 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -11993,8 +11993,12 @@ async function main(args) {
|
|
|
11993
11993
|
process.exit(EXIT_CODES.SUCCESS);
|
|
11994
11994
|
}
|
|
11995
11995
|
console.log(formatResults(lintResultsFlat, inferOutputFormat(args)));
|
|
11996
|
+
const violationCount = lintResultsFlat.reduce(
|
|
11997
|
+
(sum, lintResult) => sum + lintResult.errorCount,
|
|
11998
|
+
0
|
|
11999
|
+
);
|
|
11996
12000
|
process.exit(
|
|
11997
|
-
|
|
12001
|
+
violationCount > 0 ? args.nonStrict ? EXIT_CODES.SUCCESS : EXIT_CODES.FAILURE : EXIT_CODES.SUCCESS
|
|
11998
12002
|
);
|
|
11999
12003
|
}
|
|
12000
12004
|
if (require.main === module) {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@browserstack/accessibility-devtools-cli",
|
|
3
3
|
"displayName": "BrowserStack Accessibility Linter CLI (Beta)",
|
|
4
4
|
"description": "Command-line interface for BrowserStack Accessibility Linter",
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.9",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Rishabh Jain",
|