@settlemint/sdk-cli 2.2.2-main9fb072a4 → 2.2.2-maina5b1601b
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 +10 -20
- 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-maina5b1601b",
|
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-maina5b1601b",
|
245498
|
+
"@settlemint/sdk-utils": "2.2.2-maina5b1601b",
|
245499
245499
|
"@types/node": "22.15.3",
|
245500
245500
|
"@types/semver": "7.7.0",
|
245501
245501
|
"@types/which": "3.0.4",
|
@@ -260299,9 +260299,6 @@ 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
|
-
|
260305
260302
|
// src/utils/subgraph/setup.ts
|
260306
260303
|
import { rm as rm4 } from "node:fs/promises";
|
260307
260304
|
var import_semver = __toESM(require_semver2(), 1);
|
@@ -260465,15 +260462,13 @@ function subgraphBuildCommand() {
|
|
260465
260462
|
});
|
260466
260463
|
const { command, args } = await getPackageManagerExecutable();
|
260467
260464
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
260468
|
-
|
260469
|
-
await executeCommand(command, [...args, "graph", "
|
260470
|
-
await executeCommand(command, [...args, "graph", "build", subgraphYamlFile], { cwd: cwd2 });
|
260465
|
+
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile]);
|
260466
|
+
await executeCommand(command, [...args, "graph", "build", subgraphYamlFile]);
|
260471
260467
|
outro("Subgraph built successfully");
|
260472
260468
|
});
|
260473
260469
|
}
|
260474
260470
|
|
260475
260471
|
// src/commands/smart-contract-set/subgraph/codegen.ts
|
260476
|
-
import { dirname as dirname11 } from "node:path";
|
260477
260472
|
function subgraphCodegenCommand() {
|
260478
260473
|
return new Command("codegen").description("Codegen the subgraph types").usage(createExamples([
|
260479
260474
|
{
|
@@ -260488,15 +260483,12 @@ function subgraphCodegenCommand() {
|
|
260488
260483
|
});
|
260489
260484
|
const { command, args } = await getPackageManagerExecutable();
|
260490
260485
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
260491
|
-
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile]
|
260492
|
-
cwd: dirname11(subgraphYamlFile)
|
260493
|
-
});
|
260486
|
+
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile]);
|
260494
260487
|
outro("Subgraph types generated successfully");
|
260495
260488
|
});
|
260496
260489
|
}
|
260497
260490
|
|
260498
260491
|
// src/commands/smart-contract-set/subgraph/deploy.ts
|
260499
|
-
import { dirname as dirname12 } from "node:path";
|
260500
260492
|
function subgraphDeployCommand() {
|
260501
260493
|
return new Command("deploy").description("Deploy the subgraph").usage(createExamples([
|
260502
260494
|
{
|
@@ -260532,9 +260524,7 @@ function subgraphDeployCommand() {
|
|
260532
260524
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
260533
260525
|
await updateSpecVersion(theGraphMiddleware.specVersion);
|
260534
260526
|
const { command, args } = await getPackageManagerExecutable();
|
260535
|
-
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile]
|
260536
|
-
cwd: dirname12(subgraphYamlFile)
|
260537
|
-
});
|
260527
|
+
await executeCommand(command, [...args, "graph", "codegen", subgraphYamlFile]);
|
260538
260528
|
const generated = await isGenerated();
|
260539
260529
|
if (generated) {
|
260540
260530
|
const currentConfig = await getSubgraphConfig();
|
@@ -260598,7 +260588,7 @@ async function updateSpecVersion(specVersion) {
|
|
260598
260588
|
}
|
260599
260589
|
|
260600
260590
|
// src/commands/smart-contract-set/subgraph/remove.ts
|
260601
|
-
import { dirname as
|
260591
|
+
import { dirname as dirname10 } from "node:path";
|
260602
260592
|
function subgraphRemoveCommand() {
|
260603
260593
|
return new Command("remove").description("Remove a subgraph").usage(createExamples([
|
260604
260594
|
{
|
@@ -260633,7 +260623,7 @@ function subgraphRemoveCommand() {
|
|
260633
260623
|
serviceNotRunningError("graph middleware", theGraphMiddleware.status);
|
260634
260624
|
}
|
260635
260625
|
const subgraphYamlFile = await getSubgraphYamlFile();
|
260636
|
-
const cwd2 =
|
260626
|
+
const cwd2 = dirname10(subgraphYamlFile);
|
260637
260627
|
const { command, args } = await getPackageManagerExecutable();
|
260638
260628
|
const middlewareAdminUrl = new URL(`/${encodeURIComponent(accessToken)}/admin`, theGraphMiddleware.serviceUrl).toString();
|
260639
260629
|
await executeCommand(command, [...args, "graph", "remove", "--node", middlewareAdminUrl, graphName]);
|
@@ -260806,4 +260796,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
260806
260796
|
// src/cli.ts
|
260807
260797
|
sdkCliCommand();
|
260808
260798
|
|
260809
|
-
//# debugId=
|
260799
|
+
//# debugId=1A6BA867F70055C664756E2164756E21
|