@voltx/cli 0.3.7 → 0.3.9

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/dist/cli.js CHANGED
@@ -549,10 +549,14 @@ if (isProd) {
549
549
  }
550
550
 
551
551
  // \u2500\u2500 SSR catch-all \u2014 renders React on the server \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
552
+ // Note: Do NOT statically import entry-server.tsx here \u2014 Node.js cannot
553
+ // handle .tsx files natively. In dev, the Vite instance injected by
554
+ // @hono/vite-dev-server will load it via ssrLoadModule. In production,
555
+ // the pre-built SSR bundle at dist/server/entry-server.js is loaded.
552
556
  registerSSR(app, null, {
553
557
  title: "${projectName}",
554
- entryServer: "src/entry-server.tsx",
555
558
  entryClient: "src/entry-client.tsx",
559
+ entryServer: "src/entry-server.tsx",
556
560
  });
557
561
 
558
562
  export default app;
@@ -1154,7 +1158,7 @@ var init_create = __esm({
1154
1158
  init_welcome();
1155
1159
  VV = {
1156
1160
  "@voltx/core": "^0.3.2",
1157
- "@voltx/server": "^0.3.1",
1161
+ "@voltx/server": "^0.3.2",
1158
1162
  "@voltx/cli": "^0.3.7",
1159
1163
  "@voltx/ai": "^0.3.0",
1160
1164
  "@voltx/agents": "^0.3.1",
@@ -1275,13 +1279,11 @@ export default defineConfig({
1275
1279
  devServer({
1276
1280
  entry: "${entry}",
1277
1281
  exclude: [
1278
- /.*\\.tsx?($|\\?)/,
1279
1282
  /.*\\.(s?css|less)($|\\?)/,
1280
1283
  /.*\\.(svg|png|jpg|jpeg|gif|webp|ico)($|\\?)/,
1281
1284
  /^\\/@.+$/,
1282
1285
  /^\\/favicon\\.svg$/,
1283
1286
  /^\\/node_modules\\/.*/,
1284
- /^\\/src\\/.*/,
1285
1287
  ],
1286
1288
  injectClientScript: false,
1287
1289
  }),
package/dist/create.js CHANGED
@@ -144,7 +144,7 @@ function printWelcomeBanner(projectName) {
144
144
  // src/create.ts
145
145
  var VV = {
146
146
  "@voltx/core": "^0.3.2",
147
- "@voltx/server": "^0.3.1",
147
+ "@voltx/server": "^0.3.2",
148
148
  "@voltx/cli": "^0.3.7",
149
149
  "@voltx/ai": "^0.3.0",
150
150
  "@voltx/agents": "^0.3.1",
@@ -563,10 +563,14 @@ if (isProd) {
563
563
  }
564
564
 
565
565
  // \u2500\u2500 SSR catch-all \u2014 renders React on the server \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
566
+ // Note: Do NOT statically import entry-server.tsx here \u2014 Node.js cannot
567
+ // handle .tsx files natively. In dev, the Vite instance injected by
568
+ // @hono/vite-dev-server will load it via ssrLoadModule. In production,
569
+ // the pre-built SSR bundle at dist/server/entry-server.js is loaded.
566
570
  registerSSR(app, null, {
567
571
  title: "${projectName}",
568
- entryServer: "src/entry-server.tsx",
569
572
  entryClient: "src/entry-client.tsx",
573
+ entryServer: "src/entry-server.tsx",
570
574
  });
571
575
 
572
576
  export default app;
package/dist/create.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createProject
4
- } from "./chunk-6IA2FFG5.mjs";
4
+ } from "./chunk-T4ZF62MG.mjs";
5
5
  import "./chunk-IV352HZA.mjs";
6
6
  export {
7
7
  createProject
package/dist/dev.js CHANGED
@@ -125,13 +125,11 @@ export default defineConfig({
125
125
  devServer({
126
126
  entry: "${entry}",
127
127
  exclude: [
128
- /.*\\.tsx?($|\\?)/,
129
128
  /.*\\.(s?css|less)($|\\?)/,
130
129
  /.*\\.(svg|png|jpg|jpeg|gif|webp|ico)($|\\?)/,
131
130
  /^\\/@.+$/,
132
131
  /^\\/favicon\\.svg$/,
133
132
  /^\\/node_modules\\/.*/,
134
- /^\\/src\\/.*/,
135
133
  ],
136
134
  injectClientScript: false,
137
135
  }),
package/dist/dev.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runDev
3
- } from "./chunk-AD3WMFZF.mjs";
3
+ } from "./chunk-JCDKZPUB.mjs";
4
4
  export {
5
5
  runDev
6
6
  };
package/dist/index.js CHANGED
@@ -150,7 +150,7 @@ function printWelcomeBanner(projectName) {
150
150
  // src/create.ts
151
151
  var VV = {
152
152
  "@voltx/core": "^0.3.2",
153
- "@voltx/server": "^0.3.1",
153
+ "@voltx/server": "^0.3.2",
154
154
  "@voltx/cli": "^0.3.7",
155
155
  "@voltx/ai": "^0.3.0",
156
156
  "@voltx/agents": "^0.3.1",
@@ -569,10 +569,14 @@ if (isProd) {
569
569
  }
570
570
 
571
571
  // \u2500\u2500 SSR catch-all \u2014 renders React on the server \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500
572
+ // Note: Do NOT statically import entry-server.tsx here \u2014 Node.js cannot
573
+ // handle .tsx files natively. In dev, the Vite instance injected by
574
+ // @hono/vite-dev-server will load it via ssrLoadModule. In production,
575
+ // the pre-built SSR bundle at dist/server/entry-server.js is loaded.
572
576
  registerSSR(app, null, {
573
577
  title: "${projectName}",
574
- entryServer: "src/entry-server.tsx",
575
578
  entryClient: "src/entry-client.tsx",
579
+ entryServer: "src/entry-server.tsx",
576
580
  });
577
581
 
578
582
  export default app;
@@ -1269,13 +1273,11 @@ export default defineConfig({
1269
1273
  devServer({
1270
1274
  entry: "${entry}",
1271
1275
  exclude: [
1272
- /.*\\.tsx?($|\\?)/,
1273
1276
  /.*\\.(s?css|less)($|\\?)/,
1274
1277
  /.*\\.(svg|png|jpg|jpeg|gif|webp|ico)($|\\?)/,
1275
1278
  /^\\/@.+$/,
1276
1279
  /^\\/favicon\\.svg$/,
1277
1280
  /^\\/node_modules\\/.*/,
1278
- /^\\/src\\/.*/,
1279
1281
  ],
1280
1282
  injectClientScript: false,
1281
1283
  }),
package/dist/index.mjs CHANGED
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-H2DTIOEO.mjs";
4
4
  import {
5
5
  createProject
6
- } from "./chunk-6IA2FFG5.mjs";
6
+ } from "./chunk-T4ZF62MG.mjs";
7
7
  import {
8
8
  runDev
9
- } from "./chunk-AD3WMFZF.mjs";
9
+ } from "./chunk-JCDKZPUB.mjs";
10
10
  import {
11
11
  runGenerate
12
12
  } from "./chunk-7JVIEGSA.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltx/cli",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "VoltX CLI — dev server, build, start, generate, and scaffolding",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",