@bigbongo/cli 3.1.0 → 3.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
2
3
  import { Command } from "commander";
3
4
  import { login } from "./commands/login.js";
4
5
  import { clone } from "./commands/clone.js";
@@ -6,8 +7,9 @@ import { status } from "./commands/status.js";
6
7
  import { logs } from "./commands/logs.js";
7
8
  import { gitToken } from "./commands/gitToken.js";
8
9
  import { logout } from "./commands/logout.js";
10
+ const version = createRequire(import.meta.url)("../package.json").version;
9
11
  const program = new Command();
10
- program.name("bigbongo").description("Edit your BigBongo app locally and git push to deploy.").version("3.0.0");
12
+ program.name("bigbongo").description("Edit your BigBongo app locally and git push to deploy.").version(version);
11
13
  program.command("login").description("Authenticate against BigBongo").option("--token <token>", "non-interactive login").action(login);
12
14
  program.command("clone [app]").description("Clone your app's repo (BigBongo brokers GitHub access)").action(clone);
13
15
  program.command("status").description("Show app + deployment status").action(status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbongo/cli",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "BigBongo CLI - edit your BigBongo app locally and git push to deploy.",
5
5
  "type": "module",
6
6
  "bin": {