Skip to content

Commit c169593

Browse files
committed
remove packages/types form typedoc
1 parent f00a0f0 commit c169593

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

.typedoc/__tests__/file-structure.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ describe('Typedoc output', () => {
3535
"backend",
3636
"clerk-react",
3737
"nextjs",
38-
"shared",
39-
"types",
38+
"shared"
4039
]
4140
`);
4241
});

typedoc.config.mjs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import path from 'node:path';
2-
import fs from 'node:fs';
31
import { OptionDefaults } from 'typedoc';
42

5-
const IGNORE_LIST = ['.DS_Store', 'dev-cli', 'expo-passkeys', 'testing', 'themes', 'upgrade'];
63
const CUSTOM_BLOCK_TAGS = [
74
'@unionReturnHeadings',
85
'@displayFunctionSignature',
@@ -11,16 +8,6 @@ const CUSTOM_BLOCK_TAGS = [
118
'@hideReturns',
129
];
1310

14-
/**
15-
* Return an array of relative paths to all folders in the "packages" folder to be used for the "entryPoints" option.
16-
*/
17-
function getPackages() {
18-
const packagesDir = path.resolve('packages');
19-
const packages = fs.readdirSync(packagesDir);
20-
21-
return packages.filter(dir => !IGNORE_LIST.includes(dir)).map(dir => path.join('packages', dir));
22-
}
23-
2411
/** @type {import("typedoc-plugin-markdown").PluginOptions} */
2512
const typedocPluginMarkdownOptions = {
2613
hidePageHeader: true,
@@ -116,7 +103,7 @@ const config = {
116103
disableSources: true,
117104
...typedocPluginReplaceTextOptions,
118105
},
119-
entryPoints: ['packages/backend', 'packages/nextjs', 'packages/react', 'packages/shared', 'packages/types'], // getPackages(),
106+
entryPoints: ['packages/backend', 'packages/nextjs', 'packages/react', 'packages/shared'],
120107
...typedocPluginMarkdownOptions,
121108
};
122109

0 commit comments

Comments
 (0)