@hcu-lab.me/mcp-device 1.0.7 → 1.0.8
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/device/self-update.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -221,7 +221,9 @@ async function runNpm(nodePath, npmCliPath, args, execFile) {
|
|
|
221
221
|
return await execFile(nodePath, [npmCliPath, ...args]);
|
|
222
222
|
}
|
|
223
223
|
export async function findCurrentPackageRoot(entrypoint = process.argv[1]) {
|
|
224
|
-
|
|
224
|
+
const resolvedEntrypoint = path.resolve(entrypoint || process.execPath);
|
|
225
|
+
const canonicalEntrypoint = await fs.realpath(resolvedEntrypoint).catch(() => resolvedEntrypoint);
|
|
226
|
+
let current = path.dirname(canonicalEntrypoint);
|
|
225
227
|
for (let i = 0; i < 8; i++) {
|
|
226
228
|
const manifest = path.join(current, 'package.json');
|
|
227
229
|
if (await exists(manifest)) {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.0.
|
|
1
|
+
export declare const VERSION = "1.0.8";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.0.
|
|
1
|
+
export const VERSION = '1.0.8';
|