@@ -59,23 +59,19 @@ const typesLanguageOption = new Option(
5959 .default("auto");
6060
6161const typesStrictOption = new Option(
62- "-s, --strict < value > ",
63- "Disable strict mode to not automatically convert field names to follow language conventions"
62+ "-s, --strict",
63+ "Enable strict mode to automatically convert field names to follow language conventions"
6464)
65- .choices(["true", "false"])
66- .default("true");
65+ .default(false);
6766
6867const typesCommand = actionRunner(async (rawOutputDirectory, {language, strict}) => {
6968 if (language === "auto") {
7069 language = detectLanguage();
7170 log(`Detected language: ${language}`);
7271 }
7372
74- strict = strict === "true" || strict === true;
7573 if (strict) {
76- log(`Strict mode enabled: Field names will be converted to follow ${language} conventions`);
77- } else {
78- warn(`Strict mode disabled: Field names will not be converted to follow ${language} conventions`);
74+ warn(`Strict mode enabled: Field names will be converted to follow ${language} conventions`);
7975 }
8076
8177 const meta = createLanguageMeta(language);
@@ -121,7 +117,6 @@ const typesCommand = actionRunner(async (rawOutputDirectory, {language, strict})
121117 const content = templater({
122118 collections,
123119 strict,
124- path: rawOutputDirectory ?? '',
125120 ...templateHelpers,
126121 getType: meta.getType,
127122 });
@@ -136,7 +131,6 @@ const typesCommand = actionRunner(async (rawOutputDirectory, {language, strict})
136131 collections,
137132 collection,
138133 strict,
139- path: rawOutputDirectory ?? '',
140134 ...templateHelpers,
141135 getType: meta.getType,
142136 });
0 commit comments