Skip to content

Commit

Permalink
fix(core.gbapp): Update of all packages and nodejs to 19.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Nov 19, 2022
1 parent 9393081 commit a315d21
Show file tree
Hide file tree
Showing 69 changed files with 43,761 additions and 39,520 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"request": "launch",
"sourceMaps": true,
"name": "Debug Program",
"program": "${workspaceRoot}/boot.js",
"program": "${workspaceRoot}/boot.mjs",
"cwd": "${workspaceRoot}",
"env": {
"NODE_ENV": "development"
Expand Down
18 changes: 9 additions & 9 deletions boot.js → boot.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env node

const Fs = require('fs');
const Path = require('path');
const { exec } = require('child_process');
var pjson = require('./package.json');
import Fs from 'fs';
import Path from 'path';
import { exec } from 'child_process';
import pjson from './package.json' assert { type: "json" };
import * as GBServer from "./dist/src/app.js";

// Displays version of Node JS being used at runtime and others attributes.

Expand All @@ -19,15 +20,14 @@ console.log(`[GB Runtime] debugPort = ${process.debugPort}`);
var now = () => {
return (new Date()).toISOString().replace(/T/, ' ').replace(/\..+/, '') + ' UTC';
}

var __dirname = process.env.PWD;
try {

var run = () => {

console.log(`[GB Runtime] Initializing General Bots (BotServer)...`);
const GBServer = require("./dist/src/app").GBServer
console.log(`[GB Runtime] ${now()} - Running '${GBServer.name}' on '${__dirname}' directory`);
process.env.PWD = __dirname;
GBServer.run();
console.log(`[GB Runtime] ${now()} - Running '${GBServer.name}' on '${import.meta.url}'`);
GBServer.GBServer.run();
}
var processDist = () => {
if (!Fs.existsSync('dist')) {
Expand Down
2 changes: 1 addition & 1 deletion gbot.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ ECHO Compiling...
CALL node_modules\.bin\tsc

:ALLSET
node boot.js
node boot.cjs

0 comments on commit a315d21

Please sign in to comment.