@tsed/cli-generate-swagger 6.6.3 → 7.0.0-alpha.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.
@@ -1,7 +1,6 @@
1
- import { __decorate } from "tslib";
2
1
  import path, { join, resolve } from "node:path";
3
- import { CliFs, CliYaml, Command, Constant, constant, Inject, inject, InjectorService, Type } from "@tsed/cli-core";
4
- let GenerateSwaggerCmd = class GenerateSwaggerCmd {
2
+ import { CliFs, CliYaml, command, constant, inject, InjectorService, Type } from "@tsed/cli-core";
3
+ export class GenerateSwaggerCmd {
5
4
  constructor() {
6
5
  this.fs = inject(CliFs);
7
6
  this.cliYaml = inject(CliYaml);
@@ -69,18 +68,15 @@ let GenerateSwaggerCmd = class GenerateSwaggerCmd {
69
68
  this.fs.ensureDirSync(path.dirname(fileJson));
70
69
  await Promise.all([this.fs.writeJson(fileJson, spec), this.cliYaml.write(fileYaml, spec)]);
71
70
  }
72
- };
73
- GenerateSwaggerCmd = __decorate([
74
- Command({
75
- name: "generate-swagger",
76
- description: "Generate the client API from swagger spec",
77
- options: {
78
- "-o, --output <output>": {
79
- required: true,
80
- type: String,
81
- description: "Path to generate files"
82
- }
71
+ }
72
+ command(GenerateSwaggerCmd, {
73
+ name: "generate-swagger",
74
+ description: "Generate the client API from swagger spec",
75
+ options: {
76
+ "-o, --output <output>": {
77
+ required: true,
78
+ type: String,
79
+ description: "Path to generate files"
83
80
  }
84
- })
85
- ], GenerateSwaggerCmd);
86
- export { GenerateSwaggerCmd };
81
+ }
82
+ });
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.6.3",
4
+ "version": "7.0.0-alpha.2",
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.6.3",
30
- "@tsed/cli-core": "6.6.3",
31
- "@tsed/typescript": "6.6.3",
29
+ "@tsed/cli": "7.0.0-alpha.2",
30
+ "@tsed/cli-core": "7.0.0-alpha.2",
31
+ "@tsed/typescript": "7.0.0-alpha.2",
32
32
  "cross-env": "7.0.3",
33
33
  "typescript": "5.6.2",
34
34
  "vitest": "3.2.4"
@@ -51,5 +51,8 @@
51
51
  },
52
52
  "homepage": "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-generate-swagger",
53
53
  "author": "Romain Lenzotti",
54
- "license": "MIT"
54
+ "license": "MIT",
55
+ "publishConfig": {
56
+ "tag": "alpha"
57
+ }
55
58
  }