@settlemint/sdk-cli 2.2.2-pr0d09db26 → 2.2.2-pr2dca8a07
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 +20 -10
- package/dist/cli.js.map +6 -6
- package/package.json +3 -3
package/dist/cli.js
CHANGED
@@ -245445,7 +245445,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
245445
245445
|
var package_default = {
|
245446
245446
|
name: "@settlemint/sdk-cli",
|
245447
245447
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
245448
|
-
version: "2.2.2-
|
245448
|
+
version: "2.2.2-pr2dca8a07",
|
245449
245449
|
type: "module",
|
245450
245450
|
private: false,
|
245451
245451
|
license: "FSL-1.1-MIT",
|
@@ -245494,8 +245494,8 @@ var package_default = {
|
|
245494
245494
|
"@inquirer/input": "4.1.9",
|
245495
245495
|
"@inquirer/password": "4.0.12",
|
245496
245496
|
"@inquirer/select": "4.2.0",
|
245497
|
-
"@settlemint/sdk-js": "2.2.2-
|
245498
|
-
"@settlemint/sdk-utils": "2.2.2-
|
245497
|
+
"@settlemint/sdk-js": "2.2.2-pr2dca8a07",
|
245498
|
+
"@settlemint/sdk-utils": "2.2.2-pr2dca8a07",
|
245499
245499
|
"@types/node": "22.15.3",
|
245500
245500
|
"@types/semver": "7.7.0",
|
245501
245501
|
"@types/which": "3.0.4",
|
@@ -260299,6 +260299,9 @@ function hardhatTestCommand() {
|
|
260299
260299
|
});
|
260300
260300
|
}
|
260301
260301
|
|
260302
|
+
// src/commands/smart-contract-set/subgraph/build.ts
|
260303
|
+
import { dirname as dirname10 } from "node:path";
|
260304
|
+
|
260302
260305
|
// src/utils/subgraph/setup.ts
|
260303
260306
|
import { rm as rm4 } from "node:fs/promises";
|
260304
260307
|
var import_semver = __toESM(require_semver2(), 1);
|
@@ -260462,13 +260465,15 @@ function subgraphBuildCommand() {
|
|
260462
260465
|
});
|
260463
260466
|
const { command, args } = await getPackageManagerExecutable();
|
260464
260467
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
260465
|
-
|
260466
|
-
await executeCommand(command, [...args, "graph", "
|
260468
|
+
const cwd2 = dirname10(subgraphYamlFile);
|
260469
|
+
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], { cwd: cwd2 });
|
260470
|
+
await executeCommand(command, [...args, "graph", "build", subgraphYamlFile], { cwd: cwd2 });
|
260467
260471
|
outro("Subgraph built successfully");
|
260468
260472
|
});
|
260469
260473
|
}
|
260470
260474
|
|
260471
260475
|
// src/commands/smart-contract-set/subgraph/codegen.ts
|
260476
|
+
import { dirname as dirname11 } from "node:path";
|
260472
260477
|
function subgraphCodegenCommand() {
|
260473
260478
|
return new Command("codegen").description("Codegen the subgraph types").usage(createExamples([
|
260474
260479
|
{
|
@@ -260483,12 +260488,15 @@ function subgraphCodegenCommand() {
|
|
260483
260488
|
});
|
260484
260489
|
const { command, args } = await getPackageManagerExecutable();
|
260485
260490
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
260486
|
-
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile]
|
260491
|
+
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
|
260492
|
+
cwd: dirname11(subgraphYamlFile)
|
260493
|
+
});
|
260487
260494
|
outro("Subgraph types generated successfully");
|
260488
260495
|
});
|
260489
260496
|
}
|
260490
260497
|
|
260491
260498
|
// src/commands/smart-contract-set/subgraph/deploy.ts
|
260499
|
+
import { dirname as dirname12 } from "node:path";
|
260492
260500
|
function subgraphDeployCommand() {
|
260493
260501
|
return new Command("deploy").description("Deploy the subgraph").usage(createExamples([
|
260494
260502
|
{
|
@@ -260524,7 +260532,9 @@ function subgraphDeployCommand() {
|
|
260524
260532
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
260525
260533
|
await updateSpecVersion(theGraphMiddleware.specVersion);
|
260526
260534
|
const { command, args } = await getPackageManagerExecutable();
|
260527
|
-
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile]
|
260535
|
+
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile], {
|
260536
|
+
cwd: dirname12(subgraphYamlFile)
|
260537
|
+
});
|
260528
260538
|
const generated = await isGenerated();
|
260529
260539
|
if (generated) {
|
260530
260540
|
const currentConfig = await getSubgraphConfig();
|
@@ -260588,7 +260598,7 @@ async function updateSpecVersion(specVersion) {
|
|
260588
260598
|
}
|
260589
260599
|
|
260590
260600
|
// src/commands/smart-contract-set/subgraph/remove.ts
|
260591
|
-
import { dirname as
|
260601
|
+
import { dirname as dirname13 } from "node:path";
|
260592
260602
|
function subgraphRemoveCommand() {
|
260593
260603
|
return new Command("remove").description("Remove a subgraph").usage(createExamples([
|
260594
260604
|
{
|
@@ -260623,7 +260633,7 @@ function subgraphRemoveCommand() {
|
|
260623
260633
|
serviceNotRunningError("graph middleware", theGraphMiddleware.status);
|
260624
260634
|
}
|
260625
260635
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
260626
|
-
const cwd2 =
|
260636
|
+
const cwd2 = dirname13(subgraphYamlFile);
|
260627
260637
|
const { command, args } = await getPackageManagerExecutable();
|
260628
260638
|
const middlewareAdminUrl = new URL(`/${encodeURIComponent(accessToken)}/admin`, theGraphMiddleware.serviceUrl).toString();
|
260629
260639
|
await executeCommand(command, [...args, "graph", "remove", "--node", middlewareAdminUrl, graphName]);
|
@@ -260796,4 +260806,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
260796
260806
|
// src/cli.ts
|
260797
260807
|
sdkCliCommand();
|
260798
260808
|
|
260799
|
-
//# debugId=
|
260809
|
+
//# debugId=546EC4A33B22746864756E2164756E21
|