mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 00:36:01 +00:00
npm dist fix
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const dbgateApi = require('dbgate-api');
|
|
||||||
|
|
||||||
global.dbgateApiModulePath = require.resolve('dbgate-api');
|
global.dbgateApiModulePath = path.dirname(path.dirname(require.resolve('dbgate-api')));
|
||||||
global.dbgateApiPackagedPluginsPath = path.dirname(global.dbgateApiModulePath);
|
global.dbgateApiPackagedPluginsPath = path.dirname(global.dbgateApiModulePath);
|
||||||
|
|
||||||
|
const dbgateApi = require('dbgate-api');
|
||||||
|
|
||||||
dbgateApi.getMainModule().start();
|
dbgateApi.getMainModule().start();
|
||||||
|
|||||||
Reference in New Issue
Block a user