@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.
- package/dist/compile-output.d.ts +1 -1
- package/dist/compile-output.js +2 -2
- package/dist/generate-remix.js +2 -2
- package/dist/generate.js +1 -1
- package/package.json +1 -1
- package/src/compile-output.ts +3 -3
- package/src/generate-remix.ts +2 -2
- package/src/generate.ts +1 -1
- package/tsconfig.json +1 -1
package/dist/compile-output.d.ts
CHANGED
package/dist/compile-output.js
CHANGED
|
@@ -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: "
|
|
48
|
-
lib: ["
|
|
47
|
+
target: "ES2022",
|
|
48
|
+
lib: ["ES2022"],
|
|
49
49
|
types: ["node"],
|
|
50
50
|
module: opts.module,
|
|
51
51
|
moduleResolution: "node",
|
package/dist/generate-remix.js
CHANGED
|
@@ -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
|
|
113
|
-
module: "
|
|
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
package/package.json
CHANGED
package/src/compile-output.ts
CHANGED
|
@@ -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" | "
|
|
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: "
|
|
38
|
-
lib: ["
|
|
37
|
+
target: "ES2022",
|
|
38
|
+
lib: ["ES2022"],
|
|
39
39
|
types: ["node"],
|
|
40
40
|
module: opts.module,
|
|
41
41
|
moduleResolution: "node",
|
package/src/generate-remix.ts
CHANGED
|
@@ -142,8 +142,8 @@ export async function generate(input: {
|
|
|
142
142
|
|
|
143
143
|
await compileTypeScriptFiles({
|
|
144
144
|
outputDir: outdir,
|
|
145
|
-
// Note: always compile to
|
|
146
|
-
module: "
|
|
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