Skip to content

Commit 3a956ac

Browse files
committed
fix: bump @tSed dependencies to v8.21.0 and update related configurations
- Updated `package.json` and `yarn.lock` files to use `@tsed` packages >=8.21.0. - Synced MCP-related dependencies and updated schema imports to align with the new version. - Adjusted MCP commands to utilize the revised `InitSchema` structure.
1 parent 20ddbe0 commit 3a956ac

File tree

6 files changed

+68
-94
lines changed

6 files changed

+68
-94
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@
4444
},
4545
"homepage": "https://github.com/tsedio/tsed-cli",
4646
"dependencies": {
47-
"@tsed/core": ">=8.20.1",
48-
"@tsed/di": ">=8.20.1",
47+
"@tsed/core": ">=8.21.0",
48+
"@tsed/di": ">=8.21.0",
4949
"@tsed/logger": ">=8.0.3",
5050
"@tsed/logger-std": ">=8.0.3",
51-
"@tsed/normalize-path": ">=8.20.1",
52-
"@tsed/openspec": ">=8.20.1",
53-
"@tsed/schema": ">=8.20.1",
51+
"@tsed/normalize-path": ">=8.21.0",
52+
"@tsed/openspec": ">=8.21.0",
53+
"@tsed/schema": ">=8.21.0",
5454
"axios": "^1.7.7",
5555
"chalk": "^5.3.0",
5656
"commander": "^12.1.0",

packages/cli-mcp/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@
5151
"@swc/core": "1.7.26",
5252
"@swc/helpers": "^0.5.13",
5353
"@tsed/cli-core": "workspace:*",
54-
"@tsed/core": ">=8.20.1",
55-
"@tsed/di": ">=8.20.1",
56-
"@tsed/hooks": ">=8.20.1",
54+
"@tsed/core": ">=8.21.0",
55+
"@tsed/di": ">=8.21.0",
56+
"@tsed/hooks": ">=8.21.0",
5757
"@tsed/logger": ">=8.0.3",
5858
"@tsed/logger-std": ">=8.0.3",
59-
"@tsed/normalize-path": ">=8.20.1",
60-
"@tsed/openspec": ">=8.20.1",
61-
"@tsed/schema": ">=8.20.1",
59+
"@tsed/normalize-path": ">=8.21.0",
60+
"@tsed/openspec": ">=8.21.0",
61+
"@tsed/schema": ">=8.21.0",
6262
"chalk": "^5.3.0",
6363
"change-case": "^5.4.4",
6464
"consolidate": "^1.0.4",

packages/cli/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@
5252
"@swc/helpers": "^0.5.13",
5353
"@tsed/cli-core": "workspace:*",
5454
"@tsed/cli-mcp": "workspace:*",
55-
"@tsed/core": ">=8.20.1",
56-
"@tsed/di": ">=8.20.1",
57-
"@tsed/hooks": ">=8.20.1",
55+
"@tsed/core": ">=8.21.0",
56+
"@tsed/di": ">=8.21.0",
57+
"@tsed/hooks": ">=8.21.0",
5858
"@tsed/logger": ">=8.0.3",
5959
"@tsed/logger-std": ">=8.0.3",
60-
"@tsed/normalize-path": ">=8.20.1",
61-
"@tsed/openspec": ">=8.20.1",
62-
"@tsed/schema": ">=8.20.1",
60+
"@tsed/normalize-path": ">=8.21.0",
61+
"@tsed/openspec": ">=8.21.0",
62+
"@tsed/schema": ">=8.21.0",
6363
"chalk": "^5.3.0",
6464
"change-case": "^5.4.4",
6565
"consolidate": "^1.0.4",

packages/cli/src/commands/mcp/McpCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {inject} from "@tsed/di";
44
import {s} from "@tsed/schema";
55

66
const McpSchema = s.object({
7-
http: s.boolean().default(false).description("Run MCP using HTTP server").customKey("opt", "--http")
7+
http: s.boolean().default(false).description("Run MCP using HTTP server").opt("--http")
88
});
99

1010
export const McpCommand = command({
Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,11 @@
1-
import {PackageManagersModule} from "@tsed/cli-core";
2-
import {inject} from "@tsed/di";
31
import {s} from "@tsed/schema";
42

5-
import {ArchitectureConvention, PlatformType, ProjectConvention} from "../../../interfaces/index.js";
6-
import {RuntimesModule} from "../../../runtimes/RuntimesModule.js";
7-
import {FeatureType} from "../../init/config/FeaturesPrompt.js";
3+
import {InitSchema} from "../../init/config/InitSchema.js";
84

9-
export const InitMCPSchema = () =>
10-
s.object({
11-
cwd: s.string().required().description("Current working directory to initialize Ts.ED project"),
12-
projectName: s.string().description("Project name. Defaults to the current folder name."),
13-
platform: s.string().enum(PlatformType).default(PlatformType.EXPRESS).description("Target platform (express, koa, fastify)."),
14-
convention: s
15-
.string()
16-
.enum(ProjectConvention)
17-
.default(ProjectConvention.DEFAULT)
18-
.description("Project convention (default, nest, etc.)."),
19-
runtime: s.string().enum(inject(RuntimesModule).list()).default("node").description("Runtime (node, bun, ...)."),
20-
packageManager: s
21-
.string()
22-
.enum(inject(PackageManagersModule).list())
23-
.default("npm")
24-
.description("Package manager (npm, pnpm, yarn, bun)."),
25-
architecture: s
26-
.string()
27-
.enum(ArchitectureConvention)
28-
.default(ArchitectureConvention.DEFAULT)
29-
.description("Architecture convention (default, feature, ...)."),
30-
features: s.array().items(s.string().enum(FeatureType)).description("List of features to enable (swagger, graphql, prisma, etc.)."),
31-
GH_TOKEN: s
32-
.string()
33-
.optional()
34-
.description(
35-
"GitHub token to install premium plugins. For example config:aws_secrets:premium or all features endings by `:premium` needs a GH_TOKEN"
36-
)
37-
});
5+
export const InitMCPSchema = () => {
6+
return s
7+
.object({
8+
cwd: s.string().required().description("Current working directory to initialize Ts.ED project")
9+
})
10+
.merge(InitSchema().omit("root", "skipPrompts", "file"));
11+
};

yarn.lock

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2532,14 +2532,14 @@ __metadata:
25322532
"@swc/core": "npm:1.7.26"
25332533
"@swc/helpers": "npm:^0.5.13"
25342534
"@tsed/cli-core": "workspace:*"
2535-
"@tsed/core": "npm:>=8.20.1"
2536-
"@tsed/di": "npm:>=8.20.1"
2537-
"@tsed/hooks": "npm:>=8.20.1"
2535+
"@tsed/core": "npm:>=8.21.0"
2536+
"@tsed/di": "npm:>=8.21.0"
2537+
"@tsed/hooks": "npm:>=8.21.0"
25382538
"@tsed/logger": "npm:>=8.0.3"
25392539
"@tsed/logger-std": "npm:>=8.0.3"
2540-
"@tsed/normalize-path": "npm:>=8.20.1"
2541-
"@tsed/openspec": "npm:>=8.20.1"
2542-
"@tsed/schema": "npm:>=8.20.1"
2540+
"@tsed/normalize-path": "npm:>=8.21.0"
2541+
"@tsed/openspec": "npm:>=8.21.0"
2542+
"@tsed/schema": "npm:>=8.21.0"
25432543
"@tsed/typescript": "workspace:*"
25442544
"@types/change-case": "npm:^2.3.1"
25452545
"@types/consolidate": "npm:0.14.4"
@@ -2733,15 +2733,15 @@ __metadata:
27332733
"@commitlint/config-conventional": "npm:19.5.0"
27342734
"@swc/core": "npm:1.7.26"
27352735
"@swc/helpers": "npm:0.5.13"
2736-
"@tsed/core": "npm:>=8.20.1"
2737-
"@tsed/di": "npm:>=8.20.1"
2736+
"@tsed/core": "npm:>=8.21.0"
2737+
"@tsed/di": "npm:>=8.21.0"
27382738
"@tsed/logger": "npm:>=8.0.3"
27392739
"@tsed/logger-std": "npm:>=8.0.3"
27402740
"@tsed/markdown-it-symbols": "npm:3.20.8"
27412741
"@tsed/monorepo-utils": "npm:3.0.0"
2742-
"@tsed/normalize-path": "npm:>=8.20.1"
2743-
"@tsed/openspec": "npm:>=8.20.1"
2744-
"@tsed/schema": "npm:>=8.20.1"
2742+
"@tsed/normalize-path": "npm:>=8.21.0"
2743+
"@tsed/openspec": "npm:>=8.21.0"
2744+
"@tsed/schema": "npm:>=8.21.0"
27452745
"@tsed/ts-doc": "npm:^4.1.0"
27462746
"@types/inquirer-autocomplete-prompt": "npm:3.0.3"
27472747
"@types/node": "npm:22.7.4"
@@ -2815,14 +2815,14 @@ __metadata:
28152815
"@swc/helpers": "npm:^0.5.13"
28162816
"@tsed/cli-core": "workspace:*"
28172817
"@tsed/cli-mcp": "workspace:*"
2818-
"@tsed/core": "npm:>=8.20.1"
2819-
"@tsed/di": "npm:>=8.20.1"
2820-
"@tsed/hooks": "npm:>=8.20.1"
2818+
"@tsed/core": "npm:>=8.21.0"
2819+
"@tsed/di": "npm:>=8.21.0"
2820+
"@tsed/hooks": "npm:>=8.21.0"
28212821
"@tsed/logger": "npm:>=8.0.3"
28222822
"@tsed/logger-std": "npm:>=8.0.3"
2823-
"@tsed/normalize-path": "npm:>=8.20.1"
2824-
"@tsed/openspec": "npm:>=8.20.1"
2825-
"@tsed/schema": "npm:>=8.20.1"
2823+
"@tsed/normalize-path": "npm:>=8.21.0"
2824+
"@tsed/openspec": "npm:>=8.21.0"
2825+
"@tsed/schema": "npm:>=8.21.0"
28262826
"@tsed/typescript": "workspace:*"
28272827
"@types/change-case": "npm:^2.3.1"
28282828
"@types/consolidate": "npm:0.14.4"
@@ -2869,19 +2869,19 @@ __metadata:
28692869
languageName: unknown
28702870
linkType: soft
28712871

2872-
"@tsed/core@npm:>=8.20.1":
2873-
version: 8.20.1
2874-
resolution: "@tsed/core@npm:8.20.1"
2872+
"@tsed/core@npm:>=8.21.0":
2873+
version: 8.21.0
2874+
resolution: "@tsed/core@npm:8.21.0"
28752875
dependencies:
28762876
reflect-metadata: "npm:^0.2.2"
28772877
tslib: "npm:2.7.0"
2878-
checksum: 10/1a2739886f7a2e51ece11d6d98bbb1c3092abd5bc8162569230d62b0cedf5565bcb09d3d20990265e8f04e9786c6ffb2e332a12feb1720d58d81f4c5423c687d
2878+
checksum: 10/0f99142c739644bb469934ec4693e1dc613582b9074106a0755c7bf18cf087a4f5724f9f599cbf9a9af4ae84d2d5c891ce4a6ca23a67c223b04f7a84933345c8
28792879
languageName: node
28802880
linkType: hard
28812881

2882-
"@tsed/di@npm:>=8.20.1":
2883-
version: 8.20.1
2884-
resolution: "@tsed/di@npm:8.20.1"
2882+
"@tsed/di@npm:>=8.21.0":
2883+
version: 8.21.0
2884+
resolution: "@tsed/di@npm:8.21.0"
28852885
dependencies:
28862886
tslib: "npm:2.7.0"
28872887
uuid: "npm:^10.0.0"
@@ -2896,17 +2896,17 @@ __metadata:
28962896
optional: false
28972897
"@tsed/logger":
28982898
optional: false
2899-
checksum: 10/9e6a832dfd6c5bb8035b102938db36b5fd6114cabe3eb7bed1a72ad74cc9f81043e711809bc3b7831a84fba00b1902ed5170317a3171a806d3ffb3c4c822cfb1
2899+
checksum: 10/ee8836d53548a985cfe472f395c1117e6c96117c6343cb51ee0f50d245893f8bade860754f78b24dcd09ff875372c7b328ca95456e1f94c11e935874b29b1cbe
29002900
languageName: node
29012901
linkType: hard
29022902

2903-
"@tsed/hooks@npm:>=8.20.1":
2904-
version: 8.20.1
2905-
resolution: "@tsed/hooks@npm:8.20.1"
2903+
"@tsed/hooks@npm:>=8.21.0":
2904+
version: 8.21.0
2905+
resolution: "@tsed/hooks@npm:8.21.0"
29062906
dependencies:
29072907
reflect-metadata: "npm:^0.2.2"
29082908
tslib: "npm:2.7.0"
2909-
checksum: 10/d833dfdd509c068f772e1c5c98a743af7edbd57c37db3e554a388fd434c3d423e2674145c3645ae9c3a75bd83d6ecd218420694331a539b4c51c9c08c2e84c44
2909+
checksum: 10/58002cfeaf23ecedfdf90f527058a1f25c4346973ea2e201a3e5d9842fe9c4d093fc584cd52be562752b957f1a7b01848c8a0bbdea4de94f8e9e8e353e60ee77
29102910
languageName: node
29112911
linkType: hard
29122912

@@ -3003,28 +3003,28 @@ __metadata:
30033003
languageName: node
30043004
linkType: hard
30053005

3006-
"@tsed/normalize-path@npm:>=8.20.1":
3007-
version: 8.20.1
3008-
resolution: "@tsed/normalize-path@npm:8.20.1"
3006+
"@tsed/normalize-path@npm:>=8.21.0":
3007+
version: 8.21.0
3008+
resolution: "@tsed/normalize-path@npm:8.21.0"
30093009
dependencies:
30103010
normalize-path: "npm:3.0.0"
30113011
tslib: "npm:2.7.0"
3012-
checksum: 10/de8996ba992a3cb9620ae37704b1211d93699ee0f5fe60592bb6ee314965c57ed738faebbf88e0b0b6eef1a3074304c2892f7ec120a52219c9d506a3598130d4
3012+
checksum: 10/90ec188403435ebdd587d7baace397697b703ca61720d1fa14077a5cb6590bd889a63ade3ea2ebb0e11db8c016d525a16ed9a946bef15b6a62b0984fd229551f
30133013
languageName: node
30143014
linkType: hard
30153015

3016-
"@tsed/openspec@npm:8.20.1, @tsed/openspec@npm:>=8.20.1":
3017-
version: 8.20.1
3018-
resolution: "@tsed/openspec@npm:8.20.1"
3019-
checksum: 10/4ac12ccf0f3c5d12f0df0c9a2032c821ff956395ff8139f33589a0e62183de789104657bd3b0d4270895579e8abd288ac5417adfcb1701abf100cd55f094b324
3016+
"@tsed/openspec@npm:8.21.0, @tsed/openspec@npm:>=8.21.0":
3017+
version: 8.21.0
3018+
resolution: "@tsed/openspec@npm:8.21.0"
3019+
checksum: 10/f4dd87f9007721fb8e71d7efada10197378f9e22d1bfcf6acb6442c40181d708820ab313a807c23c7e6a0ddedfb85f3084954ee64918ce00f7b6dce45dce1f43
30203020
languageName: node
30213021
linkType: hard
30223022

3023-
"@tsed/schema@npm:>=8.20.1":
3024-
version: 8.20.1
3025-
resolution: "@tsed/schema@npm:8.20.1"
3023+
"@tsed/schema@npm:>=8.21.0":
3024+
version: 8.21.0
3025+
resolution: "@tsed/schema@npm:8.21.0"
30263026
dependencies:
3027-
"@tsed/openspec": "npm:8.20.1"
3027+
"@tsed/openspec": "npm:8.21.0"
30283028
change-case: "npm:^5.4.4"
30293029
json-schema: "npm:0.4.0"
30303030
picomatch: "npm:4.0.2"
@@ -3039,7 +3039,7 @@ __metadata:
30393039
optional: false
30403040
"@tsed/openspec":
30413041
optional: false
3042-
checksum: 10/4678a4d18714b4e9d4c24fbc16534209f6e4d3113ff732b88009c49c53a91edc1b39f2766dcd4035519f80d8e5cbe3145ed4abe61f4843767c327aa45b63235b
3042+
checksum: 10/c9db92abe934059259798e233147166488dd9255e15a0a1876453821c2441996d039bb5719c33e8837166f0873b6e9b3c354b86b375924b28a187bb398a4b301
30433043
languageName: node
30443044
linkType: hard
30453045

0 commit comments

Comments
 (0)