Skip to content

Commit

Permalink
fix: 馃悰 showing correct cli version
Browse files Browse the repository at this point in the history
  • Loading branch information
mjancarik committed Jun 2, 2022
1 parent 79ca055 commit a8889ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.mjs
@@ -1,5 +1,6 @@
import path from 'node:path';
import util from 'node:util';
import { URL } from 'node:url';

import ora from 'ora';
import fs from 'fs-extra';
Expand All @@ -22,7 +23,8 @@ import {
createPackageInfo,
} from './createResult.mjs';

const dir = path.resolve('./');
const __dirname = new URL('.', import.meta.url).pathname;
const dir = path.resolve(`${__dirname}/../`);
let packageJson = null;
try {
packageJson = JSON.parse(fs.readFileSync(`${dir}/package.json`, 'utf8'));
Expand Down

0 comments on commit a8889ed

Please sign in to comment.