removed the lib generation part
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user