diff --git a/src/cli.coffee b/src/cli.coffee index 0f384ae..0baaf5f 100644 --- a/src/cli.coffee +++ b/src/cli.coffee @@ -45,8 +45,8 @@ try process.exit() if values.version - pkg = await import("../package.json", with: {type: "json"}) - console.log pkg.default.version + {default: {version}} = await import("../package.json", with: {type: "json"}) + console.log version process.exit() # Check the requirements.