@spec2ts/openapi 2.0.0-beta.2 → 2.0.0-beta.6

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.0.0-beta.6](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.5...@spec2ts/openapi@2.0.0-beta.6) (2022-01-27)
7
+
8
+ **Note:** Version bump only for package @spec2ts/openapi
9
+
10
+
11
+
12
+
13
+
14
+ # [2.0.0-beta.5](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.4...@spec2ts/openapi@2.0.0-beta.5) (2021-11-03)
15
+
16
+ **Note:** Version bump only for package @spec2ts/openapi
17
+
18
+
19
+
20
+
21
+
22
+ # [2.0.0-beta.4](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.3...@spec2ts/openapi@2.0.0-beta.4) (2021-10-23)
23
+
24
+
25
+ ### Features
26
+
27
+ * allow --ext option to specify output extension ([4c70ca1](https://github.com/touchifyapp/spec2ts/commit/4c70ca13f3fc12ce1fd16c0430c7f90f90b0ed64))
28
+
29
+
30
+
31
+
32
+
33
+ # [2.0.0-beta.3](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.2...@spec2ts/openapi@2.0.0-beta.3) (2021-02-27)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * **jsonschema:** avoid external references duplication ([9508d9e](https://github.com/touchifyapp/spec2ts/commit/9508d9eee0ae19523d03a2874bad73808ec5bf71))
39
+
40
+
41
+
42
+
43
+
6
44
  # [2.0.0-beta.2](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.1...@spec2ts/openapi@2.0.0-beta.2) (2020-11-29)
7
45
 
8
46
 
package/cli/command.d.ts CHANGED
@@ -3,6 +3,7 @@ import { ParseOpenApiOptions } from "../lib/openapi-parser";
3
3
  export interface BuildTsFromOpenApiOptions extends ParseOpenApiOptions {
4
4
  input: string | string[];
5
5
  output?: string;
6
+ ext?: string;
6
7
  banner?: string;
7
8
  }
8
9
  export declare const usage = "$0 <input..>";
package/cli/command.js CHANGED
@@ -17,6 +17,12 @@ function builder(argv) {
17
17
  type: "string",
18
18
  alias: "o",
19
19
  describe: "Output directory for generated types"
20
+ })
21
+ .option("ext", {
22
+ type: "string",
23
+ alias: "e",
24
+ describe: "Output extension for generated types",
25
+ choices: [".d.ts", ".ts"]
20
26
  })
21
27
  .option("cwd", {
22
28
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spec2ts/openapi",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "Utility to convert OpenAPI v3 specifications to Typescript using TypeScript native compiler",
5
5
  "author": "Touchify <dev@touchify.co>",
6
6
  "license": "MIT",
@@ -39,8 +39,8 @@
39
39
  "prepublishOnly": "npm test && npm run build"
40
40
  },
41
41
  "dependencies": {
42
- "@spec2ts/core": "^2.0.0-beta.0",
43
- "@spec2ts/jsonschema": "^2.0.0-beta.2",
42
+ "@spec2ts/core": "^2.0.0-beta.2",
43
+ "@spec2ts/jsonschema": "^2.0.0-beta.6",
44
44
  "openapi3-ts": "^1.3.0",
45
45
  "yargs": "^15.3.1"
46
46
  },
@@ -65,5 +65,5 @@
65
65
  "spec2ts",
66
66
  "share"
67
67
  ],
68
- "gitHead": "914e96a0099412ae2ac0d603bfe74f3ec400112c"
68
+ "gitHead": "5717dc6d2eb06bdcebea9eff4339f5d4bd6ac140"
69
69
  }