mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 05:17:35 +00:00
feat: use node 15, use package version (#2066)
This commit is contained in:
+2
-5
@@ -1,7 +1,4 @@
|
||||
import chalk from 'chalk';
|
||||
import {readFileSync} from 'fs';
|
||||
|
||||
const version = readFileSync('version.txt', 'utf8');
|
||||
|
||||
export const banner = {
|
||||
asciiVersion: `
|
||||
@@ -14,12 +11,12 @@ export const banner = {
|
||||
░ ░▒ ░ ░ ░ ░▒ ░ ▒░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░▒ ░ ▒░ ░ ▒ ▒ ░▒░ ░ ▒ ▒▒ ░░ ░░ ░ ▒░ ░
|
||||
░ ░ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ░ ░░ ░ ░ ░ ░░ ░ ░ ▒ ░ ░ ░ ░
|
||||
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
|
||||
${version}`,
|
||||
${process.env.npm_package_version}`,
|
||||
render(ascii: boolean, hexColor: string) {
|
||||
return chalk
|
||||
.hex(hexColor)
|
||||
.bold(ascii ? this.asciiVersion : this.stringVersion);
|
||||
},
|
||||
stringVersion: `STREETMERCHANT
|
||||
${version}`,
|
||||
${process.env.npm_package_version}`,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user