Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed May 23, 2023
1 parent 5c41e48 commit 71c1bb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import * as shell from 'shelljs';
import * as fs from "fs"
import * as os from "os"
import * as path from "path"
const pkg = JSON.parse(fs.readFileSync(path.join("package.json")).toString("utf-8"));
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);

const __dirname = path.dirname(__filename);
const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "package.json")).toString("utf-8"));
program
.version(pkg.version)
.description('AWS SDK v3 CLI');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-sdk-v3-cli",
"version": "1.0.7",
"version": "1.0.8",
"description": "CLI tool that helps you find the right AWS SDK client for your use case",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit 71c1bb0

Please sign in to comment.