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.
- package/dist/client/index.js +18 -7
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +18 -7
- package/dist/client/index.mjs.map +1 -1
- package/dist/server/index.js +4 -3
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +4 -3
- package/dist/server/index.mjs.map +1 -1
- package/package.json +1 -3
package/dist/server/index.mjs
CHANGED
|
@@ -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("
|
|
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(
|
|
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("
|
|
1887
|
+
console.error("[Docstra] Failed to load docstra.config.ts");
|
|
1887
1888
|
console.error(err);
|
|
1888
1889
|
}
|
|
1889
1890
|
}
|