@forsakringskassan/docs-generator 3.1.0 → 3.1.1

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.mjs CHANGED
@@ -791,6 +791,7 @@ function manifestProcessor(options = {}) {
791
791
  const manifest = { pages };
792
792
  if (markdown) {
793
793
  const content = normalize(renderMarkdown(manifest));
794
+ await fs.mkdir(path__default.dirname(markdown), { recursive: true });
794
795
  if (verify) {
795
796
  const actual = normalize(
796
797
  await fs.readFile(markdown, "utf8")
@@ -804,6 +805,7 @@ function manifestProcessor(options = {}) {
804
805
  }
805
806
  if (json) {
806
807
  const content = renderJSON(manifest);
808
+ await fs.mkdir(path__default.dirname(json), { recursive: true });
807
809
  await fs.writeFile(json, content, "utf8");
808
810
  }
809
811
  }