@cedarjs/internal 3.0.0-canary.13488 → 3.0.0-canary.13489
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqlCodeGen.d.ts","sourceRoot":"","sources":["../../../src/generate/graphqlCodeGen.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"graphqlCodeGen.d.ts","sourceRoot":"","sources":["../../../src/generate/graphqlCodeGen.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAkB9D,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CAmFvE,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CA0DvE,CAAA;AAiCD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;SACD,MAAM;GAQ5D;AAkHD,eAAO,MAAM,iBAAiB,4RAe7B,CAAA"}
|
|
@@ -204,10 +204,7 @@ async function getPrismaClient(hasGenerated = false) {
|
|
|
204
204
|
let localPrisma;
|
|
205
205
|
if (hasGenerated) {
|
|
206
206
|
const cacheBuster = `?t=${Date.now()}`;
|
|
207
|
-
const prismaClientPath =
|
|
208
|
-
process.cwd(),
|
|
209
|
-
"node_modules/.prisma/client/index.js"
|
|
210
|
-
);
|
|
207
|
+
const prismaClientPath = (0, import_project_config.resolveGeneratedPrismaClient)({ mustExist: true });
|
|
211
208
|
const { default: freshPrisma } = await import(`file://${prismaClientPath}${cacheBuster}`);
|
|
212
209
|
localPrisma = freshPrisma;
|
|
213
210
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqlCodeGen.d.ts","sourceRoot":"","sources":["../../src/generate/graphqlCodeGen.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"graphqlCodeGen.d.ts","sourceRoot":"","sources":["../../src/generate/graphqlCodeGen.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAkB9D,KAAK,aAAa,GAAG;IACnB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9C,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CAmFvE,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CA0DvE,CAAA;AAiCD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;SACD,MAAM;GAQ5D;AAkHD,eAAO,MAAM,iBAAiB,4RAe7B,CAAA"}
|
|
@@ -10,7 +10,11 @@ import { GraphQLFileLoader } from "@graphql-tools/graphql-file-loader";
|
|
|
10
10
|
import { loadDocuments, loadSchemaSync } from "@graphql-tools/load";
|
|
11
11
|
import execa from "execa";
|
|
12
12
|
import { Kind } from "graphql";
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
getPaths,
|
|
15
|
+
getConfig,
|
|
16
|
+
resolveGeneratedPrismaClient
|
|
17
|
+
} from "@cedarjs/project-config";
|
|
14
18
|
import { getTsConfigs, dbReexportsPrismaClient } from "../project.js";
|
|
15
19
|
import * as rwTypescriptResolvers from "./plugins/rw-typescript-resolvers/index.js";
|
|
16
20
|
var CodegenSide = /* @__PURE__ */ ((CodegenSide2) => {
|
|
@@ -168,10 +172,7 @@ async function getPrismaClient(hasGenerated = false) {
|
|
|
168
172
|
let localPrisma;
|
|
169
173
|
if (hasGenerated) {
|
|
170
174
|
const cacheBuster = `?t=${Date.now()}`;
|
|
171
|
-
const prismaClientPath =
|
|
172
|
-
process.cwd(),
|
|
173
|
-
"node_modules/.prisma/client/index.js"
|
|
174
|
-
);
|
|
175
|
+
const prismaClientPath = resolveGeneratedPrismaClient({ mustExist: true });
|
|
175
176
|
const { default: freshPrisma } = await import(`file://${prismaClientPath}${cacheBuster}`);
|
|
176
177
|
localPrisma = freshPrisma;
|
|
177
178
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/internal",
|
|
3
|
-
"version": "3.0.0-canary.
|
|
3
|
+
"version": "3.0.0-canary.13489+45286a80b",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -150,10 +150,10 @@
|
|
|
150
150
|
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
151
151
|
"@babel/runtime-corejs3": "7.29.0",
|
|
152
152
|
"@babel/traverse": "7.29.0",
|
|
153
|
-
"@cedarjs/babel-config": "3.0.0-canary.
|
|
154
|
-
"@cedarjs/graphql-server": "3.0.0-canary.
|
|
155
|
-
"@cedarjs/project-config": "3.0.0-canary.
|
|
156
|
-
"@cedarjs/router": "3.0.0-canary.
|
|
153
|
+
"@cedarjs/babel-config": "3.0.0-canary.13489",
|
|
154
|
+
"@cedarjs/graphql-server": "3.0.0-canary.13489",
|
|
155
|
+
"@cedarjs/project-config": "3.0.0-canary.13489",
|
|
156
|
+
"@cedarjs/router": "3.0.0-canary.13489",
|
|
157
157
|
"@graphql-codegen/add": "6.0.0",
|
|
158
158
|
"@graphql-codegen/cli": "6.1.2",
|
|
159
159
|
"@graphql-codegen/client-preset": "5.2.3",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
},
|
|
186
186
|
"devDependencies": {
|
|
187
187
|
"@arethetypeswrong/cli": "0.18.2",
|
|
188
|
-
"@cedarjs/framework-tools": "3.0.0-canary.
|
|
188
|
+
"@cedarjs/framework-tools": "3.0.0-canary.13489",
|
|
189
189
|
"concurrently": "9.2.1",
|
|
190
190
|
"graphql-tag": "2.12.6",
|
|
191
191
|
"publint": "0.3.17",
|
|
@@ -195,5 +195,5 @@
|
|
|
195
195
|
"publishConfig": {
|
|
196
196
|
"access": "public"
|
|
197
197
|
},
|
|
198
|
-
"gitHead": "
|
|
198
|
+
"gitHead": "45286a80bffb063ac1dbd797c362765837d88923"
|
|
199
199
|
}
|