create-kofi-stack 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -323,7 +323,12 @@ async function writeNodeToDisk(node, targetDir) {
|
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
// src/index.ts
|
|
326
|
-
|
|
326
|
+
import { readFileSync } from "fs";
|
|
327
|
+
import { fileURLToPath } from "url";
|
|
328
|
+
import { dirname, join } from "path";
|
|
329
|
+
var __dirname = dirname(fileURLToPath(import.meta.url));
|
|
330
|
+
var pkg = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8"));
|
|
331
|
+
var VERSION = pkg.version;
|
|
327
332
|
var kofiGradient = gradient(["#FF6B6B", "#4ECDC4", "#FFE66D"]);
|
|
328
333
|
function displayBanner() {
|
|
329
334
|
console.log();
|