Skip to content

Commit

Permalink
fix(cli): fix version command (#1413)
Browse files Browse the repository at this point in the history
  • Loading branch information
timofei-iatsenko authored Feb 8, 2023
1 parent 76ef4e8 commit 8bc212d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/cli/src/lingui.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
#!/usr/bin/env node

import { helpMisspelledCommand } from "./api/utils"

const program = require("commander")

let version
try {
version = require("./package.json").version
} catch (e) {
version = "dev"
}
import program from "commander"
import { version } from "../package.json"

program
.version(version)
Expand Down

1 comment on commit 8bc212d

@vercel
Copy link

@vercel vercel bot commented on 8bc212d Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.