@cedarjs/cli 4.0.0-canary.13660 → 4.0.0-canary.13662
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.
|
@@ -80,6 +80,7 @@ const handler = async ({
|
|
|
80
80
|
const cedarConfig = getConfig();
|
|
81
81
|
const useFragments = cedarConfig.graphql?.fragments;
|
|
82
82
|
const useTrustedDocuments = cedarConfig.graphql?.trustedDocuments;
|
|
83
|
+
const usePackagesWorkspace = cedarConfig.experimental?.packagesWorkspace?.enabled;
|
|
83
84
|
const prismaSchemaExists = fs.existsSync(cedarPaths.api.prismaConfig);
|
|
84
85
|
const prerenderRoutes = prerender && workspace.includes("web") ? detectPrerenderRoutes() : [];
|
|
85
86
|
const shouldGeneratePrismaClient = prisma && prismaSchemaExists && (workspace.includes("api") || prerenderRoutes.length > 0);
|
|
@@ -104,11 +105,11 @@ const handler = async ({
|
|
|
104
105
|
});
|
|
105
106
|
}
|
|
106
107
|
},
|
|
107
|
-
nonApiWebWorkspaces.length > 0 && {
|
|
108
|
+
nonApiWebWorkspaces.length > 0 && usePackagesWorkspace && {
|
|
108
109
|
title: "Building Packages...",
|
|
109
110
|
task: (_ctx, task) => buildPackagesTask(task, nonApiWebWorkspaces)
|
|
110
111
|
},
|
|
111
|
-
(workspace.includes("web") || workspace.includes("api")) && {
|
|
112
|
+
(workspace.includes("web") || workspace.includes("api")) && usePackagesWorkspace && {
|
|
112
113
|
title: "Checking workspace packages...",
|
|
113
114
|
task: () => {
|
|
114
115
|
const problems = checkWorkspacePackageEntryPoints(cedarPaths);
|
|
@@ -12,7 +12,7 @@ function isREPLServerWithHistory(replServer) {
|
|
|
12
12
|
const loadPrismaClient = (replContext) => {
|
|
13
13
|
const createdRequire = createRequire(import.meta.url);
|
|
14
14
|
const { db } = createdRequire(path.join(paths.api.lib, "db"));
|
|
15
|
-
db[Symbol.for("nodejs.util.inspect.custom")] = "PrismaClient";
|
|
15
|
+
db[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = "PrismaClient";
|
|
16
16
|
replContext.db = db;
|
|
17
17
|
};
|
|
18
18
|
const consoleHistoryFile = path.join(paths.generated.base, "console_history");
|
package/dist/lib/exec.js
CHANGED
|
@@ -6,7 +6,7 @@ import { installSourcemapsSupport } from "vite-node/source-map";
|
|
|
6
6
|
import { getPaths, importStatementPath } from "@cedarjs/project-config";
|
|
7
7
|
import {
|
|
8
8
|
cedarCellTransform,
|
|
9
|
-
|
|
9
|
+
cedarjsResolveCedarStyleImportsPlugin,
|
|
10
10
|
cedarjsJobPathInjectorPlugin,
|
|
11
11
|
cedarSwapApolloProvider,
|
|
12
12
|
cedarImportDirPlugin,
|
|
@@ -71,7 +71,7 @@ async function runScriptFunction({
|
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
73
|
plugins: [
|
|
74
|
-
|
|
74
|
+
cedarjsResolveCedarStyleImportsPlugin(),
|
|
75
75
|
cedarCellTransform(),
|
|
76
76
|
cedarjsJobPathInjectorPlugin(),
|
|
77
77
|
cedarSwapApolloProvider(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.13662+8c648a34f",
|
|
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.
|
|
37
|
-
"@cedarjs/cli-helpers": "4.0.0-canary.
|
|
38
|
-
"@cedarjs/fastify-web": "4.0.0-canary.
|
|
39
|
-
"@cedarjs/internal": "4.0.0-canary.
|
|
40
|
-
"@cedarjs/prerender": "4.0.0-canary.
|
|
41
|
-
"@cedarjs/project-config": "4.0.0-canary.
|
|
42
|
-
"@cedarjs/structure": "4.0.0-canary.
|
|
43
|
-
"@cedarjs/telemetry": "4.0.0-canary.
|
|
44
|
-
"@cedarjs/utils": "4.0.0-canary.
|
|
45
|
-
"@cedarjs/web-server": "4.0.0-canary.
|
|
36
|
+
"@cedarjs/api-server": "4.0.0-canary.13662",
|
|
37
|
+
"@cedarjs/cli-helpers": "4.0.0-canary.13662",
|
|
38
|
+
"@cedarjs/fastify-web": "4.0.0-canary.13662",
|
|
39
|
+
"@cedarjs/internal": "4.0.0-canary.13662",
|
|
40
|
+
"@cedarjs/prerender": "4.0.0-canary.13662",
|
|
41
|
+
"@cedarjs/project-config": "4.0.0-canary.13662",
|
|
42
|
+
"@cedarjs/structure": "4.0.0-canary.13662",
|
|
43
|
+
"@cedarjs/telemetry": "4.0.0-canary.13662",
|
|
44
|
+
"@cedarjs/utils": "4.0.0-canary.13662",
|
|
45
|
+
"@cedarjs/web-server": "4.0.0-canary.13662",
|
|
46
46
|
"@listr2/prompt-adapter-enquirer": "4.2.1",
|
|
47
47
|
"@opentelemetry/api": "1.9.0",
|
|
48
48
|
"@opentelemetry/core": "1.30.1",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"publishConfig": {
|
|
106
106
|
"access": "public"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "8c648a34f0340e65c34a5546d170665cc417aab3"
|
|
109
109
|
}
|