@ditojs/server 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/cli/index.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/server",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Dito.js Server – Dito.js is a declarative and modern web framework, based on Objection.js, Koa.js and Vue.js",
|
|
6
6
|
"repository": "https://github.com/ditojs/dito/tree/master/packages/server",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"knex": "^2.0.0",
|
|
80
80
|
"objection": "^3.0.1"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "ab441bf2ebc4976288da803dcfe976c6cf40f997"
|
|
83
83
|
}
|
package/src/cli/index.js
CHANGED
|
@@ -44,10 +44,11 @@ async function execute() {
|
|
|
44
44
|
if (isPlainObject(arg) && arg.knex) {
|
|
45
45
|
// A config object with a knex field was passed in, create a knex object
|
|
46
46
|
// from it to pass on to the execute function.
|
|
47
|
-
|
|
47
|
+
const knex = Knex(arg.knex)
|
|
48
48
|
// Also add `knex.migrations` config as the first argument to `execute()`,
|
|
49
49
|
// so db:migrate & co. can receive migration configuration settings.
|
|
50
50
|
args.unshift(arg.knex.migrations || null)
|
|
51
|
+
arg = knex
|
|
51
52
|
}
|
|
52
53
|
const res = await execute(arg, ...args)
|
|
53
54
|
process.exit(res === true ? 0 : 1)
|