removed the lib generation part
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
2020-12-13 19:20:36 +01:00
parent ad908a3555
commit ec69f6caf3
2 changed files with 3 additions and 9 deletions

View File

@@ -48,13 +48,9 @@ const spec = routingControllersToSpec(
}
);
if (!fs.existsSync("./lib")) {
fs.mkdirSync("./lib");
}
try {
fs.writeFileSync("./lib/openapi.json", JSON.stringify(spec), { encoding: "utf-8" });
consola.success("Exported openapi spec to lib/openapi.json");
fs.writeFileSync("./openapi.json", JSON.stringify(spec), { encoding: "utf-8" });
consola.success("Exported openapi spec to openapi.json");
} catch (error) {
consola.error("Couldn't export the openapi spec");
}