Skip to content

Commit

Permalink
Remove non-functional dev. dep. typedoc-plugin-remove-references
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Nov 29, 2024
1 parent 9a20205 commit 5893862
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
13 changes: 0 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
"prettier": "^3.2.5",
"tsx": "^4.19.1",
"typedoc": "^0.27.1",
"typedoc-plugin-remove-references": "^0.0.6",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0"
}
Expand Down
9 changes: 9 additions & 0 deletions scripts/typedoc-plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { Converter, ReflectionKind } from 'typedoc';

export function load({ application }) {
application.converter.on(Converter.EVENT_RESOLVE_BEGIN, context => {
for (const reflection of context.project.getReflectionsByKind(ReflectionKind.Reference)) {
context.project.removeReflection(reflection);
}
});
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"entryPoints": ["./src/index.ts"],
"out": "docs",
"name": "ZenFS",
"plugin": ["typedoc-plugin-remove-references"]
"plugin": ["./scripts/typedoc-plugin.js"]
}
}

0 comments on commit 5893862

Please sign in to comment.