feat: use node 15, use package version (#2066)

This commit is contained in:
Jef LeCompte
2021-03-02 12:02:35 -05:00
committed by GitHub
parent 9e8c83622d
commit eee669b1b3
7 changed files with 11811 additions and 28 deletions
+2 -5
View File
@@ -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}`,
};