substrate-ai 0.19.48 → 0.19.49
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/index.js +4 -13
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1296,23 +1296,15 @@ async function detectNodeBuildTool(dir) {
|
|
|
1296
1296
|
const TASK_RUNNER_MARKERS = [
|
|
1297
1297
|
{
|
|
1298
1298
|
file: "justfile",
|
|
1299
|
-
runner: "just"
|
|
1300
|
-
listCommand: ["just", "--list"]
|
|
1299
|
+
runner: "just"
|
|
1301
1300
|
},
|
|
1302
1301
|
{
|
|
1303
1302
|
file: "Justfile",
|
|
1304
|
-
runner: "just"
|
|
1305
|
-
listCommand: ["just", "--list"]
|
|
1303
|
+
runner: "just"
|
|
1306
1304
|
},
|
|
1307
1305
|
{
|
|
1308
1306
|
file: "Makefile",
|
|
1309
|
-
runner: "make"
|
|
1310
|
-
listCommand: []
|
|
1311
|
-
},
|
|
1312
|
-
{
|
|
1313
|
-
file: "Taskfile.yml",
|
|
1314
|
-
runner: "task",
|
|
1315
|
-
listCommand: ["task", "--list"]
|
|
1307
|
+
runner: "make"
|
|
1316
1308
|
}
|
|
1317
1309
|
];
|
|
1318
1310
|
/** Known build-related target names, in preference order. */
|
|
@@ -1339,7 +1331,6 @@ async function detectTaskRunner(dir) {
|
|
|
1339
1331
|
if (!await fileExists(path$1.join(dir, marker.file))) continue;
|
|
1340
1332
|
if (marker.runner === "just") return detectJustTargets(dir, marker.file);
|
|
1341
1333
|
if (marker.runner === "make") return detectMakeTargets(dir);
|
|
1342
|
-
return { runner: "task" };
|
|
1343
1334
|
}
|
|
1344
1335
|
return null;
|
|
1345
1336
|
}
|
|
@@ -1359,7 +1350,7 @@ async function detectJustTargets(dir, _filename) {
|
|
|
1359
1350
|
} catch {
|
|
1360
1351
|
try {
|
|
1361
1352
|
const content = await fs.readFile(path$1.join(dir, _filename), "utf-8");
|
|
1362
|
-
const recipes = content.split("\n").map((line) => line.match(/^([a-zA-Z_][\w-]*)(?:\s+[^:]*)
|
|
1353
|
+
const recipes = content.split("\n").map((line) => line.match(/^([a-zA-Z_][\w-]*)(?:\s+[^:]*)?:(?!=)/)).filter((m) => m !== null).map((m) => m[1]);
|
|
1363
1354
|
for (const target of BUILD_TARGETS) if (recipes.includes(target)) {
|
|
1364
1355
|
result.buildCommand = `just ${target}`;
|
|
1365
1356
|
break;
|