ghost-bridge 0.2.3 → 0.2.5
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/cli.js +5 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -5453,12 +5453,13 @@ var require_lib = __commonJS({
|
|
|
5453
5453
|
// lib/utils.js
|
|
5454
5454
|
import path from "path";
|
|
5455
5455
|
import os2 from "os";
|
|
5456
|
+
import { fileURLToPath } from "url";
|
|
5456
5457
|
function getClaudeConfigPath() {
|
|
5457
5458
|
const homeDir = os2.homedir();
|
|
5458
5459
|
return path.join(homeDir, ".claude.json");
|
|
5459
5460
|
}
|
|
5460
5461
|
function getExtensionPath() {
|
|
5461
|
-
const __filename2 =
|
|
5462
|
+
const __filename2 = fileURLToPath(import.meta.url);
|
|
5462
5463
|
const currentDir = path.dirname(__filename2);
|
|
5463
5464
|
if (currentDir.endsWith("/dist") || currentDir.endsWith("\\dist")) {
|
|
5464
5465
|
return path.resolve(currentDir, "../extension");
|
|
@@ -5466,7 +5467,7 @@ function getExtensionPath() {
|
|
|
5466
5467
|
return path.resolve(currentDir, "../extension");
|
|
5467
5468
|
}
|
|
5468
5469
|
function getServerPath() {
|
|
5469
|
-
const __filename2 =
|
|
5470
|
+
const __filename2 = fileURLToPath(import.meta.url);
|
|
5470
5471
|
const currentDir = path.dirname(__filename2);
|
|
5471
5472
|
if (currentDir.endsWith("/dist") || currentDir.endsWith("\\dist")) {
|
|
5472
5473
|
return path.resolve(currentDir, "server.js");
|
|
@@ -5679,10 +5680,10 @@ var {
|
|
|
5679
5680
|
|
|
5680
5681
|
// bin/ghost-bridge.js
|
|
5681
5682
|
init_source();
|
|
5682
|
-
import { fileURLToPath } from "url";
|
|
5683
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
5683
5684
|
import path3 from "path";
|
|
5684
5685
|
import fs4 from "fs";
|
|
5685
|
-
var __filename =
|
|
5686
|
+
var __filename = fileURLToPath2(import.meta.url);
|
|
5686
5687
|
var __dirname = path3.dirname(__filename);
|
|
5687
5688
|
var packageJsonParams = JSON.parse(
|
|
5688
5689
|
fs4.readFileSync(path3.join(__dirname, "../package.json"), "utf-8")
|