@better-sol/cli 0.1.0-alpha.5 → 0.1.0-alpha.6
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/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3162,6 +3162,7 @@ async function deploy(options) {
|
|
|
3162
3162
|
const statusLabel = result.status === "success" ? "✓ Success" : `✗ ${result.status}`;
|
|
3163
3163
|
const compileTime = `${(result.compileTimeMs / 1e3).toFixed(1)}s`;
|
|
3164
3164
|
log.info(`${statusLabel} compiled in ${compileTime}`);
|
|
3165
|
+
if (result.status === "failed" && result.logs) log.info(`Compile logs:\n${result.logs}`);
|
|
3165
3166
|
log.step(`Explorer: https://explorer.solana.com/address/${project.program.address}?cluster=${cluster}`);
|
|
3166
3167
|
if (result.status === "success" && result.bytecode !== null) {
|
|
3167
3168
|
const soDir = join(outDir, project.program.name, "target", "deploy");
|
|
@@ -69259,7 +69260,7 @@ async function gitCommit() {
|
|
|
69259
69260
|
//#endregion
|
|
69260
69261
|
//#region src/index.ts
|
|
69261
69262
|
const cli = new Command();
|
|
69262
|
-
cli.name("better-sol").description("TypeScript-first Solana program tooling — run with npx @better-sol/cli").version("0.1.0-alpha.
|
|
69263
|
+
cli.name("better-sol").description("TypeScript-first Solana program tooling — run with npx @better-sol/cli").version("0.1.0-alpha.6");
|
|
69263
69264
|
cli.command("init").description("Initialize a better-sol project").option("--force", "overwrite existing files", false).option("--skip-install", "skip installing dependencies", false).action((options) => run(() => init(options)));
|
|
69264
69265
|
cli.command("create").description("Create a new better-sol program").argument("[name]", "program name").option("--dir <dir>", "program directory", "programs").option("--force", "overwrite existing files", false).action((name, options) => run(() => create(name, options)));
|
|
69265
69266
|
cli.command("login").description("Save your compiler API key").action(() => run(() => login()));
|