@cedarjs/internal 4.0.0-canary.13696 → 4.0.0-canary.13698
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":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"graphqlCodeGen.d.ts","sourceRoot":"","sources":["../../../src/generate/graphqlCodeGen.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAmB9D,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,CAiFvE,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CAwDvE,CAAA;AAmCD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;SACD,MAAM;GAQ5D;AAmKD,eAAO,MAAM,iBAAiB,4RAe7B,CAAA"}
|
|
@@ -48,6 +48,7 @@ var import_load = require("@graphql-tools/load");
|
|
|
48
48
|
var import_execa = __toESM(require("execa"), 1);
|
|
49
49
|
var import_graphql = require("graphql");
|
|
50
50
|
var import_project_config = require("@cedarjs/project-config");
|
|
51
|
+
var import_packageManager = require("@cedarjs/project-config/packageManager");
|
|
51
52
|
var import_project = require("../project.js");
|
|
52
53
|
var rwTypescriptResolvers = __toESM(require("./plugins/rw-typescript-resolvers/index.js"), 1);
|
|
53
54
|
var CodegenSide = /* @__PURE__ */ ((CodegenSide2) => {
|
|
@@ -244,7 +245,9 @@ async function getPrismaClient() {
|
|
|
244
245
|
}
|
|
245
246
|
} catch {
|
|
246
247
|
}
|
|
247
|
-
|
|
248
|
+
const pm = (0, import_packageManager.getPackageManager)();
|
|
249
|
+
const pmExec = pm === "npm" ? "npx" : pm;
|
|
250
|
+
import_execa.default.sync(pmExec, ["cedar", "prisma", "generate"]);
|
|
248
251
|
try {
|
|
249
252
|
const freshPrisma = await importGeneratedPrismaClient();
|
|
250
253
|
const modelName = getModelName(freshPrisma);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphqlCodeGen.d.ts","sourceRoot":"","sources":["../../src/generate/graphqlCodeGen.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"graphqlCodeGen.d.ts","sourceRoot":"","sources":["../../src/generate/graphqlCodeGen.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAmB9D,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,CAiFvE,CAAA;AAED,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,aAAa,CAwDvE,CAAA;AAmCD,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM;SACD,MAAM;GAQ5D;AAmKD,eAAO,MAAM,iBAAiB,4RAe7B,CAAA"}
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
getConfig,
|
|
17
17
|
resolveGeneratedPrismaClient
|
|
18
18
|
} from "@cedarjs/project-config";
|
|
19
|
+
import { getPackageManager } from "@cedarjs/project-config/packageManager";
|
|
19
20
|
import { getTsConfigs } from "../project.js";
|
|
20
21
|
import * as rwTypescriptResolvers from "./plugins/rw-typescript-resolvers/index.js";
|
|
21
22
|
var CodegenSide = /* @__PURE__ */ ((CodegenSide2) => {
|
|
@@ -212,7 +213,9 @@ async function getPrismaClient() {
|
|
|
212
213
|
}
|
|
213
214
|
} catch {
|
|
214
215
|
}
|
|
215
|
-
|
|
216
|
+
const pm = getPackageManager();
|
|
217
|
+
const pmExec = pm === "npm" ? "npx" : pm;
|
|
218
|
+
execa.sync(pmExec, ["cedar", "prisma", "generate"]);
|
|
216
219
|
try {
|
|
217
220
|
const freshPrisma = await importGeneratedPrismaClient();
|
|
218
221
|
const modelName = getModelName(freshPrisma);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/internal",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.13698+b674e2207",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -149,11 +149,11 @@
|
|
|
149
149
|
"@babel/plugin-transform-react-jsx": "7.28.6",
|
|
150
150
|
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
151
151
|
"@babel/traverse": "7.29.0",
|
|
152
|
-
"@cedarjs/babel-config": "4.0.0-canary.
|
|
153
|
-
"@cedarjs/graphql-server": "4.0.0-canary.
|
|
154
|
-
"@cedarjs/project-config": "4.0.0-canary.
|
|
155
|
-
"@cedarjs/router": "4.0.0-canary.
|
|
156
|
-
"@cedarjs/structure": "4.0.0-canary.
|
|
152
|
+
"@cedarjs/babel-config": "4.0.0-canary.13698",
|
|
153
|
+
"@cedarjs/graphql-server": "4.0.0-canary.13698",
|
|
154
|
+
"@cedarjs/project-config": "4.0.0-canary.13698",
|
|
155
|
+
"@cedarjs/router": "4.0.0-canary.13698",
|
|
156
|
+
"@cedarjs/structure": "4.0.0-canary.13698",
|
|
157
157
|
"@graphql-codegen/add": "6.0.0",
|
|
158
158
|
"@graphql-codegen/cli": "6.2.1",
|
|
159
159
|
"@graphql-codegen/client-preset": "5.2.4",
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
},
|
|
185
185
|
"devDependencies": {
|
|
186
186
|
"@arethetypeswrong/cli": "0.18.2",
|
|
187
|
-
"@cedarjs/framework-tools": "4.0.0-canary.
|
|
187
|
+
"@cedarjs/framework-tools": "4.0.0-canary.13698",
|
|
188
188
|
"concurrently": "9.2.1",
|
|
189
189
|
"graphql-tag": "2.12.6",
|
|
190
190
|
"publint": "0.3.18",
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
"publishConfig": {
|
|
198
198
|
"access": "public"
|
|
199
199
|
},
|
|
200
|
-
"gitHead": "
|
|
200
|
+
"gitHead": "b674e220706d84cc83d42e5b17a0c3b3f22da115"
|
|
201
201
|
}
|