From 18bd48463ac7a1f633cb8741ad9a7a0385878d64 Mon Sep 17 00:00:00 2001 From: Wenderson Pires Date: Wed, 24 Apr 2024 02:16:49 -0300 Subject: [PATCH] build cli updated to set network value --- .github/workflows/deploy-testnet.yml | 2 +- lib/cli.js | 5 +++++ package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-testnet.yml b/.github/workflows/deploy-testnet.yml index ad42acc..1b7614d 100644 --- a/.github/workflows/deploy-testnet.yml +++ b/.github/workflows/deploy-testnet.yml @@ -55,7 +55,7 @@ jobs: - name: Build the workspaces run: | cd "$WORKSPACE_DIRECTORY" - alem build + alem build --network testnet - name: Deploy widgets (using bos-cli-rs) run: | diff --git a/lib/cli.js b/lib/cli.js index df5a1d7..d3f2cb4 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -31,6 +31,11 @@ async function run() { program .command("build") .description("Build the project") + .option( + "-n, --network ", + "Network where the app will be running", + "mainnet", + ) .action((opts) => { build_with_log(opts).catch(console.error); }); diff --git a/package.json b/package.json index 7e8c8b3..243aaa8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "alem", "description": "Create web3 applications for NEAR BOS with a focus on performance and friendly development.", - "version": "1.0.0-beta.28", + "version": "1.0.0-beta.29", "main": "main.js", "types": "index.d.ts", "author": "Wenderson Pires - wendersonpires.near",