Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit ee88a55

Browse files
committed
Load actual version
1 parent 37e2a33 commit ee88a55

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/cli/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/usr/bin/env node
2+
import { readFileSync } from 'fs'
23
import sade from 'sade'
34
import action from './action'
45

6+
const { version } = JSON.parse(readFileSync('./package.json').toString())
57
const program = sade('version-checker', true)
68

79
program
8-
.version('dev')
10+
.version(version)
911
.option('-o, --owner', 'The repository owner. May be a username or organization name.')
1012
.option('-r, --repository', 'The repository name.')
1113
.option('-c, --current-version', 'The current application version.')

0 commit comments

Comments
 (0)