@cedarjs/cli 2.8.0 → 2.8.1-next.109
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/commands/build/buildHandler.js +7 -3
- package/dist/commands/build.js +2 -1
- package/dist/commands/check.js +2 -4
- package/dist/commands/console.js +2 -2
- package/dist/commands/consoleHandler.js +10 -4
- package/dist/commands/dev/devHandler.js +1 -4
- package/dist/commands/execHandler.js +11 -4
- package/dist/commands/generate/dataMigration/dataMigration.js +1 -2
- package/dist/commands/generate/realtime/realtimeHandler.js +3 -3
- package/dist/commands/generate/service/serviceHandler.js +1 -2
- package/dist/commands/generate.js +8 -1
- package/dist/commands/jobsHandler.js +4 -2
- package/dist/commands/lint.js +2 -2
- package/dist/commands/prerenderHandler.js +65 -35
- package/dist/commands/prismaHandler.js +41 -18
- package/dist/commands/setup/deploy/providers/coherenceHandler.js +3 -3
- package/dist/commands/setup/deploy/providers/flightcontrolHandler.js +4 -12
- package/dist/commands/setup/deploy/providers/renderHandler.js +5 -12
- package/dist/commands/setup/jobs/jobsHandler.js +3 -4
- package/dist/commands/setup/realtime/realtime.js +1 -1
- package/dist/commands/setup/realtime/realtimeHandler.js +20 -1
- package/dist/commands/setup/ui/libraries/tailwindcssHandler.js +1 -1
- package/dist/commands/test/datasourceWarning.js +42 -0
- package/dist/commands/{testHandler.js → test/testHandler.js} +43 -30
- package/dist/commands/{testHandlerEsm.js → test/testHandlerEsm.js} +38 -23
- package/dist/commands/test.js +5 -1
- package/dist/commands/testEsm.js +5 -1
- package/dist/commands/type-checkHandler.js +21 -12
- package/dist/commands/upgrade/upgradeHandler.js +22 -9
- package/dist/lib/background.js +2 -0
- package/dist/lib/generatePrismaClient.js +4 -4
- package/dist/lib/schemaHelpers.js +3 -6
- package/dist/lib/test.js +10 -0
- package/dist/telemetry/resource.js +1 -3
- package/dist/testLib/cells.js +5 -3
- package/package.json +17 -19
package/dist/lib/test.js
CHANGED
|
@@ -61,6 +61,16 @@ vi.mock("@cedarjs/project-config", async (importOriginal) => {
|
|
|
61
61
|
getSchemaPath: () => {
|
|
62
62
|
return path.join(globalThis.__dirname, "fixtures", "schema.prisma");
|
|
63
63
|
},
|
|
64
|
+
getPrismaSchemas: async () => {
|
|
65
|
+
const schemaPath = path.join(
|
|
66
|
+
globalThis.__dirname,
|
|
67
|
+
"fixtures",
|
|
68
|
+
"schema.prisma"
|
|
69
|
+
);
|
|
70
|
+
return {
|
|
71
|
+
schemas: [[schemaPath, fs.readFileSync(schemaPath, "utf-8")]]
|
|
72
|
+
};
|
|
73
|
+
},
|
|
64
74
|
getDataMigrationsPath: () => {
|
|
65
75
|
return path.join(globalThis.__dirname, "fixtures", "migrations");
|
|
66
76
|
}
|
|
@@ -55,9 +55,7 @@ async function getResources() {
|
|
|
55
55
|
developmentEnvironment = "gitpod";
|
|
56
56
|
}
|
|
57
57
|
const experiments = Object.keys(getRawConfig()["experimental"] || {});
|
|
58
|
-
const project = new RWProject(
|
|
59
|
-
projectRoot: getPaths().base
|
|
60
|
-
});
|
|
58
|
+
const project = new RWProject();
|
|
61
59
|
const routes = project.getRouter().routes;
|
|
62
60
|
const prerenderedRoutes = routes.filter((route) => route.hasPrerender);
|
|
63
61
|
const complexity = [
|
package/dist/testLib/cells.js
CHANGED
|
@@ -117,9 +117,11 @@ const getCellGqlQuery = (ast) => {
|
|
|
117
117
|
traverse(ast, {
|
|
118
118
|
ExportNamedDeclaration({ node }) {
|
|
119
119
|
if (node.exportKind === "value" && types.isVariableDeclaration(node.declaration)) {
|
|
120
|
-
const exportedQueryNode = node.declaration.declarations.find(
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
const exportedQueryNode = node.declaration.declarations.find(
|
|
121
|
+
(d) => {
|
|
122
|
+
return types.isIdentifier(d.id) && d.id.name === "QUERY" && types.isTaggedTemplateExpression(d.init);
|
|
123
|
+
}
|
|
124
|
+
);
|
|
123
125
|
if (exportedQueryNode) {
|
|
124
126
|
const templateExpression = exportedQueryNode.init;
|
|
125
127
|
cellQuery = templateExpression.quasi.quasis[0].value.raw;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1-next.109+be993981d",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,19 +31,18 @@
|
|
|
31
31
|
"test:watch": "vitest watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@babel/parser": "7.29.
|
|
34
|
+
"@babel/parser": "7.29.2",
|
|
35
35
|
"@babel/preset-typescript": "7.28.5",
|
|
36
|
-
"@
|
|
37
|
-
"@cedarjs/
|
|
38
|
-
"@cedarjs/
|
|
39
|
-
"@cedarjs/
|
|
40
|
-
"@cedarjs/
|
|
41
|
-
"@cedarjs/
|
|
42
|
-
"@cedarjs/
|
|
43
|
-
"@cedarjs/
|
|
44
|
-
"@cedarjs/
|
|
45
|
-
"@cedarjs/
|
|
46
|
-
"@cedarjs/web-server": "2.8.0",
|
|
36
|
+
"@cedarjs/api-server": "2.8.1-next.109+be993981d",
|
|
37
|
+
"@cedarjs/cli-helpers": "2.8.1-next.109+be993981d",
|
|
38
|
+
"@cedarjs/fastify-web": "2.8.1-next.109+be993981d",
|
|
39
|
+
"@cedarjs/internal": "2.8.1-next.109+be993981d",
|
|
40
|
+
"@cedarjs/prerender": "2.8.1-next.109+be993981d",
|
|
41
|
+
"@cedarjs/project-config": "2.8.1-next.109+be993981d",
|
|
42
|
+
"@cedarjs/structure": "2.8.1-next.109+be993981d",
|
|
43
|
+
"@cedarjs/telemetry": "2.8.1-next.109+be993981d",
|
|
44
|
+
"@cedarjs/utils": "2.8.1-next.109+be993981d",
|
|
45
|
+
"@cedarjs/web-server": "2.8.1-next.109+be993981d",
|
|
47
46
|
"@listr2/prompt-adapter-enquirer": "4.2.1",
|
|
48
47
|
"@opentelemetry/api": "1.9.0",
|
|
49
48
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -51,7 +50,7 @@
|
|
|
51
50
|
"@opentelemetry/resources": "1.30.1",
|
|
52
51
|
"@opentelemetry/sdk-trace-node": "1.30.1",
|
|
53
52
|
"@opentelemetry/semantic-conventions": "1.38.0",
|
|
54
|
-
"@prisma/internals": "
|
|
53
|
+
"@prisma/internals": "7.5.0",
|
|
55
54
|
"ansis": "4.2.0",
|
|
56
55
|
"archiver": "7.0.1",
|
|
57
56
|
"boxen": "5.1.2",
|
|
@@ -60,7 +59,6 @@
|
|
|
60
59
|
"ci-info": "4.4.0",
|
|
61
60
|
"concurrently": "9.2.1",
|
|
62
61
|
"configstore": "7.1.0",
|
|
63
|
-
"core-js": "3.48.0",
|
|
64
62
|
"cross-env": "7.0.3",
|
|
65
63
|
"decamelize": "6.0.1",
|
|
66
64
|
"dotenv-defaults": "5.0.2",
|
|
@@ -78,14 +76,14 @@
|
|
|
78
76
|
"pluralize": "8.0.0",
|
|
79
77
|
"portfinder": "1.0.38",
|
|
80
78
|
"prettier": "3.8.1",
|
|
81
|
-
"prisma": "
|
|
79
|
+
"prisma": "7.5.0",
|
|
82
80
|
"prompts": "2.4.2",
|
|
83
81
|
"recast": "0.23.11",
|
|
84
82
|
"rimraf": "6.1.3",
|
|
85
83
|
"semver": "7.7.4",
|
|
86
84
|
"smol-toml": "1.6.0",
|
|
87
85
|
"string-env-interpolation": "1.0.1",
|
|
88
|
-
"systeminformation": "5.31.
|
|
86
|
+
"systeminformation": "5.31.4",
|
|
89
87
|
"termi-link": "1.1.0",
|
|
90
88
|
"title-case": "3.0.3",
|
|
91
89
|
"unionfs": "4.6.0",
|
|
@@ -97,7 +95,7 @@
|
|
|
97
95
|
"@babel/cli": "7.28.6",
|
|
98
96
|
"@babel/core": "^7.26.10",
|
|
99
97
|
"@types/archiver": "^7.0.0",
|
|
100
|
-
"memfs": "4.56.
|
|
98
|
+
"memfs": "4.56.11",
|
|
101
99
|
"node-ssh": "13.2.1",
|
|
102
100
|
"ts-dedent": "2.2.0",
|
|
103
101
|
"tsx": "4.21.0",
|
|
@@ -107,5 +105,5 @@
|
|
|
107
105
|
"publishConfig": {
|
|
108
106
|
"access": "public"
|
|
109
107
|
},
|
|
110
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "be993981d7e162a83244009c3f7ab9270c6773f3"
|
|
111
109
|
}
|