@live-change/cli 0.7.7 → 0.7.9

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.
Files changed (2) hide show
  1. package/bin/lcli.js +1 -10
  2. package/package.json +5 -5
package/bin/lcli.js CHANGED
@@ -145,7 +145,7 @@ const argv = require('yargs') // eslint-disable-line
145
145
  }, async (argv) => {
146
146
  argv = {
147
147
  ...argv,
148
- withServices: true, updateServices: true,
148
+ withApi: true, withServices: true, updateServices: true,
149
149
  withDb: true, dbBackend: 'mem', createDb: true
150
150
  }
151
151
  await setupApp({ ...argv, uidBorders: '[]' })
@@ -253,15 +253,6 @@ async function ssrServer(argv, dev) {
253
253
  console.log("PROXY /api to", target)
254
254
  }
255
255
 
256
- if(argv.createDb) {
257
- const list = await app.dao.get(['database', 'databasesList'])
258
- console.log("existing databases:", list.join(', '))
259
- console.log("creating database", app.databaseName)
260
- await app.dao.request(['database', 'createDatabase'], app.databaseName, {
261
- storage: { noMetaSync: true, noSync: true }
262
- }).catch(err => 'exists')
263
- }
264
-
265
256
  let apiServer
266
257
  if(argv.withApi) {
267
258
  apiServer = await setupApiServer({ ...argv, fastAuth })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/cli",
3
- "version": "0.7.7",
3
+ "version": "0.7.9",
4
4
  "description": "Live Change Framework - command line interface",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,9 +27,9 @@
27
27
  "@live-change/dao": "0.5.8",
28
28
  "@live-change/dao-sockjs": "0.5.8",
29
29
  "@live-change/dao-websocket": "0.5.8",
30
- "@live-change/db-server": "0.5.21",
31
- "@live-change/framework": "^0.7.7",
32
- "@live-change/server": "^0.7.7",
30
+ "@live-change/db-server": "0.5.22",
31
+ "@live-change/framework": "^0.7.9",
32
+ "@live-change/server": "^0.7.9",
33
33
  "dotenv": "^16.0.1",
34
34
  "express": "^4.18.1",
35
35
  "http-proxy-middleware": "2.0.6",
@@ -40,5 +40,5 @@
40
40
  "websocket": "^1.0.34",
41
41
  "yargs": "^17.5.1"
42
42
  },
43
- "gitHead": "281f8ce3d1baa6baaa90028e7ea86ac1f1680463"
43
+ "gitHead": "462acba65c69b87f6f2bf2d3c001e261edf2f7bb"
44
44
  }