@taujs/create-taujs 0.7.0 → 0.8.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.
Files changed (2) hide show
  1. package/dist/index.js +18 -10
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -325,6 +325,8 @@ function generatePackageJson(projectName, framework) {
325
325
  name: projectName,
326
326
  version: "0.1.0",
327
327
  private: true,
328
+ // Vite 8 requires this floor; a generated project must declare what it needs.
329
+ engines: { node: "^20.19.0 || >=22.12.0" },
328
330
  type: "module",
329
331
  scripts: {
330
332
  dev: "cross-env NODE_ENV=development tsx watch --ignore vite.config.ts --trace-warnings --tsconfig ./src/server/tsconfig.json ./src/server/index.ts --loglevel verbose",
@@ -345,14 +347,14 @@ function generatePackageJson(projectName, framework) {
345
347
  devDependencies: {
346
348
  "@taujs/mcp": "latest",
347
349
  "@types/node": "^22.10.5",
348
- "@vitejs/plugin-vue": "^6.0.0",
350
+ "@vitejs/plugin-vue": "^6.0.3",
349
351
  "cross-env": "^7.0.3",
350
352
  // `build:server` invokes the esbuild BINARY directly, so it must be a declared dependency
351
353
  // of the generated project - it is not inherited from vite's own copy.
352
- esbuild: "^0.25.0",
354
+ esbuild: "^0.28.1",
353
355
  tsx: "^4.19.3",
354
356
  typescript: "^5.7.3",
355
- vite: "^7.1.11",
357
+ vite: "^8.2.1",
356
358
  "vue-tsc": "^2.1.10"
357
359
  }
358
360
  };
@@ -362,6 +364,8 @@ function generatePackageJson(projectName, framework) {
362
364
  name: projectName,
363
365
  version: "0.1.0",
364
366
  private: true,
367
+ // Vite 8 requires this floor; a generated project must declare what it needs.
368
+ engines: { node: "^20.19.0 || >=22.12.0" },
365
369
  type: "module",
366
370
  scripts: {
367
371
  dev: "cross-env NODE_ENV=development tsx watch --ignore vite.config.ts --trace-warnings --tsconfig ./src/server/tsconfig.json ./src/server/index.ts --loglevel verbose",
@@ -384,13 +388,13 @@ function generatePackageJson(projectName, framework) {
384
388
  "cross-env": "^7.0.3",
385
389
  // `build:server` invokes the esbuild BINARY directly, so it must be a declared dependency
386
390
  // of the generated project - it is not inherited from vite's own copy.
387
- esbuild: "^0.25.0",
391
+ esbuild: "^0.28.1",
388
392
  tsx: "^4.19.3",
389
393
  typescript: "^5.7.3",
390
- vite: "^7.1.11",
394
+ vite: "^8.2.1",
391
395
  // The managed compiler instantiates this internally with `ssr: true` forced; the app never
392
396
  // adds it to `plugins` itself.
393
- "vite-plugin-solid": "^2.11.0"
397
+ "vite-plugin-solid": "^2.11.11"
394
398
  }
395
399
  };
396
400
  }
@@ -398,6 +402,8 @@ function generatePackageJson(projectName, framework) {
398
402
  name: projectName,
399
403
  version: "0.1.0",
400
404
  private: true,
405
+ // Vite 8 requires this floor; a generated project must declare what it needs.
406
+ engines: { node: "^20.19.0 || >=22.12.0" },
401
407
  type: "module",
402
408
  scripts: {
403
409
  dev: "cross-env NODE_ENV=development tsx watch --ignore vite.config.ts --trace-warnings --tsconfig ./src/server/tsconfig.json ./src/server/index.ts --loglevel verbose",
@@ -420,14 +426,14 @@ function generatePackageJson(projectName, framework) {
420
426
  "@types/node": "^22.10.5",
421
427
  "@types/react": "^19.0.2",
422
428
  "@types/react-dom": "^19.0.2",
423
- "@vitejs/plugin-react": "^4.6.0",
429
+ "@vitejs/plugin-react": "^5.2.0",
424
430
  "cross-env": "^7.0.3",
425
431
  // `build:server` invokes the esbuild BINARY directly, so it must be a declared dependency
426
432
  // of the generated project - it is not inherited from vite's own copy.
427
- esbuild: "^0.25.0",
433
+ esbuild: "^0.28.1",
428
434
  tsx: "^4.19.3",
429
435
  typescript: "^5.7.3",
430
- vite: "^7.1.11"
436
+ vite: "^8.2.1"
431
437
  }
432
438
  };
433
439
  }
@@ -1294,7 +1300,9 @@ function generateServerIndex() {
1294
1300
  import config from '../../taujs.config.ts';
1295
1301
  import { serviceRegistry } from './services/registry.ts';
1296
1302
 
1297
- const isDev = process.env.NODE_ENV !== "production";
1303
+ // Development is requested explicitly, exactly as \u03C4js derives its own runtime mode: every other
1304
+ // value - production, test, staging, unset - is production. Do not invert this check.
1305
+ const isDev = process.env.NODE_ENV === "development";
1298
1306
 
1299
1307
  const { app, net } = await createServer({
1300
1308
  config,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taujs/create-taujs",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Scaffold a new τjs application",
5
5
  "author": "Aoede <taujs@aoede.uk.net> (https://www.aoede.uk.net)",
6
6
  "homepage": "https://taujs.dev/",
@@ -23,7 +23,7 @@
23
23
  "@types/prompts": "^2.4.9",
24
24
  "tsup": "^8.0.0",
25
25
  "typescript": "^5.3.0",
26
- "vitest": "^3.2.4"
26
+ "vitest": "^4.1.9"
27
27
  },
28
28
  "keywords": [
29
29
  "taujs",