@voltx/cli 0.3.6 → 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;
@@ -1153,9 +1157,9 @@ var init_create = __esm({
1153
1157
  path = __toESM(require("path"));
1154
1158
  init_welcome();
1155
1159
  VV = {
1156
- "@voltx/core": "^0.3.1",
1157
- "@voltx/server": "^0.3.1",
1158
- "@voltx/cli": "^0.3.5",
1160
+ "@voltx/core": "^0.3.2",
1161
+ "@voltx/server": "^0.3.2",
1162
+ "@voltx/cli": "^0.3.7",
1159
1163
  "@voltx/ai": "^0.3.0",
1160
1164
  "@voltx/agents": "^0.3.1",
1161
1165
  "@voltx/memory": "^0.3.0",
@@ -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
  }),
@@ -1799,7 +1801,7 @@ var init_index = __esm({
1799
1801
  init_build();
1800
1802
  init_start();
1801
1803
  init_generate();
1802
- CLI_VERSION = "0.3.5";
1804
+ CLI_VERSION = "0.3.7";
1803
1805
  }
1804
1806
  });
1805
1807
 
package/dist/create.js CHANGED
@@ -143,9 +143,9 @@ function printWelcomeBanner(projectName) {
143
143
 
144
144
  // src/create.ts
145
145
  var VV = {
146
- "@voltx/core": "^0.3.1",
147
- "@voltx/server": "^0.3.1",
148
- "@voltx/cli": "^0.3.5",
146
+ "@voltx/core": "^0.3.2",
147
+ "@voltx/server": "^0.3.2",
148
+ "@voltx/cli": "^0.3.7",
149
149
  "@voltx/ai": "^0.3.0",
150
150
  "@voltx/agents": "^0.3.1",
151
151
  "@voltx/memory": "^0.3.0",
@@ -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-TFVNHM7S.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.d.mts CHANGED
@@ -4,6 +4,6 @@ export { BuildOptions, runBuild } from './build.mjs';
4
4
  export { StartOptions, runStart } from './start.mjs';
5
5
  export { GenerateOptions, GeneratorType, runGenerate } from './generate.mjs';
6
6
 
7
- declare const CLI_VERSION = "0.3.5";
7
+ declare const CLI_VERSION = "0.3.7";
8
8
 
9
9
  export { CLI_VERSION };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,6 @@ export { BuildOptions, runBuild } from './build.js';
4
4
  export { StartOptions, runStart } from './start.js';
5
5
  export { GenerateOptions, GeneratorType, runGenerate } from './generate.js';
6
6
 
7
- declare const CLI_VERSION = "0.3.5";
7
+ declare const CLI_VERSION = "0.3.7";
8
8
 
9
9
  export { CLI_VERSION };
package/dist/index.js CHANGED
@@ -149,9 +149,9 @@ function printWelcomeBanner(projectName) {
149
149
 
150
150
  // src/create.ts
151
151
  var VV = {
152
- "@voltx/core": "^0.3.1",
153
- "@voltx/server": "^0.3.1",
154
- "@voltx/cli": "^0.3.5",
152
+ "@voltx/core": "^0.3.2",
153
+ "@voltx/server": "^0.3.2",
154
+ "@voltx/cli": "^0.3.7",
155
155
  "@voltx/ai": "^0.3.0",
156
156
  "@voltx/agents": "^0.3.1",
157
157
  "@voltx/memory": "^0.3.0",
@@ -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
  }),
@@ -1735,7 +1737,7 @@ function toCamelCase(str) {
1735
1737
  }
1736
1738
 
1737
1739
  // src/index.ts
1738
- var CLI_VERSION = "0.3.5";
1740
+ var CLI_VERSION = "0.3.7";
1739
1741
  // Annotate the CommonJS export names for ESM import in node:
1740
1742
  0 && (module.exports = {
1741
1743
  CLI_VERSION,
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-TFVNHM7S.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";
@@ -16,7 +16,7 @@ import {
16
16
  import "./chunk-IV352HZA.mjs";
17
17
 
18
18
  // src/index.ts
19
- var CLI_VERSION = "0.3.5";
19
+ var CLI_VERSION = "0.3.7";
20
20
  export {
21
21
  CLI_VERSION,
22
22
  createProject,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltx/cli",
3
- "version": "0.3.6",
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",
@@ -21,7 +21,7 @@
21
21
  "clean": "rm -rf dist"
22
22
  },
23
23
  "dependencies": {
24
- "@voltx/core": "^0.3.1"
24
+ "@voltx/core": "^0.3.2"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "tsx": ">=4.0.0",