Skip to content

Commit

Permalink
chore: output package version
Browse files Browse the repository at this point in the history
fixes #131
  • Loading branch information
aladdin-add committed Jun 18, 2024
1 parent 6a1d4f2 commit 65684d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/create-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
import { ConfigGenerator } from "../lib/config-generator.js";
import { findPackageJson } from "../lib/utils/npm-utils.js";
import process from "node:process";
import fs from "node:fs/promises";

const pkg = JSON.parse(await fs.readFile(new URL("../package.json", import.meta.url), "utf8"));

console.log(`${pkg.name}: v${pkg.version}\n`); // eslint-disable-line no-console -- used for debugging

const cwd = process.cwd();
const packageJsonPath = findPackageJson(cwd);
Expand Down

0 comments on commit 65684d0

Please sign in to comment.