Skip to content

Commit

Permalink
chore: output package version (#134)
Browse files Browse the repository at this point in the history
fixes #131
  • Loading branch information
aladdin-add authored Jun 19, 2024
1 parent 19d7d6f commit a8d28eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/create-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@

import { ConfigGenerator } from "../lib/config-generator.js";
import { findPackageJson } from "../lib/utils/npm-utils.js";
import { info } from "../lib/utils/logging.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"));

info(`${pkg.name}: v${pkg.version}\n`);

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

0 comments on commit a8d28eb

Please sign in to comment.