typia 3.8.2-dev.20230428 → 3.8.2-dev.20230428-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -65,22 +65,19 @@ var PluginConfigurator;
|
|
|
65
65
|
throw new Error("\"plugins\" property of ".concat(args.project, " must be array type."));
|
|
66
66
|
return plugins;
|
|
67
67
|
})();
|
|
68
|
-
strict = compilerOptions.strict
|
|
69
|
-
|
|
70
|
-
compilerOptions.strictNullChecks === undefined);
|
|
71
|
-
strictNullChecks = compilerOptions.strictNullChecks !== false;
|
|
68
|
+
strict = compilerOptions.strict;
|
|
69
|
+
strictNullChecks = compilerOptions.strictNullChecks;
|
|
72
70
|
oldbie = plugins.find(function (p) {
|
|
73
71
|
return typeof p === "object" &&
|
|
74
72
|
p !== null &&
|
|
75
73
|
p.transform === "typia/lib/transform";
|
|
76
74
|
});
|
|
77
|
-
if (strict
|
|
78
|
-
strictNullChecks === true &&
|
|
79
|
-
oldbie !== undefined)
|
|
75
|
+
if ((strict || strictNullChecks) && oldbie !== undefined)
|
|
80
76
|
return [2];
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
if (strictNullChecks === false)
|
|
78
|
+
compilerOptions.strictNullChecks = true;
|
|
79
|
+
else
|
|
80
|
+
compilerOptions.strict = true;
|
|
84
81
|
if (oldbie === undefined)
|
|
85
82
|
plugins.push(comment_json_1.default.parse("\n {\n \"transform\": \"typia/lib/transform\"\n }"));
|
|
86
83
|
return [4, fs_1.default.promises.writeFile(args.project, comment_json_1.default.stringify(config, null, 2))];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginConfigurator.js","sourceRoot":"","sources":["../../../src/executable/setup/PluginConfigurator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAoC;AACpC,0CAAoB;AAIpB,IAAiB,kBAAkB,
|
|
1
|
+
{"version":3,"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AAC;wBACF,IAAI,CAAC,MAAM,IAAI,gBAAgB,CAAC,IAAI,MAAM,KAAK,SAAS;4BAAE,WAAO;wBAGjE,IAAI,gBAAgB,KAAK,KAAK;4BAAE,eAAe,CAAC,gBAAgB,GAAG,IAAI,CAAC;;4BACnE,eAAe,CAAC,MAAM,GAAG,IAAI,CAAC;wBACnC,IAAI,MAAM,KAAK,SAAS;4BACpB,OAAO,CAAC,IAAI,CACR,sBAAQ,CAAC,KAAK,CAAC,4HAGL,CAA2B,CACxC,CAAC;wBACN,WAAM,YAAE,CAAC,QAAQ,CAAC,SAAS,CACvB,IAAI,CAAC,OAAQ,EACb,sBAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CACtC,EAAA;;wBAHD,SAGC,CAAC;;;;;KACL;IAxDqB,4BAAS,YAwD9B,CAAA;AACL,CAAC,EA1DgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QA0DlC"}
|
package/package.json
CHANGED
|
@@ -33,24 +33,22 @@ export namespace PluginConfigurator {
|
|
|
33
33
|
return plugins;
|
|
34
34
|
})();
|
|
35
35
|
|
|
36
|
-
const strict: boolean =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
compilerOptions.strictNullChecks !== false;
|
|
36
|
+
const strict: boolean | undefined = compilerOptions.strict as
|
|
37
|
+
| boolean
|
|
38
|
+
| undefined;
|
|
39
|
+
const strictNullChecks: boolean | undefined =
|
|
40
|
+
compilerOptions.strictNullChecks as boolean | undefined;
|
|
42
41
|
const oldbie: comments.CommentObject | undefined = plugins.find(
|
|
43
42
|
(p) =>
|
|
44
43
|
typeof p === "object" &&
|
|
45
44
|
p !== null &&
|
|
46
45
|
p.transform === "typia/lib/transform",
|
|
47
46
|
);
|
|
48
|
-
if (strict
|
|
47
|
+
if ((strict || strictNullChecks) && oldbie !== undefined) return;
|
|
49
48
|
|
|
50
49
|
// DO CONFIGURE
|
|
51
|
-
compilerOptions.
|
|
52
|
-
|
|
53
|
-
delete compilerOptions.strictNullChecks;
|
|
50
|
+
if (strictNullChecks === false) compilerOptions.strictNullChecks = true;
|
|
51
|
+
else compilerOptions.strict = true;
|
|
54
52
|
if (oldbie === undefined)
|
|
55
53
|
plugins.push(
|
|
56
54
|
comments.parse(`
|