@cedarjs/cli 0.4.1-next.0 → 0.5.1-next.0
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,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { describe, it } from "vitest";
|
|
2
2
|
describe("Vite plugin codemod", () => {
|
|
3
|
-
beforeAll(async () => {
|
|
4
|
-
await new Promise((res) => setImmediate(res));
|
|
5
|
-
});
|
|
6
3
|
it("Handles the default vite config case", async () => {
|
|
7
4
|
await matchTransformSnapshot("codemodVitePlugin", "defaultViteConfig");
|
|
8
5
|
});
|
package/dist/lib/exec.js
CHANGED
|
@@ -3,24 +3,18 @@ import { createServer, version as viteVersion } from "vite";
|
|
|
3
3
|
import { ViteNodeRunner } from "vite-node/client";
|
|
4
4
|
import { ViteNodeServer } from "vite-node/server";
|
|
5
5
|
import { installSourcemapsSupport } from "vite-node/source-map";
|
|
6
|
-
import {
|
|
7
|
-
getConfig,
|
|
8
|
-
getPaths,
|
|
9
|
-
importStatementPath
|
|
10
|
-
} from "@cedarjs/project-config";
|
|
6
|
+
import { getPaths, importStatementPath } from "@cedarjs/project-config";
|
|
11
7
|
import {
|
|
12
8
|
cedarCellTransform,
|
|
13
9
|
cedarjsDirectoryNamedImportPlugin,
|
|
14
10
|
cedarjsJobPathInjectorPlugin,
|
|
15
|
-
|
|
16
|
-
} from "@cedarjs/vite
|
|
11
|
+
cedarSwapApolloProvider
|
|
12
|
+
} from "@cedarjs/vite";
|
|
17
13
|
async function runScriptFunction({
|
|
18
14
|
path: scriptPath,
|
|
19
15
|
functionName,
|
|
20
16
|
args
|
|
21
17
|
}) {
|
|
22
|
-
const rwConfig = getConfig();
|
|
23
|
-
const streamingEnabled = rwConfig?.experimental.streamingSsr.enabled;
|
|
24
18
|
const NODE_ENV = process.env.NODE_ENV;
|
|
25
19
|
process.env.NODE_ENV = "production";
|
|
26
20
|
const server = await createServer({
|
|
@@ -70,7 +64,7 @@ async function runScriptFunction({
|
|
|
70
64
|
cedarjsDirectoryNamedImportPlugin(),
|
|
71
65
|
cedarCellTransform(),
|
|
72
66
|
cedarjsJobPathInjectorPlugin(),
|
|
73
|
-
|
|
67
|
+
cedarSwapApolloProvider()
|
|
74
68
|
]
|
|
75
69
|
});
|
|
76
70
|
if (Number(viteVersion.split(".")[0]) < 6) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1-next.0+9c48e99f3",
|
|
4
4
|
"description": "The Redwood Command Line",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime-corejs3": "7.27.6",
|
|
34
|
-
"@cedarjs/api-server": "0.
|
|
35
|
-
"@cedarjs/cli-helpers": "0.
|
|
36
|
-
"@cedarjs/fastify-web": "0.
|
|
37
|
-
"@cedarjs/internal": "0.
|
|
38
|
-
"@cedarjs/prerender": "0.
|
|
39
|
-
"@cedarjs/project-config": "0.
|
|
40
|
-
"@cedarjs/structure": "0.
|
|
41
|
-
"@cedarjs/telemetry": "0.
|
|
42
|
-
"@cedarjs/web-server": "0.
|
|
43
|
-
"@listr2/prompt-adapter-enquirer": "2.0.
|
|
34
|
+
"@cedarjs/api-server": "0.5.1-next.0+9c48e99f3",
|
|
35
|
+
"@cedarjs/cli-helpers": "0.5.1-next.0+9c48e99f3",
|
|
36
|
+
"@cedarjs/fastify-web": "0.5.1-next.0+9c48e99f3",
|
|
37
|
+
"@cedarjs/internal": "0.5.1-next.0+9c48e99f3",
|
|
38
|
+
"@cedarjs/prerender": "0.5.1-next.0+9c48e99f3",
|
|
39
|
+
"@cedarjs/project-config": "0.5.1-next.0+9c48e99f3",
|
|
40
|
+
"@cedarjs/structure": "0.5.1-next.0+9c48e99f3",
|
|
41
|
+
"@cedarjs/telemetry": "0.5.1-next.0+9c48e99f3",
|
|
42
|
+
"@cedarjs/web-server": "0.5.1-next.0+9c48e99f3",
|
|
43
|
+
"@listr2/prompt-adapter-enquirer": "2.0.16",
|
|
44
44
|
"@opentelemetry/api": "1.8.0",
|
|
45
45
|
"@opentelemetry/core": "1.22.0",
|
|
46
46
|
"@opentelemetry/exporter-trace-otlp-http": "0.49.1",
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
"@types/archiver": "^6",
|
|
95
95
|
"memfs": "4.17.2",
|
|
96
96
|
"node-ssh": "13.2.1",
|
|
97
|
-
"tsx": "4.
|
|
97
|
+
"tsx": "4.20.3",
|
|
98
98
|
"typescript": "5.6.2",
|
|
99
99
|
"vitest": "3.2.4"
|
|
100
100
|
},
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "9c48e99f37468ae011bc39c5d405044ccef0e77c"
|
|
105
105
|
}
|