@tsed/cli 7.4.0 → 7.5.0-rc.2

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare function build(rawArgs?: string[]): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function dev(rawArgs?: string[]): Promise<void>;
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import "./ts-mode.js";
2
+ export {};
@@ -4,6 +4,6 @@ import { ProjectConvention } from "../../../interfaces/ProjectConvention.js";
4
4
  export declare const ProjectPreferenceSchema: import("@tsed/schema").JsonSchema<import("@tsed/schema").PropsToShape<{
5
5
  convention: import("@tsed/schema").JsonSchema<ProjectConvention>;
6
6
  packageManager: import("@tsed/schema").JsonSchema<PackageManager>;
7
- runtime: import("@tsed/schema").JsonSchema<"node" | "babel" | "webpack" | "bun" | "swc">;
7
+ runtime: import("@tsed/schema").JsonSchema<"vite" | "node" | "babel" | "webpack" | "bun" | "swc">;
8
8
  platform: import("@tsed/schema").JsonSchema<PlatformType>;
9
9
  }> | undefined>;
@@ -48,6 +48,7 @@ export interface RenderDataContext extends CommandData, TsED.RenderDataContext {
48
48
  configPostgres?: boolean;
49
49
  barrels?: string;
50
50
  bun?: boolean;
51
+ vite?: boolean;
51
52
  node?: boolean;
52
53
  compiled?: boolean;
53
54
  testing?: boolean;
@@ -1,4 +1,4 @@
1
- export type RuntimeTypes = "node" | "babel" | "swc" | "webpack" | "bun";
1
+ export type RuntimeTypes = "node" | "babel" | "swc" | "webpack" | "bun" | "vite";
2
2
  declare global {
3
3
  namespace TsED {
4
4
  interface ProjectPreferences {
@@ -3,4 +3,5 @@ export * from "./supports/BabelRuntime.js";
3
3
  export * from "./supports/BaseRuntime.js";
4
4
  export * from "./supports/BunRuntime.js";
5
5
  export * from "./supports/NodeRuntime.js";
6
+ export * from "./supports/ViteRuntime.js";
6
7
  export * from "./supports/WebpackRuntime.js";
@@ -0,0 +1,11 @@
1
+ import { BaseRuntime } from "./BaseRuntime.js";
2
+ export declare class ViteRuntime extends BaseRuntime {
3
+ readonly name = "vite";
4
+ readonly cmd = "node";
5
+ readonly order: number;
6
+ files(): string[];
7
+ compile(): string;
8
+ startDev(): string;
9
+ startProd(args: string): string;
10
+ devDependencies(): Record<string, any>;
11
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsed/cli",
3
3
  "description": "CLI to bootstrap your Ts.ED project",
4
- "version": "7.4.0",
4
+ "version": "7.5.0-rc.2",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "source": "./src/index.ts",
@@ -50,10 +50,10 @@
50
50
  "@swc-node/register": "^1.11.1",
51
51
  "@swc/core": "^1.15.7",
52
52
  "@swc/helpers": "^0.5.17",
53
- "@tsed/cli-core": "7.4.0",
54
- "@tsed/cli-mcp": "7.4.0",
55
- "@tsed/cli-prompts": "7.4.0",
56
- "@tsed/cli-tasks": "7.4.0",
53
+ "@tsed/cli-core": "7.5.0-rc.2",
54
+ "@tsed/cli-mcp": "7.5.0-rc.2",
55
+ "@tsed/cli-prompts": "7.5.0-rc.2",
56
+ "@tsed/cli-tasks": "7.5.0-rc.2",
57
57
  "@tsed/core": ">=8.21.0",
58
58
  "@tsed/di": ">=8.21.0",
59
59
  "@tsed/hooks": ">=8.21.0",
@@ -77,7 +77,7 @@
77
77
  "zod": "3.25.76"
78
78
  },
79
79
  "devDependencies": {
80
- "@tsed/typescript": "7.4.0",
80
+ "@tsed/typescript": "7.5.0-rc.2",
81
81
  "@types/change-case": "^2.3.1",
82
82
  "@types/consolidate": "0.14.4",
83
83
  "cross-env": "7.0.3",
@@ -122,5 +122,8 @@
122
122
  },
123
123
  "homepage": "https://github.com/tsedio/tsed-cli/tree/master/packages/cli",
124
124
  "author": "Romain Lenzotti",
125
- "license": "MIT"
125
+ "license": "MIT",
126
+ "publishConfig": {
127
+ "tag": "rc"
128
+ }
126
129
  }
@@ -0,0 +1,21 @@
1
+ import {builtinModules} from "node:module";
2
+
3
+ import {defineConfig} from "vite";
4
+
5
+ export default defineConfig({
6
+ appType: "custom",
7
+ build: {
8
+ outDir: "dist",
9
+ target: "node24",
10
+ ssr: "src/index.ts",
11
+ sourcemap: true,
12
+ minify: false,
13
+ rollupOptions: {
14
+ external: [...builtinModules, ...builtinModules.map((module) => `node:${module}`)],
15
+ output: {
16
+ entryFileNames: "index.js",
17
+ format: "es"
18
+ }
19
+ }
20
+ }
21
+ });