@cedarjs/vite 5.0.7-next.219 → 5.0.7-next.258
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/bins/cedar-vite-dev.mjs
CHANGED
|
@@ -16,15 +16,28 @@ const startDevServer = async () => {
|
|
|
16
16
|
// Tries to maintain the same options as vite's dev cli
|
|
17
17
|
// See here: https://github.com/vitejs/vite/blob/main/packages/vite/src/node/cli.ts#L103
|
|
18
18
|
// e.g. yarn cedar dev web --fwd="--force"
|
|
19
|
+
//
|
|
20
|
+
// `force` and `debug` aren't Vite server options, so pull those out.
|
|
21
|
+
// Everything else yargs-parser picks out of argv (e.g. `open`, `port`,
|
|
22
|
+
// `https`, `strictPort`, `cors`) is a forwarded server option and gets
|
|
23
|
+
// passed straight through to Vite's `server` config.
|
|
19
24
|
const {
|
|
20
25
|
force: forceOptimize,
|
|
21
|
-
forwardedServerArgs,
|
|
22
26
|
debug,
|
|
27
|
+
_: _positional,
|
|
28
|
+
...forwardedServerArgs
|
|
23
29
|
} = yargsParser(process.argv.slice(2), {
|
|
24
30
|
boolean: ['https', 'open', 'strictPort', 'force', 'cors', 'debug'],
|
|
25
31
|
number: ['port'],
|
|
26
32
|
})
|
|
27
33
|
|
|
34
|
+
// Default to not auto-opening a browser when there's no interactive
|
|
35
|
+
// terminal attached (CI, AI coding agents, etc.), unless the user
|
|
36
|
+
// explicitly forwarded --open.
|
|
37
|
+
if (forwardedServerArgs.open === undefined && !process.stdout.isTTY) {
|
|
38
|
+
forwardedServerArgs.open = false
|
|
39
|
+
}
|
|
40
|
+
|
|
28
41
|
const devServer = await createServer({
|
|
29
42
|
configFile,
|
|
30
43
|
envFile: false, // env file is handled by plugins in the redwood-vite plugin
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cedar-unified-dev.d.ts","sourceRoot":"","sources":["../src/cedar-unified-dev.ts"],"names":[],"mappings":"AAgBA,UAAU,sBAAsB;IAC9B,oEAAoE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 async function startUnifiedDevServer() {
|
|
|
213
213
|
throw new Error("Could not locate your web/vite.config.{js,ts} file");
|
|
214
214
|
}
|
|
215
215
|
const { forceOptimize, debug, portArg, debugPort, debugBrk, serverArgs } = parseCliArgs();
|
|
216
|
+
if (serverArgs.open === void 0 && !process.stdout.isTTY) {
|
|
217
|
+
serverArgs.open = false;
|
|
218
|
+
}
|
|
216
219
|
if (debugPort !== void 0) {
|
|
217
220
|
await openDebugger(debugPort, debugBrk);
|
|
218
221
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "5.0.7-next.
|
|
3
|
+
"version": "5.0.7-next.258",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
"@babel/parser": "7.29.7",
|
|
53
53
|
"@babel/traverse": "7.29.7",
|
|
54
54
|
"@babel/types": "7.29.7",
|
|
55
|
-
"@cedarjs/api": "5.0.7-next.
|
|
56
|
-
"@cedarjs/api-server": "5.0.7-next.
|
|
57
|
-
"@cedarjs/babel-config": "5.0.7-next.
|
|
58
|
-
"@cedarjs/context": "5.0.7-next.
|
|
59
|
-
"@cedarjs/graphql-server": "5.0.7-next.
|
|
60
|
-
"@cedarjs/internal": "5.0.7-next.
|
|
61
|
-
"@cedarjs/project-config": "5.0.7-next.
|
|
62
|
-
"@cedarjs/server-store": "5.0.7-next.
|
|
63
|
-
"@cedarjs/structure": "5.0.7-next.
|
|
64
|
-
"@cedarjs/testing": "5.0.7-next.
|
|
65
|
-
"@swc/core": "1.15.
|
|
55
|
+
"@cedarjs/api": "5.0.7-next.258",
|
|
56
|
+
"@cedarjs/api-server": "5.0.7-next.258",
|
|
57
|
+
"@cedarjs/babel-config": "5.0.7-next.258",
|
|
58
|
+
"@cedarjs/context": "5.0.7-next.258",
|
|
59
|
+
"@cedarjs/graphql-server": "5.0.7-next.258",
|
|
60
|
+
"@cedarjs/internal": "5.0.7-next.258",
|
|
61
|
+
"@cedarjs/project-config": "5.0.7-next.258",
|
|
62
|
+
"@cedarjs/server-store": "5.0.7-next.258",
|
|
63
|
+
"@cedarjs/structure": "5.0.7-next.258",
|
|
64
|
+
"@cedarjs/testing": "5.0.7-next.258",
|
|
65
|
+
"@swc/core": "1.15.47",
|
|
66
66
|
"@universal-deploy/store": "^0.2.1",
|
|
67
67
|
"@universal-deploy/vite": "^0.1.9",
|
|
68
68
|
"@vitejs/plugin-react": "4.7.0",
|
|
@@ -92,10 +92,10 @@
|
|
|
92
92
|
"yargs-parser": "21.1.1"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@cedarjs/auth": "5.0.7-next.
|
|
96
|
-
"@cedarjs/framework-tools": "5.0.7-next.
|
|
97
|
-
"@cedarjs/router": "5.0.7-next.
|
|
98
|
-
"@cedarjs/web": "5.0.7-next.
|
|
95
|
+
"@cedarjs/auth": "5.0.7-next.258",
|
|
96
|
+
"@cedarjs/framework-tools": "5.0.7-next.258",
|
|
97
|
+
"@cedarjs/router": "5.0.7-next.258",
|
|
98
|
+
"@cedarjs/web": "5.0.7-next.258",
|
|
99
99
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
100
100
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|
|
101
101
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
@@ -108,16 +108,16 @@
|
|
|
108
108
|
"@types/yargs-parser": "21.0.3",
|
|
109
109
|
"concurrently": "9.2.4",
|
|
110
110
|
"memfs": "4.64.0",
|
|
111
|
-
"publint": "0.3.
|
|
111
|
+
"publint": "0.3.23",
|
|
112
112
|
"rollup": "4.60.4",
|
|
113
113
|
"ts-dedent": "2.3.0",
|
|
114
114
|
"typescript": "5.9.3",
|
|
115
115
|
"vitest": "4.1.10"
|
|
116
116
|
},
|
|
117
117
|
"peerDependencies": {
|
|
118
|
-
"@cedarjs/auth": "5.0.7-next.
|
|
119
|
-
"@cedarjs/router": "5.0.7-next.
|
|
120
|
-
"@cedarjs/web": "5.0.7-next.
|
|
118
|
+
"@cedarjs/auth": "5.0.7-next.258",
|
|
119
|
+
"@cedarjs/router": "5.0.7-next.258",
|
|
120
|
+
"@cedarjs/web": "5.0.7-next.258"
|
|
121
121
|
},
|
|
122
122
|
"engines": {
|
|
123
123
|
"node": ">=24"
|