diff --git a/package-lock.json b/package-lock.json index a6af57e6..dbbf1a8f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,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" }, @@ -3707,12 +3706,6 @@ "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x" } }, - "node_modules/typedoc-plugin-remove-references": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedoc-plugin-remove-references/-/typedoc-plugin-remove-references-0.0.6.tgz", - "integrity": "sha512-QoyHpopznnJbWW/9JT2NHSK+eTmyShkPYebwe5ZnO8aohPLc5okk4puWUDXnNh2Tn7cJU8U3t1tEMO6ghbwE8Q==", - "dev": true - }, "node_modules/typedoc/node_modules/yaml": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", @@ -6310,12 +6303,6 @@ } } }, - "typedoc-plugin-remove-references": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedoc-plugin-remove-references/-/typedoc-plugin-remove-references-0.0.6.tgz", - "integrity": "sha512-QoyHpopznnJbWW/9JT2NHSK+eTmyShkPYebwe5ZnO8aohPLc5okk4puWUDXnNh2Tn7cJU8U3t1tEMO6ghbwE8Q==", - "dev": true - }, "typescript": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", diff --git a/package.json b/package.json index b4b4b286..71684079 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/scripts/typedoc-plugin.js b/scripts/typedoc-plugin.js new file mode 100644 index 00000000..a933e615 --- /dev/null +++ b/scripts/typedoc-plugin.js @@ -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); + } + }); +} diff --git a/tsconfig.json b/tsconfig.json index ea3e2915..3638d875 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,6 @@ "entryPoints": ["./src/index.ts"], "out": "docs", "name": "ZenFS", - "plugin": ["typedoc-plugin-remove-references"] + "plugin": ["./scripts/typedoc-plugin.js"] } }