@settlemint/sdk-cli 0.8.0-pr589f154c → 0.8.0-pr6169ebc2
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 +25 -80
- package/dist/cli.js.map +3 -3
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -197427,7 +197427,7 @@ ${Bt.cyan(Yt)}
|
|
|
197427
197427
|
code: "ENOENT"
|
|
197428
197428
|
}), getPathInfo = (e9, t7) => {
|
|
197429
197429
|
var r6 = t7.colon || or;
|
|
197430
|
-
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
197430
|
+
var i6 = e9.match(/\//) || nr && e9.match(/\\/) ? [""] : [...nr ? [process.cwd()] : [], ...(t7.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.H9orXDwFbI:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(r6)];
|
|
197431
197431
|
var n6 = nr ? t7.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
197432
197432
|
var a5 = nr ? n6.split(r6) : [""];
|
|
197433
197433
|
if (nr) {
|
|
@@ -200564,7 +200564,7 @@ ${whileRunning(e9)}`;
|
|
|
200564
200564
|
};
|
|
200565
200565
|
ni = Object.assign(async function _main() {
|
|
200566
200566
|
var e9 = new Cli({
|
|
200567
|
-
binaryVersion: "0.8.0-
|
|
200567
|
+
binaryVersion: "0.8.0-pr6169ebc2",
|
|
200568
200568
|
binaryLabel: "gql.tada CLI",
|
|
200569
200569
|
binaryName: "gql.tada"
|
|
200570
200570
|
});
|
|
@@ -218401,7 +218401,7 @@ var require_lib4 = __commonJS((exports, module) => {
|
|
|
218401
218401
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
218402
218402
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
218403
218403
|
var getPathInfo2 = (cmd2, {
|
|
218404
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
218404
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.H9orXDwFbI:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
218405
218405
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
218406
218406
|
delimiter: optDelimiter = delimiter
|
|
218407
218407
|
}) => {
|
|
@@ -218605,7 +218605,7 @@ var require_lib5 = __commonJS((exports, module) => {
|
|
|
218605
218605
|
let pathToInitial;
|
|
218606
218606
|
try {
|
|
218607
218607
|
pathToInitial = which.sync(initialCmd, {
|
|
218608
|
-
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
218608
|
+
path: options.env && findInObject(options.env, "PATH") || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.H9orXDwFbI:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
218609
218609
|
pathext: options.env && findInObject(options.env, "PATHEXT") || process.env.PATHEXT
|
|
218610
218610
|
}).toLowerCase();
|
|
218611
218611
|
} catch (err) {
|
|
@@ -219322,7 +219322,7 @@ var require_lib6 = __commonJS((exports, module) => {
|
|
|
219322
219322
|
var rRel = new RegExp(`^\\.${rSlash.source}`);
|
|
219323
219323
|
var getNotFoundError2 = (cmd2) => Object.assign(new Error(`not found: ${cmd2}`), { code: "ENOENT" });
|
|
219324
219324
|
var getPathInfo2 = (cmd2, {
|
|
219325
|
-
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
219325
|
+
path: optPath = "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.H9orXDwFbI:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin",
|
|
219326
219326
|
pathExt: optPathExt = process.env.PATHEXT,
|
|
219327
219327
|
delimiter: optDelimiter = delimiter
|
|
219328
219328
|
}) => {
|
|
@@ -235213,7 +235213,7 @@ var require_which2 = __commonJS((exports, module) => {
|
|
|
235213
235213
|
const colon = opt2.colon || COLON;
|
|
235214
235214
|
const pathEnv = cmd2.match(/\//) || isWindows2 && cmd2.match(/\\/) ? [""] : [
|
|
235215
235215
|
...isWindows2 ? [process.cwd()] : [],
|
|
235216
|
-
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.
|
|
235216
|
+
...(opt2.path || "/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/cli/node_modules/.bin:/home/runner/work/sdk/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/tmp/bunx-1001-turbo@latest/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/sdk/node_modules/.bin:/home/runner/work/sdk/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.12.0/x64/bin:/home/runner/.bun/bin:/tmp/tmp.H9orXDwFbI:/nsc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/snap/bin/:/usr/games:/usr/local/games:/home/linuxbrew/.linuxbrew/bin:/home/runner/.config/composer/vendor/bin:/home/runner/.dotnet/tools:/home/runner/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin").split(colon)
|
|
235217
235217
|
];
|
|
235218
235218
|
const pathExtExe = isWindows2 ? opt2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
235219
235219
|
const pathExt = isWindows2 ? pathExtExe.split(colon) : [""];
|
|
@@ -273273,7 +273273,7 @@ function connectCommand() {
|
|
|
273273
273273
|
var package_default = {
|
|
273274
273274
|
name: "@settlemint/sdk-cli",
|
|
273275
273275
|
description: "SettleMint SDK, integrate SettleMint into your application with ease.",
|
|
273276
|
-
version: "0.8.0-
|
|
273276
|
+
version: "0.8.0-pr6169ebc2",
|
|
273277
273277
|
type: "module",
|
|
273278
273278
|
private: false,
|
|
273279
273279
|
license: "FSL-1.1-MIT",
|
|
@@ -273324,8 +273324,8 @@ var package_default = {
|
|
|
273324
273324
|
"@inquirer/input": "4.1.1",
|
|
273325
273325
|
"@inquirer/password": "4.0.4",
|
|
273326
273326
|
"@inquirer/select": "4.0.4",
|
|
273327
|
-
"@settlemint/sdk-js": "0.8.0-
|
|
273328
|
-
"@settlemint/sdk-utils": "0.8.0-
|
|
273327
|
+
"@settlemint/sdk-js": "0.8.0-pr6169ebc2",
|
|
273328
|
+
"@settlemint/sdk-utils": "0.8.0-pr6169ebc2",
|
|
273329
273329
|
"get-tsconfig": "4.8.1",
|
|
273330
273330
|
giget: "1.2.3"
|
|
273331
273331
|
},
|
|
@@ -275773,97 +275773,42 @@ function platformCommand() {
|
|
|
275773
275773
|
}
|
|
275774
275774
|
|
|
275775
275775
|
// src/commands/smart-contract-set/chaincode/package.ts
|
|
275776
|
-
import { unlink as unlink2 } from "node:fs/promises";
|
|
275776
|
+
import { copyFile, unlink as unlink2 } from "node:fs/promises";
|
|
275777
275777
|
import path8 from "node:path";
|
|
275778
275778
|
function packageChaincodeCommand() {
|
|
275779
|
-
console.log(`
|
|
275780
|
-
\uD83D\uDE80 Initializing package command...`);
|
|
275781
275779
|
const cmd2 = new Command2("package").description("Package a chaincode").requiredOption("--name <name>", "Name of the output file").requiredOption("--version <version>", "Version of the chaincode").requiredOption("--path <path>", "Path to the chaincode").requiredOption("--lang <language>", "Language the chaincode is written in");
|
|
275782
|
-
cmd2.action(async (options)
|
|
275783
|
-
console.log(`
|
|
275784
|
-
\uD83D\uDCCB Command Action Started`);
|
|
275785
|
-
console.log("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
|
|
275786
|
-
console.log("Options received:", JSON.stringify(options, null, 2));
|
|
275787
|
-
console.log("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
|
|
275788
|
-
console.log(`
|
|
275789
|
-
\uD83D\uDCE2 About to show note...`);
|
|
275780
|
+
cmd2.action(async function packageAction(options) {
|
|
275790
275781
|
note(`Packaging chaincode ${options.version}...`);
|
|
275791
275782
|
try {
|
|
275792
|
-
|
|
275793
|
-
\uD83C\uDFC3 Starting packageChaincode function...`);
|
|
275783
|
+
const { name: name2, version, path: ccPath, lang } = options;
|
|
275794
275784
|
const rootPackageJsonPath = path8.join(process.cwd(), "package.json");
|
|
275795
|
-
|
|
275796
|
-
|
|
275797
|
-
const ccPackageJsonPath = path8.join(options.path, "package.json");
|
|
275798
|
-
console.log(`\uD83D\uDCE6 Target chaincode package.json path: ${ccPackageJsonPath}`);
|
|
275799
|
-
const rootPackageJson = Bun.file(rootPackageJsonPath);
|
|
275800
|
-
const hasRootPackageJson = await rootPackageJson.exists();
|
|
275801
|
-
console.log(`\uD83D\uDCCB Root package.json exists: ${hasRootPackageJson}`);
|
|
275785
|
+
const ccPackageJsonPath = path8.join(ccPath, "package.json");
|
|
275786
|
+
const hasRootPackageJson = await exists2(rootPackageJsonPath);
|
|
275802
275787
|
if (hasRootPackageJson) {
|
|
275803
|
-
|
|
275788
|
+
await copyFile(rootPackageJsonPath, ccPackageJsonPath);
|
|
275804
275789
|
}
|
|
275805
|
-
|
|
275806
|
-
\uD83D\uDD27 Executing peer command...`);
|
|
275807
|
-
console.log("Command:", "peer", [
|
|
275790
|
+
await executeCommand("peer", [
|
|
275808
275791
|
"lifecycle",
|
|
275809
275792
|
"chaincode",
|
|
275810
275793
|
"package",
|
|
275811
|
-
`./${
|
|
275794
|
+
`./${name2}.tar.gz`,
|
|
275812
275795
|
"--path",
|
|
275813
|
-
|
|
275796
|
+
ccPath,
|
|
275814
275797
|
"--lang",
|
|
275815
|
-
|
|
275798
|
+
lang,
|
|
275816
275799
|
"--label",
|
|
275817
|
-
`${
|
|
275818
|
-
]
|
|
275819
|
-
await
|
|
275820
|
-
|
|
275821
|
-
|
|
275800
|
+
`${name2}_${version}`
|
|
275801
|
+
]);
|
|
275802
|
+
if (await exists2(ccPackageJsonPath)) {
|
|
275803
|
+
await unlink2(ccPackageJsonPath);
|
|
275804
|
+
}
|
|
275822
275805
|
outro("Chaincode is packaged successfully");
|
|
275823
275806
|
} catch (error5) {
|
|
275824
|
-
console.log(`
|
|
275825
|
-
❌ Error occurred during packaging`);
|
|
275826
|
-
console.error("Error details:", error5);
|
|
275827
275807
|
cancel2(`Chaincode packaging failed: ${error5 instanceof Error ? error5.message : String(error5)}`);
|
|
275828
275808
|
}
|
|
275829
275809
|
});
|
|
275830
|
-
console.log("\uD83D\uDCE6 Package command initialized and ready");
|
|
275831
275810
|
return cmd2;
|
|
275832
275811
|
}
|
|
275833
|
-
async function packageChaincode(options) {
|
|
275834
|
-
console.log(`
|
|
275835
|
-
⚙️ packageChaincode function started`);
|
|
275836
|
-
const { name: name2, version, path: ccPath, lang } = options;
|
|
275837
|
-
const rootPackageJson = Bun.file(path8.join(process.cwd(), "package.json"));
|
|
275838
|
-
const ccPackageJsonPath = path8.join(ccPath, "package.json");
|
|
275839
|
-
const ccPackageJson = Bun.file(ccPackageJsonPath);
|
|
275840
|
-
const hasRootPackageJson = await rootPackageJson.exists();
|
|
275841
|
-
if (hasRootPackageJson) {
|
|
275842
|
-
console.log("\uD83D\uDCC4 Copying root package.json to chaincode directory");
|
|
275843
|
-
await Bun.write(ccPackageJson, rootPackageJson);
|
|
275844
|
-
}
|
|
275845
|
-
console.log(`
|
|
275846
|
-
\uD83D\uDE80 Executing peer lifecycle chaincode package command`);
|
|
275847
|
-
await executeCommand("peer", [
|
|
275848
|
-
"lifecycle",
|
|
275849
|
-
"chaincode",
|
|
275850
|
-
"package",
|
|
275851
|
-
`./${name2}.tar.gz`,
|
|
275852
|
-
"--path",
|
|
275853
|
-
ccPath,
|
|
275854
|
-
"--lang",
|
|
275855
|
-
lang,
|
|
275856
|
-
"--label",
|
|
275857
|
-
`${name2}_${version}`
|
|
275858
|
-
]);
|
|
275859
|
-
if (await ccPackageJson.exists()) {
|
|
275860
|
-
console.log(`
|
|
275861
|
-
\uD83E\uDDF9 Cleaning up temporary package.json`);
|
|
275862
|
-
await unlink2(ccPackageJsonPath);
|
|
275863
|
-
}
|
|
275864
|
-
console.log(`
|
|
275865
|
-
✨ packageChaincode function completed`);
|
|
275866
|
-
}
|
|
275867
275812
|
|
|
275868
275813
|
// src/commands/smart-contract-set/create.ts
|
|
275869
275814
|
import { rmdir } from "node:fs/promises";
|
|
@@ -276787,4 +276732,4 @@ sdkcli.parseAsync(process.argv).catch((reason) => {
|
|
|
276787
276732
|
cancel2(reason);
|
|
276788
276733
|
});
|
|
276789
276734
|
|
|
276790
|
-
//# debugId=
|
|
276735
|
+
//# debugId=B5AB7C510506E2F164756E2164756E21
|