@shined/doctor 0.0.21-snapshot.7 → 0.0.21-snapshot.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/es/cli.d.mts +1 -1
- package/es/cli.mjs +12 -16
- package/es/index.d.mts +1 -1
- package/es/index.mjs +1 -1
- package/package.json +2 -2
package/es/cli.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|
package/es/cli.mjs
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const end = performance.now();
|
|
14
|
-
console.log(`Time taken: ${end - start} milliseconds`);
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_cac__ from "cac";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shined_doctor_binding_71127777__ from "@shined/doctor-binding";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_perf_hooks_81520749__ from "node:perf_hooks";
|
|
4
|
+
const cli = (0, __WEBPACK_EXTERNAL_MODULE_cac__.cac)("doctor");
|
|
5
|
+
cli.command('', 'check project health').option('-v, --verbose', 'Verbose output').option('--cwd <path>', 'Current working directory').action(async (options)=>{
|
|
6
|
+
const start = __WEBPACK_EXTERNAL_MODULE_node_perf_hooks_81520749__.performance.now();
|
|
7
|
+
(0, __WEBPACK_EXTERNAL_MODULE__shined_doctor_binding_71127777__.initializeLogger)();
|
|
8
|
+
const cwd = options.cwd || process.cwd();
|
|
9
|
+
const res = await (0, __WEBPACK_EXTERNAL_MODULE__shined_doctor_binding_71127777__.doctor)(cwd);
|
|
10
|
+
if (res.length > 0) process.exit(1);
|
|
11
|
+
const end = __WEBPACK_EXTERNAL_MODULE_node_perf_hooks_81520749__.performance.now();
|
|
12
|
+
console.log(`Time taken: ${end - start} milliseconds`);
|
|
15
13
|
});
|
|
16
14
|
cli.help();
|
|
17
15
|
cli.parse();
|
|
18
|
-
|
|
19
|
-
//#endregion
|
package/es/index.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@shined/doctor-binding";
|
|
1
|
+
export * from "@shined/doctor-binding";
|
package/es/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "@shined/doctor-binding"
|
|
1
|
+
export * from "@shined/doctor-binding";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shined/doctor",
|
|
3
|
-
"version": "0.0.21-snapshot.
|
|
3
|
+
"version": "0.0.21-snapshot.9",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"types": "es/index.d.ts",
|
|
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.21-snapshot.
|
|
23
|
+
"@shined/doctor-binding": "0.0.21-snapshot.9"
|
|
24
24
|
},
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/sheinsight/doctor-engine/issues"
|