@tsed/cli-generate-swagger 6.3.0 → 6.4.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.
@@ -35,6 +35,14 @@ let GenerateSwaggerCmd = class GenerateSwaggerCmd {
35
35
  }
36
36
  }
37
37
  catch (er) { }
38
+ try {
39
+ // @ts-ignore
40
+ const platform = await import("@tsed/platform-fastify");
41
+ if (platform) {
42
+ return platform.PlatformFastify;
43
+ }
44
+ }
45
+ catch (er) { }
38
46
  throw new Error("Unsupported platform. Please use Express.js or Koa.js platform.");
39
47
  }
40
48
  async generate($ctx) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tsed/cli-generate-swagger",
3
3
  "description": "Ts.ED CLI plugin. Export a command that generate the swagger.json from your Ts.ED controllers and OS3 spec.",
4
- "version": "6.3.0",
4
+ "version": "6.4.0",
5
5
  "type": "module",
6
6
  "main": "./lib/esm/index.js",
7
7
  "source": "./src/index.ts",
@@ -26,9 +26,9 @@
26
26
  "tslib": "2.7.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@tsed/cli": "6.3.0",
30
- "@tsed/cli-core": "6.3.0",
31
- "@tsed/typescript": "6.3.0",
29
+ "@tsed/cli": "6.4.0",
30
+ "@tsed/cli-core": "6.4.0",
31
+ "@tsed/typescript": "6.4.0",
32
32
  "cross-env": "7.0.3",
33
33
  "typescript": "5.6.2",
34
34
  "vitest": "3.0.9"