@povio/openapi-codegen-cli 2.0.8-rc.25 → 2.0.8-rc.26
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.
|
@@ -42,10 +42,10 @@ async function runGenerate({ fileConfig, params, formatGeneratedFile, profiler =
|
|
|
42
42
|
await writeGenerateFileData(filesData, { formatGeneratedFile });
|
|
43
43
|
});
|
|
44
44
|
const stats = getGenerateStats(filesData, config);
|
|
45
|
-
if (config.incremental) writeCache(cacheFilePath, {
|
|
45
|
+
if (config.incremental) await writeCache(cacheFilePath, {
|
|
46
46
|
openApiHash,
|
|
47
47
|
optionsHash
|
|
48
|
-
});
|
|
48
|
+
}, formatGeneratedFile);
|
|
49
49
|
return {
|
|
50
50
|
skipped: false,
|
|
51
51
|
config,
|
|
@@ -82,10 +82,11 @@ function readCache(filePath) {
|
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function writeCache(filePath, data) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
async function writeCache(filePath, data, formatGeneratedFile) {
|
|
86
|
+
await writeGenerateFileData([{
|
|
87
|
+
fileName: filePath,
|
|
88
|
+
content: JSON.stringify(data)
|
|
89
|
+
}], { formatGeneratedFile });
|
|
89
90
|
}
|
|
90
91
|
function hashString(input) {
|
|
91
92
|
let hash = 2166136261;
|
package/dist/sh.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { S as VALIDATION_ERROR_TYPE_TITLE, g as groupByType, h as GenerateType, i as getDataFromOpenAPIDoc, n as getOutputFileName, u as getTagFileName, x as Profiler } from "./generateCodeFromOpenAPIDoc-C7btBlMx.mjs";
|
|
3
|
-
import { n as resolveConfig, t as runGenerate } from "./generate.runner-
|
|
3
|
+
import { n as resolveConfig, t as runGenerate } from "./generate.runner-DAUfcVtT.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import yargs from "yargs";
|
|
6
6
|
import { hideBin } from "yargs/helpers";
|
|
@@ -39,7 +39,7 @@ function logBanner(message) {
|
|
|
39
39
|
* Fetch the version from package.json
|
|
40
40
|
*/
|
|
41
41
|
function getVersion() {
|
|
42
|
-
return "2.0.8-rc.
|
|
42
|
+
return "2.0.8-rc.26";
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
//#endregion
|
package/dist/vite.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { x as Profiler } from "./generateCodeFromOpenAPIDoc-C7btBlMx.mjs";
|
|
2
|
-
import { t as runGenerate } from "./generate.runner-
|
|
2
|
+
import { t as runGenerate } from "./generate.runner-DAUfcVtT.mjs";
|
|
3
3
|
import path from "path";
|
|
4
4
|
|
|
5
5
|
//#region src/vite/openapi-codegen.plugin.ts
|