@cedarjs/vite 6.0.0-canary.2860 → 6.0.0-canary.2861

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.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/vite",
3
- "version": "6.0.0-canary.2860",
3
+ "version": "6.0.0-canary.2861",
4
4
  "description": "Vite configuration package for CedarJS",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,16 +52,16 @@
52
52
  "@babel/parser": "7.29.7",
53
53
  "@babel/traverse": "7.29.7",
54
54
  "@babel/types": "7.29.7",
55
- "@cedarjs/api": "6.0.0-canary.2860",
56
- "@cedarjs/api-server": "6.0.0-canary.2860",
57
- "@cedarjs/babel-config": "6.0.0-canary.2860",
58
- "@cedarjs/context": "6.0.0-canary.2860",
59
- "@cedarjs/graphql-server": "6.0.0-canary.2860",
60
- "@cedarjs/internal": "6.0.0-canary.2860",
61
- "@cedarjs/project-config": "6.0.0-canary.2860",
62
- "@cedarjs/server-store": "6.0.0-canary.2860",
63
- "@cedarjs/structure": "6.0.0-canary.2860",
64
- "@cedarjs/testing": "6.0.0-canary.2860",
55
+ "@cedarjs/api": "6.0.0-canary.2861",
56
+ "@cedarjs/api-server": "6.0.0-canary.2861",
57
+ "@cedarjs/babel-config": "6.0.0-canary.2861",
58
+ "@cedarjs/context": "6.0.0-canary.2861",
59
+ "@cedarjs/graphql-server": "6.0.0-canary.2861",
60
+ "@cedarjs/internal": "6.0.0-canary.2861",
61
+ "@cedarjs/project-config": "6.0.0-canary.2861",
62
+ "@cedarjs/server-store": "6.0.0-canary.2861",
63
+ "@cedarjs/structure": "6.0.0-canary.2861",
64
+ "@cedarjs/testing": "6.0.0-canary.2861",
65
65
  "@swc/core": "1.15.46",
66
66
  "@universal-deploy/store": "^0.2.1",
67
67
  "@universal-deploy/vite": "^0.1.9",
@@ -92,10 +92,10 @@
92
92
  "yargs-parser": "21.1.1"
93
93
  },
94
94
  "devDependencies": {
95
- "@cedarjs/auth": "6.0.0-canary.2860",
96
- "@cedarjs/framework-tools": "6.0.0-canary.2860",
97
- "@cedarjs/router": "6.0.0-canary.2860",
98
- "@cedarjs/web": "6.0.0-canary.2860",
95
+ "@cedarjs/auth": "6.0.0-canary.2861",
96
+ "@cedarjs/framework-tools": "6.0.0-canary.2861",
97
+ "@cedarjs/router": "6.0.0-canary.2861",
98
+ "@cedarjs/web": "6.0.0-canary.2861",
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",
@@ -115,9 +115,9 @@
115
115
  "vitest": "4.1.10"
116
116
  },
117
117
  "peerDependencies": {
118
- "@cedarjs/auth": "6.0.0-canary.2860",
119
- "@cedarjs/router": "6.0.0-canary.2860",
120
- "@cedarjs/web": "6.0.0-canary.2860"
118
+ "@cedarjs/auth": "6.0.0-canary.2861",
119
+ "@cedarjs/router": "6.0.0-canary.2861",
120
+ "@cedarjs/web": "6.0.0-canary.2861"
121
121
  },
122
122
  "engines": {
123
123
  "node": ">=24"