@sdk-it/typescript 0.36.1 → 0.36.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.
package/dist/index.js CHANGED
@@ -3231,8 +3231,9 @@ ${utils_default}`
3231
3231
  await settings.writer(settings.output, configFiles);
3232
3232
  }
3233
3233
  if (settings.readme) {
3234
- await settings.writer(settings.mode === "full" ? settings.output : output, {
3235
- "README.md": toReadme(spec, new TypeScriptSnippet(spec, settings))
3234
+ const path = typeof settings.readme === "string" ? settings.readme : "README.md";
3235
+ await settings.writer(settings.output, {
3236
+ [path]: toReadme(spec, new TypeScriptSnippet(spec, settings))
3236
3237
  });
3237
3238
  }
3238
3239
  await settings.formatCode?.({