diff --git a/index.js b/index.js index 3cf8ae2..5d23fce 100755 --- a/index.js +++ b/index.js @@ -7,8 +7,9 @@ import * as fs from "fs" import * as os from "os" import * as path from "path" +const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "package.json")).toString("utf-8")); program - .version('1.0.0') + .version(pkg.version) .description('AWS SDK v3 CLI'); program diff --git a/package-lock.json b/package-lock.json index a61ad20..1373547 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { - "name": "aws-sdk-cli", - "version": "1.0.1", + "name": "aws-sdk-v3-cli", + "version": "1.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "aws-sdk-cli", - "version": "1.0.1", + "name": "aws-sdk-v3-cli", + "version": "1.0.5", "license": "ISC", "dependencies": { "@octokit/rest": "^19.0.11", diff --git a/package.json b/package.json index c223232..449e0e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aws-sdk-v3-cli", - "version": "1.0.5", + "version": "1.0.6", "description": "CLI tool that helps you find the right AWS SDK client for your use case", "main": "index.js", "type": "module",