Skip to content

Commit

Permalink
Fixes the displayed version number (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis authored Jul 31, 2021
1 parent 7a034df commit 75054fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "corepack",
"version": "0.8.2",
"version": "0.8.3",
"homepage": "https://github.com/nodejs/corepack#readme",
"bugs": {
"url": "https://github.com/nodejs/corepack/issues"
Expand Down
3 changes: 2 additions & 1 deletion sources/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export async function main(argv: Array<string>, context: CustomContext & Partial
...context,
});
} else {
const cli = new Cli<Context>({binaryName: `corepack`});
const binaryVersion = eval(`require`)(`corepack/package.json`).version;
const cli = new Cli<Context>({binaryName: `corepack`, binaryVersion});

cli.register(Builtins.HelpCommand);
cli.register(Builtins.VersionCommand);
Expand Down

0 comments on commit 75054fa

Please sign in to comment.