fixed npm dist subprocess problem

This commit is contained in:
Jan Prochazka
2022-03-24 09:00:51 +01:00
parent a3bc1e577a
commit 4c411b048d
7 changed files with 18 additions and 15 deletions

View File

@@ -3,8 +3,9 @@
const path = require('path');
require('dotenv').config();
global.dbgateApiModulePath = path.dirname(path.dirname(require.resolve('dbgate-api')));
global.dbgateApiPackagedPluginsPath = path.dirname(global.dbgateApiModulePath);
global.API_PACKAGE = path.dirname(path.dirname(require.resolve('dbgate-api')));
global.PLUGINS_DIR = path.dirname(global.API_PACKAGE);
global.IS_NPM_DIST = true;
const dbgateApi = require('dbgate-api');