@powerhousedao/switchboard 5.1.0 → 5.2.0-staging.2

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/entrypoint.sh CHANGED
@@ -12,9 +12,9 @@ if [ ! -z "$PH_PACKAGES" ]; then
12
12
  fi
13
13
 
14
14
  # Check if DATABASE_URL starts with postgres and run Prisma db push
15
- if [ ! -z "$DATABASE_URL" ] && echo "$DATABASE_URL" | grep -q "^postgres"; then
15
+ if [ ! -z "$DATABASE_URL" ] && echo "$DATABASE_URL" | grep -q "^postgres" && [ "$SKIP_DB_MIGRATIONS" != "true" ]; then
16
16
  echo "[entrypoint] DATABASE_URL starts with postgres, running Prisma db push..."
17
- pnpx prisma@5.17.0 db push --schema node_modules/document-drive/dist/prisma/schema.prisma
17
+ prisma db push --schema node_modules/document-drive/dist/prisma/schema.prisma --skip-generate
18
18
  fi
19
19
 
20
20
  echo "[entrypoint] Starting switchboard..."
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/switchboard",
3
3
  "type": "module",
4
- "version": "5.1.0",
4
+ "version": "5.2.0-staging.2",
5
5
  "main": "dist/src/index.js",
6
6
  "exports": {
7
7
  ".": {
@@ -24,6 +24,7 @@
24
24
  "license": "ISC",
25
25
  "description": "",
26
26
  "dependencies": {
27
+ "@electric-sql/pglite": "0.2.17",
27
28
  "@openfeature/core": "^1.9.1",
28
29
  "@openfeature/env-var-provider": "^0.3.1",
29
30
  "@openfeature/server-sdk": "^1.19.0",
@@ -37,16 +38,21 @@
37
38
  "exponential-backoff": "^3.1.1",
38
39
  "express": "^4.21.2",
39
40
  "graphql": "^16.11.0",
41
+ "kysely": "^0.28.2",
42
+ "kysely-pglite-dialect": "^1.1.1",
43
+ "pg": "^8.13.0",
40
44
  "redis": "^4.7.0",
41
- "@powerhousedao/config": "5.1.0",
42
- "@powerhousedao/reactor-api": "5.1.0",
43
- "document-drive": "5.1.0",
44
- "document-model": "5.1.0",
45
- "@powerhousedao/reactor": "5.1.0"
45
+ "@powerhousedao/config": "5.2.0-staging.2",
46
+ "@powerhousedao/reactor": "5.2.0-staging.2",
47
+ "@powerhousedao/reactor-api": "5.2.0-staging.2",
48
+ "@renown/sdk": "5.2.0-staging.2",
49
+ "document-drive": "5.2.0-staging.2",
50
+ "document-model": "5.2.0-staging.2"
46
51
  },
47
52
  "devDependencies": {
48
53
  "@types/express": "^4.17.25",
49
54
  "@types/node": "^24.6.1",
55
+ "@types/pg": "^8.11.10",
50
56
  "concurrently": "^9.1.2",
51
57
  "nodemon": "^3.1.9"
52
58
  },
package/tsconfig.json CHANGED
@@ -17,6 +17,9 @@
17
17
  },
18
18
  {
19
19
  "path": "../../packages/reactor-api"
20
+ },
21
+ {
22
+ "path": "../../packages/renown"
20
23
  }
21
24
  ]
22
25
  }