@tsed/cli 7.0.0-beta.12 → 7.0.0-beta.13

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.
@@ -25,13 +25,14 @@ declare const _default: (typeof CreateTemplateCommand | typeof AddCmd | typeof G
25
25
  allowUnknownOption?: boolean;
26
26
  enableFeatures?: string[];
27
27
  disableReadUpPkg?: boolean;
28
- bindLogger?: boolean;
29
28
  } | {
30
29
  $prompt: any;
31
30
  $exec: any;
32
31
  handler: (data: import("@tsed/schema").PropsToShape<{
33
32
  indent: import("@tsed/schema").JsonSchema<number>;
34
- }>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
33
+ }>) => import("@tsed/cli-tasks").MaybePromise<void | import("@tsed/cli-tasks").Task<import("@tsed/schema").PropsToShape<{
34
+ indent: import("@tsed/schema").JsonSchema<number>;
35
+ }>>[]>;
35
36
  prompt?(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
36
37
  indent: import("@tsed/schema").JsonSchema<number>;
37
38
  }>>): import("@tsed/cli-prompts").PromptQuestion[] | Promise<import("@tsed/cli-prompts").PromptQuestion[]>;
@@ -52,7 +53,6 @@ declare const _default: (typeof CreateTemplateCommand | typeof AddCmd | typeof G
52
53
  allowUnknownOption?: boolean;
53
54
  enableFeatures?: string[];
54
55
  disableReadUpPkg?: boolean;
55
- bindLogger?: boolean;
56
56
  }> | import("@tsed/core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
57
57
  indent: import("@tsed/schema").JsonSchema<number>;
58
58
  }>>> | import("@tsed/di").FactoryTokenProvider<{
@@ -76,13 +76,14 @@ declare const _default: (typeof CreateTemplateCommand | typeof AddCmd | typeof G
76
76
  allowUnknownOption?: boolean;
77
77
  enableFeatures?: string[];
78
78
  disableReadUpPkg?: boolean;
79
- bindLogger?: boolean;
80
79
  } | {
81
80
  $prompt: any;
82
81
  $exec: any;
83
82
  handler: (data: import("@tsed/schema").PropsToShape<{
84
83
  http: import("@tsed/schema").JsonSchema<boolean>;
85
- }>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
84
+ }>) => import("@tsed/cli-tasks").MaybePromise<void | import("@tsed/cli-tasks").Task<import("@tsed/schema").PropsToShape<{
85
+ http: import("@tsed/schema").JsonSchema<boolean>;
86
+ }>>[]>;
86
87
  prompt?(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
87
88
  http: import("@tsed/schema").JsonSchema<boolean>;
88
89
  }>>): import("@tsed/cli-prompts").PromptQuestion[] | Promise<import("@tsed/cli-prompts").PromptQuestion[]>;
@@ -103,7 +104,6 @@ declare const _default: (typeof CreateTemplateCommand | typeof AddCmd | typeof G
103
104
  allowUnknownOption?: boolean;
104
105
  enableFeatures?: string[];
105
106
  disableReadUpPkg?: boolean;
106
- bindLogger?: boolean;
107
107
  }> | import("@tsed/core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
108
108
  http: import("@tsed/schema").JsonSchema<boolean>;
109
109
  }>>> | typeof RunCmd | typeof UpdateCmd)[];
@@ -19,6 +19,7 @@ export declare class InitCmd implements CommandProvider {
19
19
  protected fs: CliFs;
20
20
  $prompt(initialOptions: Partial<InitOptions>): Promise<PromptQuestion[]>;
21
21
  $mapContext(ctx: any): InitOptions;
22
+ preExec(ctx: InitOptions): Promise<void>;
22
23
  $exec(ctx: InitOptions): Promise<Task[]>;
23
24
  $afterPostInstall(): {
24
25
  title: string;
@@ -19,13 +19,14 @@ export declare const InitOptionsCommand: import("@tsed/cli-core").FactoryTokenPr
19
19
  allowUnknownOption?: boolean;
20
20
  enableFeatures?: string[];
21
21
  disableReadUpPkg?: boolean;
22
- bindLogger?: boolean;
23
22
  } | {
24
23
  $prompt: any;
25
24
  $exec: any;
26
25
  handler: (data: import("@tsed/schema").PropsToShape<{
27
26
  indent: import("@tsed/schema").JsonSchema<number>;
28
- }>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
27
+ }>) => import("@tsed/cli-core").MaybePromise<void | import("@tsed/cli-core").Task<import("@tsed/schema").PropsToShape<{
28
+ indent: import("@tsed/schema").JsonSchema<number>;
29
+ }>>[]>;
29
30
  prompt?(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
30
31
  indent: import("@tsed/schema").JsonSchema<number>;
31
32
  }>>): import("@tsed/cli-core").PromptQuestion[] | Promise<import("@tsed/cli-core").PromptQuestion[]>;
@@ -46,7 +47,6 @@ export declare const InitOptionsCommand: import("@tsed/cli-core").FactoryTokenPr
46
47
  allowUnknownOption?: boolean;
47
48
  enableFeatures?: string[];
48
49
  disableReadUpPkg?: boolean;
49
- bindLogger?: boolean;
50
50
  }> | import("@tsed/cli-core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
51
51
  indent: import("@tsed/schema").JsonSchema<number>;
52
52
  }>>>;
@@ -54,32 +54,48 @@ export declare enum FeatureType {
54
54
  }
55
55
  export declare const FeaturesMap: Record<string, Feature>;
56
56
  export declare const FeaturesPrompt: (availableRuntimes: string[], availablePackageManagers: string[]) => ({
57
- type: string;
57
+ type: "checkbox";
58
58
  name: string;
59
59
  message: string;
60
+ choices: FeatureType[];
61
+ when?: undefined;
62
+ source?: undefined;
63
+ default?: undefined;
64
+ } | {
65
+ type: "checkbox";
66
+ message: string;
67
+ name: string;
60
68
  when: (ctx: any) => boolean;
61
- source(_: any, input: string): Promise<any[]>;
69
+ choices: FeatureType[];
70
+ source?: undefined;
62
71
  default?: undefined;
72
+ } | {
73
+ type: "autocomplete";
74
+ name: string;
75
+ message: string;
76
+ when: (ctx: any) => boolean;
77
+ source(_: any): Promise<any[]>;
63
78
  choices?: undefined;
79
+ default?: undefined;
64
80
  } | {
65
- type: string;
81
+ type: "password";
66
82
  name: string;
67
83
  message: string;
68
84
  when: (ctx: any) => boolean;
85
+ choices?: undefined;
69
86
  source?: undefined;
70
87
  default?: undefined;
71
- choices?: undefined;
72
88
  } | {
73
89
  message: string;
74
90
  name: string;
75
91
  default: string;
76
92
  when: (ctx: any) => boolean;
77
- type: string;
78
- source?: undefined;
93
+ type: "input";
79
94
  choices?: undefined;
95
+ source?: undefined;
80
96
  } | {
81
97
  message: string;
82
- type: string;
98
+ type: "list";
83
99
  name: string;
84
100
  choices: string[];
85
101
  when?: undefined;
@@ -87,7 +103,7 @@ export declare const FeaturesPrompt: (availableRuntimes: string[], availablePack
87
103
  default?: undefined;
88
104
  } | {
89
105
  message: string;
90
- type: string;
106
+ type: "list";
91
107
  name: string;
92
108
  when: (ctx: any) => boolean;
93
109
  choices: string[];
@@ -19,13 +19,14 @@ export declare const McpCommand: import("@tsed/cli-core").FactoryTokenProvider<{
19
19
  allowUnknownOption?: boolean;
20
20
  enableFeatures?: string[];
21
21
  disableReadUpPkg?: boolean;
22
- bindLogger?: boolean;
23
22
  } | {
24
23
  $prompt: any;
25
24
  $exec: any;
26
25
  handler: (data: import("@tsed/schema").PropsToShape<{
27
26
  http: import("@tsed/schema").JsonSchema<boolean>;
28
- }>) => import("@tsed/cli-core").Tasks | Promise<import("@tsed/cli-core").Tasks> | any | Promise<any>;
27
+ }>) => import("@tsed/cli-core").MaybePromise<void | import("@tsed/cli-core").Task<import("@tsed/schema").PropsToShape<{
28
+ http: import("@tsed/schema").JsonSchema<boolean>;
29
+ }>>[]>;
29
30
  prompt?(initialOptions: Partial<import("@tsed/schema").PropsToShape<{
30
31
  http: import("@tsed/schema").JsonSchema<boolean>;
31
32
  }>>): import("@tsed/cli-core").PromptQuestion[] | Promise<import("@tsed/cli-core").PromptQuestion[]>;
@@ -46,7 +47,6 @@ export declare const McpCommand: import("@tsed/cli-core").FactoryTokenProvider<{
46
47
  allowUnknownOption?: boolean;
47
48
  enableFeatures?: string[];
48
49
  disableReadUpPkg?: boolean;
49
- bindLogger?: boolean;
50
50
  }> | import("@tsed/cli-core").Type<import("@tsed/cli-core").CommandProvider<import("@tsed/schema").PropsToShape<{
51
51
  http: import("@tsed/schema").JsonSchema<boolean>;
52
52
  }>>>;
@@ -1,4 +1,4 @@
1
- import { CliFs, type CommandProvider, ProjectPackageJson, type Tasks } from "@tsed/cli-core";
1
+ import { CliFs, type CommandProvider, ProjectPackageJson } from "@tsed/cli-core";
2
2
  import { CliRunScript } from "../../services/CliRunScript.js";
3
3
  export interface RunCmdContext {
4
4
  production: boolean;
@@ -9,5 +9,5 @@ export declare class RunCmd implements CommandProvider {
9
9
  protected fs: CliFs;
10
10
  protected projectPackageJson: ProjectPackageJson;
11
11
  protected runScript: CliRunScript;
12
- $exec(ctx: RunCmdContext): Promise<Tasks>;
12
+ $exec(ctx: RunCmdContext): Promise<void>;
13
13
  }
@@ -1 +1 @@
1
- export declare function exec(command: string, data: any): Promise<import("@tsed/cli-core").Task[]>;
1
+ export declare function exec(command: string, data: any): Promise<import("@tsed/cli-core").Task<any>[]>;
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.0.0-beta.12",
4
+ "version": "7.0.0-beta.13",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "source": "./src/index.ts",
@@ -50,8 +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.0.0-beta.12",
54
- "@tsed/cli-mcp": "7.0.0-beta.12",
53
+ "@tsed/cli-core": "7.0.0-beta.13",
54
+ "@tsed/cli-mcp": "7.0.0-beta.13",
55
+ "@tsed/cli-prompts": "7.0.0-beta.13",
56
+ "@tsed/cli-tasks": "7.0.0-beta.13",
55
57
  "@tsed/core": ">=8.21.0",
56
58
  "@tsed/di": ">=8.21.0",
57
59
  "@tsed/hooks": ">=8.21.0",
@@ -75,7 +77,7 @@
75
77
  "zod": "3.25.76"
76
78
  },
77
79
  "devDependencies": {
78
- "@tsed/typescript": "7.0.0-beta.12",
80
+ "@tsed/typescript": "7.0.0-beta.13",
79
81
  "@types/change-case": "^2.3.1",
80
82
  "@types/consolidate": "0.14.4",
81
83
  "cross-env": "7.0.3",