docstra 1.6.0 → 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.
@@ -1815,6 +1815,7 @@ ${exportEntries.join(",\n")}
1815
1815
  ];
1816
1816
  `;
1817
1817
  fs.writeFileSync(outFile, finalOutput, "utf8");
1818
+ console.log(`[Docstra] .docstra/index.ts generated`);
1818
1819
  }
1819
1820
  function getAllMdxFiles(dir) {
1820
1821
  return fs.readdirSync(dir).flatMap((file) => {
@@ -1851,7 +1852,7 @@ async function runDocstraDev(contentDir) {
1851
1852
  });
1852
1853
  watcher.add([contentDir, configFile]);
1853
1854
  watcher.on("ready", () => {
1854
- console.log("\u{1F440} Docstra watching content & config");
1855
+ console.log("[Docstra] Watching for changes...");
1855
1856
  });
1856
1857
  watcher.on("all", async (_, file) => {
1857
1858
  if (!file.endsWith(".md") && !file.endsWith(".mdx") && !file.endsWith("docstra.config.ts")) {
@@ -1859,7 +1860,7 @@ async function runDocstraDev(contentDir) {
1859
1860
  }
1860
1861
  if (rebuildTimeout) clearTimeout(rebuildTimeout);
1861
1862
  rebuildTimeout = setTimeout(async () => {
1862
- console.log(`\u{1F504} Rebuilding \u2192 ${file}`);
1863
+ console.log(`[Docstra] Rebuilding...`);
1863
1864
  await runDocstraBuild(contentDir);
1864
1865
  }, 200);
1865
1866
  });
@@ -1883,7 +1884,7 @@ function loadDocstraConfig() {
1883
1884
  const mod = __require(configPath);
1884
1885
  userConfig = mod.default ?? mod;
1885
1886
  } catch (err) {
1886
- console.error("\u274C Failed to load docstra.config.ts");
1887
+ console.error("[Docstra] Failed to load docstra.config.ts");
1887
1888
  console.error(err);
1888
1889
  }
1889
1890
  }