We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de90f7f commit c8be50eCopy full SHA for c8be50e
src/cli/index.ts
@@ -1,15 +1,17 @@
1
#!/usr/bin/env node
2
+import { createRequire } from "node:module";
3
import dotenv from "dotenv";
4
import pc from "picocolors";
5
import { init } from "./init.js";
6
7
dotenv.config();
8
9
+const require = createRequire(import.meta.url);
10
+const { version: VERSION } = require("../../package.json");
11
+
12
const args = process.argv.slice(2);
13
const command = args[0];
14
-const VERSION = "0.1.0";
-
15
const LOGO = `
16
${pc.magenta(" █████╗ ██████╗ ██╗ ██╗ ██████╗██╗ █████╗ ██╗ ██╗")}
17
${pc.magenta(" ██╔══██╗██╔══██╗██║ ██╔╝ ██╔════╝██║ ██╔══██╗██║ ██║")}
0 commit comments