Comparing version 4.1.0 to 4.1.1
@@ -37,3 +37,4 @@ "use strict"; | ||
// CHECK WHETHER CONFIGURED | ||
const strict = compilerOptions.strict === true; | ||
const strict = compilerOptions.strict; | ||
const strictNullChecks = compilerOptions.strictNullChecks; | ||
const core = plugins.find((p) => typeof p === "object" && | ||
@@ -45,6 +46,11 @@ p !== null && | ||
p.transform === "typia/lib/transform"); | ||
if (strict && !!core && !!typia) | ||
if (strictNullChecks !== false && | ||
(strict === true || strictNullChecks === true) && | ||
core !== undefined && | ||
typia !== undefined) | ||
return; | ||
// DO CONFIGURE | ||
compilerOptions.strict = true; | ||
compilerOptions.strictNullChecks = true; | ||
if (strict === undefined && strictNullChecks === undefined) | ||
compilerOptions.strict = true; | ||
compilerOptions.experimentalDecorators = true; | ||
@@ -51,0 +57,0 @@ compilerOptions.emitDecoratorMetadata = true; |
{ | ||
"name": "nestia", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Nestia CLI tool", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
@@ -36,3 +36,7 @@ import comments from "comment-json"; | ||
// CHECK WHETHER CONFIGURED | ||
const strict: boolean = compilerOptions.strict === true; | ||
const strict: boolean | undefined = compilerOptions.strict as | ||
| boolean | ||
| undefined; | ||
const strictNullChecks: boolean | undefined = | ||
compilerOptions.strictNullChecks as boolean | undefined; | ||
const core: comments.CommentObject | undefined = plugins.find( | ||
@@ -50,6 +54,14 @@ (p) => | ||
); | ||
if (strict && !!core && !!typia) return; | ||
if ( | ||
strictNullChecks !== false && | ||
(strict === true || strictNullChecks === true) && | ||
core !== undefined && | ||
typia !== undefined | ||
) | ||
return; | ||
// DO CONFIGURE | ||
compilerOptions.strict = true; | ||
compilerOptions.strictNullChecks = true; | ||
if (strict === undefined && strictNullChecks === undefined) | ||
compilerOptions.strict = true; | ||
compilerOptions.experimentalDecorators = true; | ||
@@ -56,0 +68,0 @@ compilerOptions.emitDecoratorMetadata = true; |
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
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
61165
983