@live-change/db-admin 0.8.6 → 0.8.8

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.
@@ -1,4 +1,5 @@
1
1
  import path from 'path'
2
+ import { fileURLToPath } from 'url';
2
3
  import vuePlugin from '@vitejs/plugin-vue'
3
4
  import { defineConfig, searchForWorkspaceRoot } from 'vite'
4
5
  import findFreePorts from "find-free-ports"
@@ -25,8 +26,9 @@ export default defineConfig(async ({ command, mode }) => {
25
26
  },
26
27
  fs: {
27
28
  allow: [
28
- searchForWorkspaceRoot(process.cwd()),
29
- '../../../node_modules'
29
+ searchForWorkspaceRoot(process.cwd()),
30
+ path.dirname(fileURLToPath(import.meta.resolve('primeicons/package.json'))),
31
+ path.dirname(fileURLToPath(import.meta.resolve('@fortawesome/fontawesome-free/package.json'))),
30
32
  ],
31
33
  }
32
34
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/db-admin",
3
- "version": "0.8.6",
3
+ "version": "0.8.8",
4
4
  "scripts": {
5
5
  "memDev": "node server/start.js memDev --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; lcli localDev --initScript ./init.js --dbAccess",
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "type": "module",
20
20
  "dependencies": {
21
- "@live-change/dao": "^0.8.6",
22
- "@live-change/dao-vue3": "^0.8.6",
23
- "@live-change/dao-websocket": "^0.8.6",
24
- "@live-change/framework": "^0.8.6",
25
- "@live-change/vue3-components": "^0.8.6",
26
- "@live-change/vue3-ssr": "^0.8.6",
21
+ "@live-change/dao": "^0.8.8",
22
+ "@live-change/dao-vue3": "^0.8.8",
23
+ "@live-change/dao-websocket": "^0.8.8",
24
+ "@live-change/framework": "^0.8.8",
25
+ "@live-change/vue3-components": "^0.8.8",
26
+ "@live-change/vue3-ssr": "^0.8.8",
27
27
  "@vitejs/plugin-vue": "^5.0.4",
28
28
  "@vueuse/core": "^10.7.2",
29
29
  "@vueuse/head": "^2.0.0",
@@ -50,7 +50,7 @@
50
50
  "vue3-scroll-border": "0.1.6"
51
51
  },
52
52
  "devDependencies": {
53
- "@live-change/codeceptjs-helper": "^0.8.6",
53
+ "@live-change/codeceptjs-helper": "^0.8.8",
54
54
  "@wdio/selenium-standalone-service": "^8.15.0",
55
55
  "codeceptjs": "^3.5.12",
56
56
  "generate-password": "1.7.1",
@@ -62,5 +62,5 @@
62
62
  "author": "",
63
63
  "license": "ISC",
64
64
  "description": "",
65
- "gitHead": "9964e05eb01bfbaf0436249e97745cb2b29c96b3"
65
+ "gitHead": "77eafa414e091c8d34ae63ee8927d53f3bde893d"
66
66
  }
package/server/init.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import App from '@live-change/framework'
2
2
  const app = App.app()
3
3
 
4
- module.exports = async function(services) {
4
+ export default async function(services) {
5
5
 
6
6
  await app.dao.request(['database', 'createDatabase', 'testDb'])
7
7
  await app.dao.request(['database', 'createTable', 'testDb', 'testTable1'])
@@ -0,0 +1,12 @@
1
+ import App from "@live-change/framework"
2
+ const app = App.app()
3
+
4
+ app.config = {}
5
+ const appConfig = app.config
6
+
7
+ import init from './init.js'
8
+ appConfig.init = init
9
+
10
+ import { starter } from '@live-change/cli'
11
+
12
+ starter(appConfig)
@@ -1,4 +0,0 @@
1
- export default {
2
- services: [
3
- ]
4
- }