Skip to content

Commit

Permalink
feat: support viewing current version (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
chouchouji authored Oct 26, 2024
1 parent de7631c commit daf30da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#!/usr/bin/env node
import { release, publish, changelog, commitLint } from '../dist/index.js'
import { Command } from 'commander'
import { fileURLToPath } from 'url'
import fse from 'fs-extra'

const program = new Command()

const packageJson = fse.readJSONSync(fileURLToPath(new URL('../package.json', import.meta.url)))

program.version(packageJson.version)

program
.command('release')
.option('-r --remote <remote>', 'Remote name')
Expand Down

0 comments on commit daf30da

Please sign in to comment.