@byh3071/vhk 2.0.1 → 2.0.2
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/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47,7 +47,8 @@ import {
|
|
|
47
47
|
|
|
48
48
|
// src/index.ts
|
|
49
49
|
import { Command, Help } from "commander";
|
|
50
|
-
import {
|
|
50
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
51
|
+
import fs13 from "fs";
|
|
51
52
|
import chalk35 from "chalk";
|
|
52
53
|
import inquirer14 from "inquirer";
|
|
53
54
|
|
|
@@ -7114,7 +7115,14 @@ program.action(async () => {
|
|
|
7114
7115
|
return diff();
|
|
7115
7116
|
}
|
|
7116
7117
|
});
|
|
7117
|
-
var
|
|
7118
|
+
var getRealPath = (p) => {
|
|
7119
|
+
try {
|
|
7120
|
+
return fs13.realpathSync(p);
|
|
7121
|
+
} catch {
|
|
7122
|
+
return p;
|
|
7123
|
+
}
|
|
7124
|
+
};
|
|
7125
|
+
var isMainModule = !!process.argv[1] && getRealPath(fileURLToPath4(import.meta.url)) === getRealPath(process.argv[1]);
|
|
7118
7126
|
if (isMainModule) {
|
|
7119
7127
|
try {
|
|
7120
7128
|
const nlInput = detectNaturalLanguageInput(process.argv);
|
package/package.json
CHANGED