Comparing version 6.0.1 to 6.0.2-dev.20240905
@@ -83,3 +83,3 @@ "use strict"; | ||
options.runtime = | ||
((_c = options.runtime) !== null && _c !== void 0 ? _c : (yield select("swagger")("Transform Runtime Swagger")([ | ||
((_c = options.runtime) !== null && _c !== void 0 ? _c : (yield select("transform")("Transform Runtime Swagger")([ | ||
"true", | ||
@@ -86,0 +86,0 @@ "false", |
@@ -45,7 +45,5 @@ "use strict"; | ||
p.transform === "typia/lib/transform"); | ||
const swagger = args.runtime === false | ||
? true | ||
: !!plugins.find((p) => typeof p === "object" && | ||
p !== null && | ||
p.transform === "@nestia/sdk/lib/transform"); | ||
const swagger = plugins.find((p) => typeof p === "object" && | ||
p !== null && | ||
p.transform === "@nestia/sdk/lib/transform"); | ||
if (strictNullChecks !== false && | ||
@@ -88,3 +86,3 @@ (strict === true || strictNullChecks === true) && | ||
}`)); | ||
if (swagger === false) | ||
if (swagger === undefined && args.runtime === true) | ||
plugins.push(comment_json_1.default.parse(`{ "transform": "@nestia/sdk/lib/transform" }`)); | ||
@@ -91,0 +89,0 @@ if (typia === undefined) |
{ | ||
"name": "nestia", | ||
"version": "6.0.1", | ||
"version": "6.0.2-dev.20240905", | ||
"description": "Nestia CLI tool", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
@@ -100,3 +100,3 @@ import commander from "commander"; | ||
((options.runtime as string | undefined) ?? | ||
(await select("swagger")("Transform Runtime Swagger")([ | ||
(await select("transform")("Transform Runtime Swagger")([ | ||
"true", | ||
@@ -103,0 +103,0 @@ "false", |
@@ -52,11 +52,8 @@ import comments from "comment-json"; | ||
); | ||
const swagger: boolean = | ||
args.runtime === false | ||
? true | ||
: !!plugins.find( | ||
(p) => | ||
typeof p === "object" && | ||
p !== null && | ||
p.transform === "@nestia/sdk/lib/transform", | ||
); | ||
const swagger: comments.CommentObject | undefined = plugins.find( | ||
(p) => | ||
typeof p === "object" && | ||
p !== null && | ||
p.transform === "@nestia/sdk/lib/transform", | ||
); | ||
if ( | ||
@@ -105,3 +102,3 @@ strictNullChecks !== false && | ||
); | ||
if (swagger === false) | ||
if (swagger === undefined && args.runtime === true) | ||
plugins.push( | ||
@@ -108,0 +105,0 @@ comments.parse( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
69652
1115
1