Add version info in logs on startup, clean up MPP config, include package.json in tsconfig, add version to package.json

This commit is contained in:
Hri7566 2023-12-06 01:27:53 -05:00
parent 72d2316b33
commit e90446afda
5 changed files with 53 additions and 46 deletions

View File

@ -4,3 +4,4 @@ desiredUser:
agents:
wss://mppclone.com:
- id: "✧𝓓𝓔𝓥 𝓡𝓸𝓸𝓶✧"
- id: "test/awkward"

View File

@ -1,4 +1,4 @@
enableConsole: true
enableMPP: false
enableMPP: true
enableDiscord: true
enableSwitchChat: false

View File

@ -1,26 +1,27 @@
{
"name": "supercosmic",
"module": "src/index.ts",
"type": "module",
"devDependencies": {
"bun-types": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@prisma/client": "^5.5.2",
"@t3-oss/env-core": "^0.7.1",
"discord.js": "^14.14.1",
"dotenv": "^16.3.1",
"hyperimport": "^0.1.0",
"mathjs": "^11.11.2",
"mpp-client-net": "^1.1.3",
"mpp-client-xt": "^1.3.1",
"prisma": "^5.4.2",
"switchchat": "^3.2.1",
"typescript": "^5.3.2",
"yaml": "^2.3.3",
"zod": "^3.22.4"
}
}
"name": "supercosmic",
"version": "0.1.0",
"module": "src/index.ts",
"type": "module",
"devDependencies": {
"bun-types": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"@prisma/client": "^5.5.2",
"@t3-oss/env-core": "^0.7.1",
"discord.js": "^14.14.1",
"dotenv": "^16.3.1",
"hyperimport": "^0.1.0",
"mathjs": "^11.11.2",
"mpp-client-net": "^1.1.3",
"mpp-client-xt": "^1.3.1",
"prisma": "^5.4.2",
"switchchat": "^3.2.1",
"typescript": "^5.3.2",
"yaml": "^2.3.3",
"zod": "^3.22.4"
}
}

View File

@ -1,5 +1,6 @@
import { loadConfig } from "./config";
import { readFileSync } from "fs";
import pkg from "../../package.json";
const config = loadConfig("config/ascii.yml", {
path: "config/ascii.txt"
@ -15,4 +16,7 @@ export function printStartupASCII() {
for (const line of data.toString().split("\n")) {
process.stdout.write(`\x1b[35m${line}\x1b[0m\n`);
}
// Print version info
process.stdout.write(`\x1b[35mv${pkg.version}\x1b[0m\n`);
}

View File

@ -1,22 +1,23 @@
{
"compilerOptions": {
"lib": ["ESNext"],
"module": "esnext",
"target": "esnext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
"noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
"types": [
"bun-types" // add Bun global
]
}
"compilerOptions": {
"lib": ["ESNext"],
"module": "esnext",
"target": "esnext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
"noEmit": true,
"composite": true,
"strict": true,
"downlevelIteration": true,
"skipLibCheck": true,
"jsx": "react-jsx",
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
"types": [
"bun-types" // add Bun global
]
},
"include": ["package.json"]
}