@cedarjs/cli 4.0.0-canary.13731 → 4.0.0-canary.13732

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.
@@ -81,12 +81,19 @@ async function onNotification(payload: string | undefined) {
81
81
  async function connect() {
82
82
  connectionGeneration = connectionGeneration + 1
83
83
  const generation = connectionGeneration
84
-
85
84
  const prismaConfigPath = getPaths().api.prismaConfig
86
-
87
85
  const prismaConfig = await loadPrismaConfig(prismaConfigPath)
88
86
  const prismaDatasourceUrl = prismaConfig.datasource?.url
89
87
 
88
+ if (!prismaDatasourceUrl) {
89
+ const config = JSON.stringify(prismaConfig, null, 2)
90
+
91
+ throw new Error(
92
+ 'Could not determine Postgres connection URL from Prisma config ' +
93
+ `datasource. Using parsed Prisma config: ${config}`
94
+ )
95
+ }
96
+
90
97
  try {
91
98
  if (reconnectTimeout) {
92
99
  clearTimeout(reconnectTimeout)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "4.0.0-canary.13731+1a786171c",
3
+ "version": "4.0.0-canary.13732+8f7603af0",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,16 +33,16 @@
33
33
  "dependencies": {
34
34
  "@babel/parser": "7.29.2",
35
35
  "@babel/preset-typescript": "7.28.5",
36
- "@cedarjs/api-server": "4.0.0-canary.13731",
37
- "@cedarjs/cli-helpers": "4.0.0-canary.13731",
38
- "@cedarjs/fastify-web": "4.0.0-canary.13731",
39
- "@cedarjs/internal": "4.0.0-canary.13731",
40
- "@cedarjs/prerender": "4.0.0-canary.13731",
41
- "@cedarjs/project-config": "4.0.0-canary.13731",
42
- "@cedarjs/structure": "4.0.0-canary.13731",
43
- "@cedarjs/telemetry": "4.0.0-canary.13731",
44
- "@cedarjs/utils": "4.0.0-canary.13731",
45
- "@cedarjs/web-server": "4.0.0-canary.13731",
36
+ "@cedarjs/api-server": "4.0.0-canary.13732",
37
+ "@cedarjs/cli-helpers": "4.0.0-canary.13732",
38
+ "@cedarjs/fastify-web": "4.0.0-canary.13732",
39
+ "@cedarjs/internal": "4.0.0-canary.13732",
40
+ "@cedarjs/prerender": "4.0.0-canary.13732",
41
+ "@cedarjs/project-config": "4.0.0-canary.13732",
42
+ "@cedarjs/structure": "4.0.0-canary.13732",
43
+ "@cedarjs/telemetry": "4.0.0-canary.13732",
44
+ "@cedarjs/utils": "4.0.0-canary.13732",
45
+ "@cedarjs/web-server": "4.0.0-canary.13732",
46
46
  "@listr2/prompt-adapter-enquirer": "4.2.1",
47
47
  "@opentelemetry/api": "1.9.0",
48
48
  "@opentelemetry/core": "1.30.1",
@@ -108,5 +108,5 @@
108
108
  "publishConfig": {
109
109
  "access": "public"
110
110
  },
111
- "gitHead": "1a786171cd1874d76ec002a11634a45c84c9c847"
111
+ "gitHead": "8f7603af00e8e233f22eb79664296a977f6cac14"
112
112
  }