mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
Verified on node 24.18 (the supported runtime; install resolves clean, 28/30
packages build green). Two real upstream-staleness fixes the package-name
normalization couldn't cover:
- packages/mdx/src/next/index.ts: webpack loaders renamed upstream
fumadocs-mdx/loader-{mdx,meta} → /webpack/{mdx,meta} (old paths unexported);
next-plugin wasn't updated. Confirmed against the package's exports map.
- apps/spec: mirror gui-docs's proven app shell (@hanzo/docs/{ui,core}/* meta-
package subpaths) — my scaffolding sed had mangled them to fumadocs-ui/ui/*;
deps aligned to gui-docs.
- keep twoslash tsdown deps fix (scientist).
KNOWN-REMAINING (blue): a deeper fumadocs-mdx/next-16 loader-RULE wiring issue
(meta loader JSON-parsing MDX output) blocks the final app build — a rule-match
problem, not a path; needs the next-plugin's loader rules reviewed.
19 lines
650 B
TypeScript
19 lines
650 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
fixedExtension: false,
|
|
target: 'es2023',
|
|
format: 'esm',
|
|
entry: ['src/index.ts', 'src/cache-fs.ts', 'src/ui/index.ts'],
|
|
dts: {
|
|
sourcemap: false,
|
|
},
|
|
deps: {
|
|
// Transitive type-only deps pulled in via @shikijs/twoslash's public type
|
|
// surface. The fork's lockfile resolves a fractured @shikijs/* tree, so these
|
|
// arrive from undeclared node_modules; bundle their .d.ts into our emitted
|
|
// types rather than leave dangling external references.
|
|
onlyBundle: ['@types/hast', '@types/unist', '@shikijs/types', '@shikijs/vscode-textmate'],
|
|
},
|
|
});
|