Comparing version 5.7.0 to 5.8.0-dev.20240827
@@ -6,4 +6,5 @@ import { PackageManager } from "./PackageManager"; | ||
project: string | null; | ||
swagger: boolean; | ||
} | ||
function parse(pack: PackageManager): Promise<IArguments>; | ||
} |
@@ -26,2 +26,3 @@ "use strict"; | ||
commander_1.default.program.option("--project [project]", "tsconfig.json file location"); | ||
commander_1.default.program.option("--swagger [boolean]", "transform runtime swagger"); | ||
// INTERNAL PROCEDURES | ||
@@ -82,2 +83,6 @@ const questioned = { value: false }; | ||
(_b = options.project) !== null && _b !== void 0 ? _b : (options.project = yield configure()); | ||
options.swagger = options.swagger | ||
? options.swagger === "true" | ||
: (yield select("swagger")("Transform Runtime Swagger")(["Y", "N"])) === | ||
"Y"; | ||
if (questioned.value) | ||
@@ -84,0 +89,0 @@ console.log(""); |
@@ -45,2 +45,7 @@ "use strict"; | ||
p.transform === "typia/lib/transform"); | ||
const swagger = args.swagger === false | ||
? true | ||
: !!plugins.find((p) => typeof p === "object" && | ||
p !== null && | ||
p.transform === "@nestia/sdk/lib/transform"); | ||
if (strictNullChecks !== false && | ||
@@ -83,2 +88,4 @@ (strict === true || strictNullChecks === true) && | ||
}`)); | ||
if (swagger === false) | ||
plugins.push(comment_json_1.default.parse(`{ "transform": "@nestia/sdk/lib/transform" }`)); | ||
if (typia === undefined) | ||
@@ -85,0 +92,0 @@ plugins.push(comment_json_1.default.parse(`{ "transform": "typia/lib/transform" }`)); |
{ | ||
"name": "nestia", | ||
"version": "5.7.0", | ||
"version": "5.8.0-dev.20240827", | ||
"description": "Nestia CLI tool", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
@@ -11,2 +11,3 @@ import commander from "commander"; | ||
project: string | null; | ||
swagger: boolean; | ||
} | ||
@@ -21,2 +22,6 @@ | ||
); | ||
commander.program.option( | ||
"--swagger [boolean]", | ||
"transform runtime swagger", | ||
); | ||
@@ -95,2 +100,6 @@ // INTERNAL PROCEDURES | ||
options.project ??= await configure(); | ||
options.swagger = options.swagger | ||
? (options.swagger as any) === "true" | ||
: (await select("swagger")("Transform Runtime Swagger")(["Y", "N"])) === | ||
"Y"; | ||
@@ -97,0 +106,0 @@ if (questioned.value) console.log(""); |
@@ -52,2 +52,11 @@ import comments from "comment-json"; | ||
); | ||
const swagger: boolean = | ||
args.swagger === false | ||
? true | ||
: !!plugins.find( | ||
(p) => | ||
typeof p === "object" && | ||
p !== null && | ||
p.transform === "@nestia/sdk/lib/transform", | ||
); | ||
if ( | ||
@@ -96,2 +105,8 @@ strictNullChecks !== false && | ||
); | ||
if (swagger === false) | ||
plugins.push( | ||
comments.parse( | ||
`{ "transform": "@nestia/sdk/lib/transform" }`, | ||
) as comments.CommentObject, | ||
); | ||
if (typia === undefined) | ||
@@ -98,0 +113,0 @@ plugins.push( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69566
1109
1