Skip to content

Commit

Permalink
feat: added v prefix to version (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
aakritiawasthi authored Aug 18, 2024
1 parent 0a76cd4 commit 9feaeb1
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ void (async () => {

if (args['version']) {
return console.log(
(
(await import(
join(
require.main
? join(dirname(require.main.filename), '..')
: process.cwd(),
'package.json'
)
)) as { version: string }
).version
`v${
(
(await import(
join(
require.main
? join(dirname(require.main.filename), '..')
: process.cwd(),
'package.json'
)
)) as { version: string }
).version
}`
);
}

Expand Down

0 comments on commit 9feaeb1

Please sign in to comment.