@shined/doctor 0.0.31 → 0.0.33
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/es/cli.mjs +5 -1
- package/package.json +2 -2
package/es/cli.mjs
CHANGED
|
@@ -8,7 +8,11 @@ cli.command('', 'check project health').option('-v, --verbose', 'Verbose output'
|
|
|
8
8
|
const cwd = options.cwd || process.cwd();
|
|
9
9
|
const standards = await __WEBPACK_EXTERNAL_MODULE__shined_doctor_binding_71127777__.Standards.create(cwd);
|
|
10
10
|
const res = await standards.validateAll();
|
|
11
|
-
|
|
11
|
+
const errorCount = res.reduce((count, msg)=>count + msg.diagnostics.filter((d)=>"Error" === d.severity).length, 0);
|
|
12
|
+
if (errorCount > 0) {
|
|
13
|
+
console.log(`Found ${errorCount} errors`);
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
12
16
|
const end = __WEBPACK_EXTERNAL_MODULE_node_perf_hooks_81520749__.performance.now();
|
|
13
17
|
console.log(`Time taken: ${end - start} milliseconds`);
|
|
14
18
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shined/doctor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.33",
|
|
4
4
|
"main": "es/index.mjs",
|
|
5
5
|
"types": "es/index.d.mts",
|
|
6
6
|
"bin": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"cac": "^6.7.14",
|
|
23
|
-
"@shined/doctor-binding": "0.0.
|
|
23
|
+
"@shined/doctor-binding": "0.0.33"
|
|
24
24
|
},
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/sheinsight/doctor-engine/issues"
|