File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Converter , ReflectionKind , Renderer } from 'typedoc' ;
22import { MarkdownPageEvent } from 'typedoc-plugin-markdown' ;
33import { getSourceMetadata } from './metadata.mjs' ;
4- import { writeFileSync } from 'node:fs' ;
4+ import { readFileSync , writeFileSync } from 'node:fs' ;
55import { join } from 'node:path' ;
66import { applyExportEqualsReflections } from './exportEquals.mjs' ;
77import { applySourceMetadata } from './source.mjs' ;
@@ -60,8 +60,15 @@ export function load(app) {
6060 }
6161 } ) ;
6262
63+ let libDir ;
64+ const versions = JSON . parse ( readFileSync ( './versions.json' ) ) ;
65+
66+ if ( versions ?. [ 0 ] ) {
67+ libDir = `./.cache/webpack/${ versions [ 0 ] } /lib` ;
68+ }
69+
6370 applyExportEqualsReflections ( context . project ) ;
64- applySourceMetadata ( context . project ) ;
71+ applySourceMetadata ( context . project , libDir ? { libDir } : { } ) ;
6572 } ) ;
6673
6774 app . converter . on ( Converter . EVENT_RESOLVE_END , context => {
You can’t perform that action at this time.
0 commit comments