debug-run 0.5.4 → 0.5.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/index.cjs +4 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3066,6 +3066,7 @@ var path = __toESM(require("node:path"), 1);
|
|
|
3066
3066
|
var os = __toESM(require("node:os"), 1);
|
|
3067
3067
|
var import_promises2 = require("node:stream/promises");
|
|
3068
3068
|
var import_node_stream = require("node:stream");
|
|
3069
|
+
var import_node_url = require("node:url");
|
|
3069
3070
|
var execAsync = (0, import_node_util.promisify)(import_node_child_process.exec);
|
|
3070
3071
|
var NETCOREDBG_VERSION = "3.1.3-1062";
|
|
3071
3072
|
var NETCOREDBG_BASE_URL = `https://github.com/Samsung/netcoredbg/releases/download/${NETCOREDBG_VERSION}`;
|
|
@@ -3119,8 +3120,7 @@ function getDownloadUrl() {
|
|
|
3119
3120
|
return `${NETCOREDBG_BASE_URL}/${filename}`;
|
|
3120
3121
|
}
|
|
3121
3122
|
function getAdaptersDir() {
|
|
3122
|
-
const
|
|
3123
|
-
const currentFilePath = new URL(currentFileUrl).pathname;
|
|
3123
|
+
const currentFilePath = (0, import_node_url.fileURLToPath)(__importMetaUrl);
|
|
3124
3124
|
const packageRoot = path.resolve(path.dirname(currentFilePath), "..", "..");
|
|
3125
3125
|
return path.join(packageRoot, "bin", "adapters");
|
|
3126
3126
|
}
|
|
@@ -7210,7 +7210,8 @@ function getSkillTargets(options) {
|
|
|
7210
7210
|
}
|
|
7211
7211
|
async function installSkill(options = {}) {
|
|
7212
7212
|
const path12 = await import("node:path");
|
|
7213
|
-
const
|
|
7213
|
+
const { fileURLToPath: fileURLToPath2 } = await import("node:url");
|
|
7214
|
+
const moduleDir = path12.dirname(fileURLToPath2(__importMetaUrl));
|
|
7214
7215
|
const possibleSources = [
|
|
7215
7216
|
path12.join(moduleDir, "..", ".claude", "skills", "debug-run"),
|
|
7216
7217
|
path12.join(moduleDir, ".claude", "skills", "debug-run"),
|