@delfini/cli 0.1.1 → 0.1.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/{chunk-PMVL53TT.js → chunk-IDYMVTTU.js} +11 -2
- package/dist/cli.cjs +11 -2
- package/dist/cli.js +1 -1
- package/dist/index.cjs +11 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -264,8 +264,17 @@ var CLAUDE_MD_FILENAME = "CLAUDE.md";
|
|
|
264
264
|
var SUPPORTED_TOOL = "CLAUDE";
|
|
265
265
|
var TEMPLATES_DIR = resolveTemplatesDir();
|
|
266
266
|
function resolveTemplatesDir() {
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
let dir = dirname(fileURLToPath(import.meta.url));
|
|
268
|
+
for (let i = 0; i < 5; i++) {
|
|
269
|
+
const candidate = resolve(dir, "templates");
|
|
270
|
+
if (existsSync2(join2(candidate, "SKILL.md"))) {
|
|
271
|
+
return candidate;
|
|
272
|
+
}
|
|
273
|
+
const parent = dirname(dir);
|
|
274
|
+
if (parent === dir) break;
|
|
275
|
+
dir = parent;
|
|
276
|
+
}
|
|
277
|
+
throw new Error("templates/ directory not found relative to the CLI module");
|
|
269
278
|
}
|
|
270
279
|
async function runInstall(targetPath, options) {
|
|
271
280
|
const tool = options?.tool ?? SUPPORTED_TOOL;
|
package/dist/cli.cjs
CHANGED
|
@@ -2041,8 +2041,17 @@ var CLAUDE_MD_FILENAME = "CLAUDE.md";
|
|
|
2041
2041
|
var SUPPORTED_TOOL = "CLAUDE";
|
|
2042
2042
|
var TEMPLATES_DIR = resolveTemplatesDir();
|
|
2043
2043
|
function resolveTemplatesDir() {
|
|
2044
|
-
|
|
2045
|
-
|
|
2044
|
+
let dir = (0, import_node_path2.dirname)((0, import_node_url.fileURLToPath)(importMetaUrl));
|
|
2045
|
+
for (let i = 0; i < 5; i++) {
|
|
2046
|
+
const candidate = (0, import_node_path2.resolve)(dir, "templates");
|
|
2047
|
+
if ((0, import_node_fs2.existsSync)((0, import_node_path2.join)(candidate, "SKILL.md"))) {
|
|
2048
|
+
return candidate;
|
|
2049
|
+
}
|
|
2050
|
+
const parent = (0, import_node_path2.dirname)(dir);
|
|
2051
|
+
if (parent === dir) break;
|
|
2052
|
+
dir = parent;
|
|
2053
|
+
}
|
|
2054
|
+
throw new Error("templates/ directory not found relative to the CLI module");
|
|
2046
2055
|
}
|
|
2047
2056
|
async function runInstall(targetPath, options) {
|
|
2048
2057
|
const tool = options?.tool ?? SUPPORTED_TOOL;
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -7381,8 +7381,17 @@ var CLAUDE_MD_FILENAME = "CLAUDE.md";
|
|
|
7381
7381
|
var SUPPORTED_TOOL = "CLAUDE";
|
|
7382
7382
|
var TEMPLATES_DIR = resolveTemplatesDir();
|
|
7383
7383
|
function resolveTemplatesDir() {
|
|
7384
|
-
|
|
7385
|
-
|
|
7384
|
+
let dir = (0, import_node_path3.dirname)((0, import_node_url.fileURLToPath)(importMetaUrl));
|
|
7385
|
+
for (let i = 0; i < 5; i++) {
|
|
7386
|
+
const candidate = (0, import_node_path3.resolve)(dir, "templates");
|
|
7387
|
+
if ((0, import_node_fs3.existsSync)((0, import_node_path3.join)(candidate, "SKILL.md"))) {
|
|
7388
|
+
return candidate;
|
|
7389
|
+
}
|
|
7390
|
+
const parent = (0, import_node_path3.dirname)(dir);
|
|
7391
|
+
if (parent === dir) break;
|
|
7392
|
+
dir = parent;
|
|
7393
|
+
}
|
|
7394
|
+
throw new Error("templates/ directory not found relative to the CLI module");
|
|
7386
7395
|
}
|
|
7387
7396
|
async function runInstall(targetPath, options) {
|
|
7388
7397
|
const tool = options?.tool ?? SUPPORTED_TOOL;
|
package/dist/index.js
CHANGED