From 2aa965cf3b0deddc304be11e91779218531ccf97 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 7 Feb 2021 09:44:42 +0100 Subject: [PATCH] license, API - prepare to run from dbgate npm package --- packages/api/package.json | 2 +- packages/api/src/index.js | 5 ++++- packages/sqltree/package.json | 2 +- packages/tools/package.json | 2 +- packages/types/package.json | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/api/package.json b/packages/api/package.json index 315ffc81..bb3f7e14 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -9,7 +9,7 @@ }, "funding": "https://www.paypal.com/paypalme/JanProchazkaCz/30eur", "author": "Jan Prochazka", - "license": "GPL", + "license": "MIT", "keywords": [ "sql", "json", diff --git a/packages/api/src/index.js b/packages/api/src/index.js index d0b390da..56df3401 100644 --- a/packages/api/src/index.js +++ b/packages/api/src/index.js @@ -18,4 +18,7 @@ if (argument && argument.endsWith('Process')) { main.start(argument); } -module.exports = shell; +module.exports = { + ...shell, + mainModule: main, +}; diff --git a/packages/sqltree/package.json b/packages/sqltree/package.json index 171ba77c..5fe61aea 100644 --- a/packages/sqltree/package.json +++ b/packages/sqltree/package.json @@ -10,7 +10,7 @@ }, "funding": "https://www.paypal.com/paypalme/JanProchazkaCz/30eur", "author": "Jan Prochazka", - "license": "GPL", + "license": "MIT", "keywords": [ "sql", "mssql", diff --git a/packages/tools/package.json b/packages/tools/package.json index d2e5e3de..c8d75393 100644 --- a/packages/tools/package.json +++ b/packages/tools/package.json @@ -10,7 +10,7 @@ }, "funding": "https://www.paypal.com/paypalme/JanProchazkaCz/30eur", "author": "Jan Prochazka", - "license": "GPL", + "license": "MIT", "keywords": [ "sql", "dbgate" diff --git a/packages/types/package.json b/packages/types/package.json index a66d4963..b10d0493 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -8,7 +8,7 @@ }, "funding": "https://www.paypal.com/paypalme/JanProchazkaCz/30eur", "author": "Jan Prochazka", - "license": "GPL", + "license": "MIT", "keywords": [ "dbgate" ],