@cedarjs/cli 2.4.1-next.0 → 2.4.1-next.4
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.
|
@@ -54,7 +54,7 @@ const handler = async ({
|
|
|
54
54
|
},
|
|
55
55
|
nonApiWebWorkspaces.length > 0 && {
|
|
56
56
|
title: "Building Packages...",
|
|
57
|
-
task: () => buildPackagesTask(nonApiWebWorkspaces)
|
|
57
|
+
task: (_ctx, task) => buildPackagesTask(task, nonApiWebWorkspaces)
|
|
58
58
|
},
|
|
59
59
|
// If using GraphQL Fragments or Trusted Documents, then we need to use
|
|
60
60
|
// codegen to generate the types needed for possible types and the trusted
|
|
@@ -5,7 +5,7 @@ import { importStatementPath } from "@cedarjs/project-config";
|
|
|
5
5
|
import { errorTelemetry } from "@cedarjs/telemetry";
|
|
6
6
|
import { exitWithError } from "../../lib/exit.js";
|
|
7
7
|
import { getPaths } from "../../lib/index.js";
|
|
8
|
-
async function buildPackagesTask(nonApiWebWorkspaces) {
|
|
8
|
+
async function buildPackagesTask(task, nonApiWebWorkspaces) {
|
|
9
9
|
const cedarPaths = getPaths();
|
|
10
10
|
const globPattern = path.join(cedarPaths.packages, "*").replaceAll("\\", "/");
|
|
11
11
|
const workspacePaths = nonApiWebWorkspaces.some((w) => w === "packages/*") ? await Array.fromAsync(fs.promises.glob(globPattern)) : nonApiWebWorkspaces.map((w) => {
|
|
@@ -14,10 +14,14 @@ async function buildPackagesTask(nonApiWebWorkspaces) {
|
|
|
14
14
|
w.split("/").at(-1)
|
|
15
15
|
);
|
|
16
16
|
if (!fs.existsSync(workspacePath)) {
|
|
17
|
-
|
|
17
|
+
return "";
|
|
18
18
|
}
|
|
19
19
|
return importStatementPath(workspacePath);
|
|
20
|
-
});
|
|
20
|
+
}).filter(Boolean);
|
|
21
|
+
if (!workspacePaths.length) {
|
|
22
|
+
task.skip("No packages to build at " + nonApiWebWorkspaces.join(", "));
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
21
25
|
const { result } = concurrently(
|
|
22
26
|
workspacePaths.map((workspacePath) => {
|
|
23
27
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "2.4.1-next.
|
|
3
|
+
"version": "2.4.1-next.4+90f0af08a",
|
|
4
4
|
"description": "The CedarJS Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/preset-typescript": "7.28.5",
|
|
35
35
|
"@babel/runtime-corejs3": "7.28.4",
|
|
36
|
-
"@cedarjs/api-server": "2.4.1-next.
|
|
37
|
-
"@cedarjs/cli-helpers": "2.4.1-next.
|
|
38
|
-
"@cedarjs/fastify-web": "2.4.1-next.
|
|
39
|
-
"@cedarjs/internal": "2.4.1-next.
|
|
40
|
-
"@cedarjs/prerender": "2.4.1-next.
|
|
41
|
-
"@cedarjs/project-config": "2.4.1-next.
|
|
42
|
-
"@cedarjs/structure": "2.4.1-next.
|
|
43
|
-
"@cedarjs/telemetry": "2.4.1-next.
|
|
44
|
-
"@cedarjs/web-server": "2.4.1-next.
|
|
36
|
+
"@cedarjs/api-server": "2.4.1-next.4+90f0af08a",
|
|
37
|
+
"@cedarjs/cli-helpers": "2.4.1-next.4+90f0af08a",
|
|
38
|
+
"@cedarjs/fastify-web": "2.4.1-next.4+90f0af08a",
|
|
39
|
+
"@cedarjs/internal": "2.4.1-next.4+90f0af08a",
|
|
40
|
+
"@cedarjs/prerender": "2.4.1-next.4+90f0af08a",
|
|
41
|
+
"@cedarjs/project-config": "2.4.1-next.4+90f0af08a",
|
|
42
|
+
"@cedarjs/structure": "2.4.1-next.4+90f0af08a",
|
|
43
|
+
"@cedarjs/telemetry": "2.4.1-next.4+90f0af08a",
|
|
44
|
+
"@cedarjs/web-server": "2.4.1-next.4+90f0af08a",
|
|
45
45
|
"@listr2/prompt-adapter-enquirer": "2.0.16",
|
|
46
46
|
"@opentelemetry/api": "1.8.0",
|
|
47
47
|
"@opentelemetry/core": "1.22.0",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"access": "public"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "90f0af08ac6042e8898e2b92baa54a3b5c445a9e"
|
|
107
107
|
}
|