@technicity/openapi-sdk-generator 5.17.1 → 5.18.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.
@@ -1,4 +1,4 @@
1
- export declare type CompileModule = "CommonJS" | "ES2020";
1
+ export declare type CompileModule = "CommonJS" | "ES2022";
2
2
  export declare function compileTypeScriptFiles(opts: {
3
3
  outputDir: string;
4
4
  module: CompileModule;
@@ -44,8 +44,8 @@ async function compileTypeScriptFiles(opts) {
44
44
  }
45
45
  fs.writeFileSync(path.join(tmpDirPath, "tsconfig.json"), JSON.stringify({
46
46
  compilerOptions: {
47
- target: "ES2020",
48
- lib: ["ES2020"],
47
+ target: "ES2022",
48
+ lib: ["ES2022"],
49
49
  types: ["node"],
50
50
  module: opts.module,
51
51
  moduleResolution: "node",
@@ -109,8 +109,8 @@ async function generate(input) {
109
109
  }
110
110
  await (0, compile_output_1.compileTypeScriptFiles)({
111
111
  outputDir: outdir,
112
- // Note: always compile to ES2020 for the Remix variant, instead of using input.module
113
- module: "ES2020",
112
+ // Note: always compile to ES2022 for the Remix variant, instead of using input.module
113
+ module: "ES2022",
114
114
  include,
115
115
  sources,
116
116
  dependencies: {
package/dist/generate.js CHANGED
@@ -79,7 +79,7 @@ exports.schema = {
79
79
  },
80
80
  module: {
81
81
  type: "string",
82
- enum: ["CommonJS", "ES2020"],
82
+ enum: ["CommonJS", "ES2022"],
83
83
  default: "CommonJS",
84
84
  description: "module type for generated SDK",
85
85
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technicity/openapi-sdk-generator",
3
- "version": "5.17.1",
3
+ "version": "5.18.0",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "bin": {
@@ -7,7 +7,7 @@ const prependFile = require("prepend-file");
7
7
 
8
8
  const TYPE_SCRIPT_VERSION = "4.6.2";
9
9
 
10
- export type CompileModule = "CommonJS" | "ES2020";
10
+ export type CompileModule = "CommonJS" | "ES2022";
11
11
 
12
12
  export async function compileTypeScriptFiles(opts: {
13
13
  outputDir: string;
@@ -34,8 +34,8 @@ export async function compileTypeScriptFiles(opts: {
34
34
  JSON.stringify(
35
35
  {
36
36
  compilerOptions: {
37
- target: "ES2020",
38
- lib: ["ES2020"],
37
+ target: "ES2022",
38
+ lib: ["ES2022"],
39
39
  types: ["node"],
40
40
  module: opts.module,
41
41
  moduleResolution: "node",
@@ -142,8 +142,8 @@ export async function generate(input: {
142
142
 
143
143
  await compileTypeScriptFiles({
144
144
  outputDir: outdir,
145
- // Note: always compile to ES2020 for the Remix variant, instead of using input.module
146
- module: "ES2020",
145
+ // Note: always compile to ES2022 for the Remix variant, instead of using input.module
146
+ module: "ES2022",
147
147
  include,
148
148
  sources,
149
149
  dependencies: {
package/src/generate.ts CHANGED
@@ -53,7 +53,7 @@ export const schema = {
53
53
  },
54
54
  module: {
55
55
  type: "string",
56
- enum: ["CommonJS", "ES2020"],
56
+ enum: ["CommonJS", "ES2022"],
57
57
  default: "CommonJS",
58
58
  description: "module type for generated SDK",
59
59
  },
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ES2020",
3
+ "target": "ES2022",
4
4
  "module": "CommonJS",
5
5
  "esModuleInterop": true,
6
6
  "declaration": true,