mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 04:06:00 +00:00
dbgate-serve fix
This commit is contained in:
@@ -89,6 +89,12 @@ module.exports = {
|
|||||||
encoding: 'utf-8',
|
encoding: 'utf-8',
|
||||||
})
|
})
|
||||||
.then(x => JSON.parse(x));
|
.then(x => JSON.parse(x));
|
||||||
|
if (!manifest.keywords) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!manifest.keywords.includes('dbgateplugin')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const readmeFile = path.join(isPackaged ? packagedPluginsDir() : pluginsdir(), packageName, 'README.md');
|
const readmeFile = path.join(isPackaged ? packagedPluginsDir() : pluginsdir(), packageName, 'README.md');
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (await fs.exists(readmeFile)) {
|
if (await fs.exists(readmeFile)) {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
"author": "Jan Prochazka",
|
"author": "Jan Prochazka",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"dbgate": "./bin/dbgate-serve.js"
|
"dbgate-serve": "./bin/dbgate-serve.js"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"sql",
|
"sql",
|
||||||
|
|||||||
Reference in New Issue
Block a user