deploro 0.3.0 → 0.3.2

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,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
+ import { createRequire } from "module";
4
5
  import { Command } from "commander";
5
6
 
6
7
  // src/commands/login.ts
@@ -804,8 +805,9 @@ async function deployLogsCommand(deploymentId) {
804
805
  }
805
806
 
806
807
  // src/index.ts
808
+ var pkg = createRequire(import.meta.url)("../package.json");
807
809
  var program = new Command();
808
- program.name("deploro").description("Deploro developer platform CLI").version("0.2.1");
810
+ program.name("deploro").description("Deploro developer platform CLI").version(pkg.version);
809
811
  program.command("login").description("Log in to Deploro").option("--url <url>", "Worker base URL").option("--token <token>", "Personal access token from the Deploro dashboard").action(loginCommand);
810
812
  program.command("logout").description("Log out and clear local credentials").action(logoutCommand);
811
813
  program.command("projects").description("List projects").action(projectsListCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deploro",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Command-line interface for the Deploro developer platform — manage projects, databases, deployments, and hosting from your terminal.",
5
5
  "type": "module",
6
6
  "bin": {