@virmator/docs 13.13.4 → 13.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,7 +15,7 @@ export const defaultDocumentationRequirements: TypeDocOptionMap['requiredToBeDoc
|
|
|
15
15
|
'Variable',
|
|
16
16
|
];
|
|
17
17
|
|
|
18
|
-
export const baseTypedocConfig
|
|
18
|
+
export const baseTypedocConfig = {
|
|
19
19
|
cacheBust: true,
|
|
20
20
|
cleanOutputDir: true,
|
|
21
21
|
excludeExternals: true,
|
|
@@ -35,4 +35,4 @@ export const baseTypedocConfig: PartialDeep<TypeDocOptionMap> = {
|
|
|
35
35
|
navigation: {
|
|
36
36
|
includeCategories: true,
|
|
37
37
|
},
|
|
38
|
-
}
|
|
38
|
+
} satisfies PartialDeep<TypeDocOptionMap>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {baseTypedocConfig} from '@virmator/docs/configs/typedoc.config.base';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import {dirname, join} from 'node:path/posix';
|
|
3
|
+
import {fileURLToPath} from 'node:url';
|
|
4
|
+
import {type TypeDocOptions} from 'typedoc';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
6
|
+
const indexTsFile = join(dirname(dirname(fileURLToPath(import.meta.url))), 'src', 'index.ts');
|
|
7
|
+
const outDirPath = join(dirname(dirname(fileURLToPath(import.meta.url))), 'dist-docs');
|
|
7
8
|
|
|
8
9
|
export const typeDocConfig: Partial<TypeDocOptions> = {
|
|
9
10
|
...baseTypedocConfig,
|
|
10
|
-
out:
|
|
11
|
+
out: outDirPath,
|
|
11
12
|
entryPoints: [
|
|
12
13
|
indexTsFile,
|
|
13
14
|
],
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {baseTypedocConfig} from '@virmator/docs/configs/typedoc.config.base';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import {dirname, join} from 'node:path/posix';
|
|
3
|
+
import {fileURLToPath} from 'node:url';
|
|
4
|
+
import {type TypeDocOptions} from 'typedoc';
|
|
4
5
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
6
|
+
const indexTsFile = join(dirname(dirname(fileURLToPath(import.meta.url))), 'src', 'docs.ts');
|
|
7
|
+
const outDirPath = join(dirname(dirname(fileURLToPath(import.meta.url))), 'dist-docs');
|
|
7
8
|
|
|
8
9
|
export const typeDocConfig: Partial<TypeDocOptions> = {
|
|
9
10
|
...baseTypedocConfig,
|
|
10
|
-
out:
|
|
11
|
+
out: outDirPath,
|
|
11
12
|
entryPoints: [
|
|
12
13
|
indexTsFile,
|
|
13
14
|
],
|
package/dist/docs.js
CHANGED
|
@@ -191,7 +191,7 @@ async function runTypedocInternal(options, typeDoc, log) {
|
|
|
191
191
|
return false;
|
|
192
192
|
}
|
|
193
193
|
else if (app.options.getValue('watch')) {
|
|
194
|
-
throw new Error('
|
|
194
|
+
throw new Error('TypeDoc watch mode not supported in virmator. Run typedoc directly instead.');
|
|
195
195
|
}
|
|
196
196
|
const project = await app.convert();
|
|
197
197
|
if (!project || (app.options.getValue('treatWarningsAsErrors') && app.logger.hasWarnings())) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/docs",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.14.0",
|
|
4
4
|
"description": "Default TS docs plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"name": "electrovir",
|
|
22
22
|
"url": "https://github.com/electrovir"
|
|
23
23
|
},
|
|
24
|
+
"sideEffects": false,
|
|
24
25
|
"type": "module",
|
|
25
26
|
"main": "dist/docs.js",
|
|
26
27
|
"module": "dist/docs.js",
|
|
@@ -32,22 +33,22 @@
|
|
|
32
33
|
"test:update": "npm test update"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@augment-vir/assert": "^31.
|
|
36
|
-
"@augment-vir/common": "^31.
|
|
37
|
-
"@augment-vir/node": "^31.
|
|
38
|
-
"@virmator/core": "^13.
|
|
36
|
+
"@augment-vir/assert": "^31.14.1",
|
|
37
|
+
"@augment-vir/common": "^31.14.1",
|
|
38
|
+
"@augment-vir/node": "^31.14.1",
|
|
39
|
+
"@virmator/core": "^13.14.0",
|
|
39
40
|
"chalk": "^5.4.1",
|
|
40
41
|
"mri": "^1.2.0",
|
|
41
|
-
"type-fest": "^4.
|
|
42
|
+
"type-fest": "^4.40.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@augment-vir/test": "^31.
|
|
45
|
-
"@types/node": "^22.
|
|
45
|
+
"@augment-vir/test": "^31.14.1",
|
|
46
|
+
"@types/node": "^22.14.1",
|
|
46
47
|
"c8": "^10.1.3",
|
|
47
|
-
"esbuild": "^0.25.
|
|
48
|
+
"esbuild": "^0.25.2",
|
|
48
49
|
"istanbul-smart-text-reporter": "^1.1.5",
|
|
49
50
|
"markdown-code-example-inserter": "^3.0.3",
|
|
50
|
-
"typedoc": "^0.28.
|
|
51
|
+
"typedoc": "^0.28.3"
|
|
51
52
|
},
|
|
52
53
|
"engines": {
|
|
53
54
|
"node": ">=22"
|