@codama/renderers-js 1.6.1 → 1.6.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.
@@ -2213,7 +2213,7 @@ function getProgramInstructionsParseFunctionFragment(scope) {
2213
2213
  const instructionType = ${programInstructionsIdentifierFunction}(instruction);
2214
2214
  switch (instructionType) {
2215
2215
  ${switchCases}
2216
- default: throw new Error(\`Unrecognized instruction type: \${instructionType}\`);
2216
+ default: throw new Error(\`Unrecognized instruction type: \${instructionType as string}\`);
2217
2217
  }
2218
2218
  }`;
2219
2219
  }
@@ -3265,9 +3265,6 @@ function renderVisitor(path, options = {}) {
3265
3265
  const formatCode = await getCodeFormatter(options);
3266
3266
  renderMap = await renderersCore.mapRenderMapContentAsync(renderMap, formatCode);
3267
3267
  await syncPackageJson(renderMap, formatCode, options);
3268
- if (options.formatCode ?? true) {
3269
- renderMap = renderersCore.addToRenderMap(renderMap, ".prettierignore", fragment`**\n`);
3270
- }
3271
3268
  renderersCore.writeRenderMap(renderMap, path);
3272
3269
  });
3273
3270
  }