fixed dbgate npm edition

This commit is contained in:
Jan Prochazka 2021-04-01 13:52:28 +02:00
parent 9cb2d397ad
commit 71f7a705c4
2 changed files with 7 additions and 5 deletions

View File

@ -100,7 +100,7 @@ function start(argument = null) {
});
});
} else if (argument == 'startNodeWeb') {
app.use(express.static(path.join(__dirname, '../../dbgate-web/build')));
app.use(express.static(path.join(__dirname, '../../dbgate-web/public')));
findFreePort(5000, function (err, port) {
server.listen(port, () => {
console.log(`DbGate API listening on port ${port}`);

View File

@ -4,9 +4,12 @@
"scripts": {
"build": "cross-env API_URL=ORIGIN rollup -c",
"dev": "cross-env API_URL=http://localhost:3000 rollup -c -w",
"start": "sirv public",
"validate": "svelte-check"
"validate": "svelte-check",
"prepublishOnly": "yarn build"
},
"files": [
"public"
],
"devDependencies": {
"@ant-design/colors": "^5.0.0",
"@rollup/plugin-commonjs": "^17.0.0",
@ -42,9 +45,8 @@
"@mdi/font": "^5.9.55",
"file-selector": "^0.2.4",
"resize-observer-polyfill": "^1.5.1",
"sirv-cli": "^1.0.0",
"svelte-json-tree": "^0.1.0",
"svelte-markdown": "^0.1.4",
"svelte-select": "^3.17.0"
}
}
}