fix(all): CWD in Windows now working.

This commit is contained in:
Rodrigo Rodriguez 2023-02-24 19:26:09 -03:00
parent b96cde81d7
commit 6721c3dcc3

View file

@ -19,7 +19,7 @@ console.debug(`botserver@${pjson.version}, botlib@${pjson.dependencies.botlib},
var now = () => { var now = () => {
return new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '') + ' UTC'; return new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '') + ' UTC';
}; };
var __dirname = process.env.PWD; var __dirname = process.env.PWD || process.cwd();
try { try {
var run = () => { var run = () => {
import('./dist/src/app.js').then((gb)=> gb.GBServer.run()); import('./dist/src/app.js').then((gb)=> gb.GBServer.run());