@cedarjs/cli 3.0.0-canary.13488 → 3.0.0-canary.13490
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/dist/lib/generatePrismaClient.js +3 -6
- package/package.json +11 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
import
|
|
3
|
+
import { resolveGeneratedPrismaClient } from "@cedarjs/project-config";
|
|
4
4
|
import { runCommandTask, getPaths } from "../lib/index.js";
|
|
5
5
|
const generatePrismaCommand = async () => {
|
|
6
6
|
const createdRequire = createRequire(import.meta.url);
|
|
@@ -20,11 +20,8 @@ const generatePrismaClient = async ({
|
|
|
20
20
|
silent = false
|
|
21
21
|
}) => {
|
|
22
22
|
if (!force) {
|
|
23
|
-
const prismaClientPath =
|
|
24
|
-
|
|
25
|
-
"node_modules/.prisma/client/index.js"
|
|
26
|
-
);
|
|
27
|
-
const prismaClientFile = fs.readFileSync(prismaClientPath, "utf8");
|
|
23
|
+
const prismaClientPath = resolveGeneratedPrismaClient();
|
|
24
|
+
const prismaClientFile = fs.existsSync(prismaClientPath) ? fs.readFileSync(prismaClientPath, "utf8") : "";
|
|
28
25
|
if (!prismaClientFile.includes("@prisma/client did not initialize yet.") && prismaClientFile.includes("exports.Prisma.")) {
|
|
29
26
|
return;
|
|
30
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "3.0.0-canary.
|
|
3
|
+
"version": "3.0.0-canary.13490+70d1db44e",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"@babel/parser": "7.29.0",
|
|
35
35
|
"@babel/preset-typescript": "7.28.5",
|
|
36
36
|
"@babel/runtime-corejs3": "7.29.0",
|
|
37
|
-
"@cedarjs/api-server": "3.0.0-canary.
|
|
38
|
-
"@cedarjs/cli-helpers": "3.0.0-canary.
|
|
39
|
-
"@cedarjs/fastify-web": "3.0.0-canary.
|
|
40
|
-
"@cedarjs/internal": "3.0.0-canary.
|
|
41
|
-
"@cedarjs/prerender": "3.0.0-canary.
|
|
42
|
-
"@cedarjs/project-config": "3.0.0-canary.
|
|
43
|
-
"@cedarjs/structure": "3.0.0-canary.
|
|
44
|
-
"@cedarjs/telemetry": "3.0.0-canary.
|
|
45
|
-
"@cedarjs/web-server": "3.0.0-canary.
|
|
37
|
+
"@cedarjs/api-server": "3.0.0-canary.13490",
|
|
38
|
+
"@cedarjs/cli-helpers": "3.0.0-canary.13490",
|
|
39
|
+
"@cedarjs/fastify-web": "3.0.0-canary.13490",
|
|
40
|
+
"@cedarjs/internal": "3.0.0-canary.13490",
|
|
41
|
+
"@cedarjs/prerender": "3.0.0-canary.13490",
|
|
42
|
+
"@cedarjs/project-config": "3.0.0-canary.13490",
|
|
43
|
+
"@cedarjs/structure": "3.0.0-canary.13490",
|
|
44
|
+
"@cedarjs/telemetry": "3.0.0-canary.13490",
|
|
45
|
+
"@cedarjs/web-server": "3.0.0-canary.13490",
|
|
46
46
|
"@listr2/prompt-adapter-enquirer": "2.0.16",
|
|
47
47
|
"@opentelemetry/api": "1.9.0",
|
|
48
48
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"publishConfig": {
|
|
107
107
|
"access": "public"
|
|
108
108
|
},
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "70d1db44ef4c4f14489ddfc6885cb18c86f77eef"
|
|
110
110
|
}
|