Skip to content

Commit

Permalink
Import version number from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
toebeann committed Jan 18, 2024
1 parent c4fe3c1 commit 438985a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cli/renderLogo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import cliWidth from "cli-width";
import figlet from "figlet";
import gradientString from "gradient-string";
import wrapAnsi from "wrap-ansi";
import { version } from "../version.js";
import { version } from "../../package.json";

const width = () => cliWidth({ defaultWidth: 80 });
const wrap = (
Expand Down
1 change: 0 additions & 1 deletion src/version.ts

This file was deleted.

5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "@tsconfig/node18/tsconfig.json"
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"resolveJsonModule": true
}
}

0 comments on commit 438985a

Please sign in to comment.