Skip to content

Commit

Permalink
read cli verison from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mkusaka committed Apr 30, 2022
1 parent aab4a05 commit 8ae447f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Command } from "./deps.ts";
import { workflow } from "./subCommands/workflow.ts";
import { ENV_CIRCLECI_TOKEN } from "./env.ts";
import { OpenAPI } from "./client/index.ts";
import packageJson from "./package.json" assert { type: "json" };

OpenAPI.HEADERS = {
...(ENV_CIRCLECI_TOKEN
Expand All @@ -13,7 +14,7 @@ OpenAPI.HEADERS = {

await new Command()
.name("circli")
.version("0.0.1")
.version(packageJson.version)
.description("circleci cli")
.command("workflow", workflow)
.parse(Deno.args);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "circli",
"version": "0.0.3",
"version": "0.0.4",
"main": "index.js",
"repository": "https://github.com/mkusaka/circli.git",
"author": "mkusaka <[email protected]>",
Expand Down

0 comments on commit 8ae447f

Please sign in to comment.