typedoc 0.24.0-beta.1 → 0.24.0-beta.3
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.
- package/README.md +5 -32
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -14
- package/dist/lib/application-events.d.ts +1 -0
- package/dist/lib/application-events.js +1 -0
- package/dist/lib/application.d.ts +6 -2
- package/dist/lib/application.js +21 -13
- package/dist/lib/cli.js +7 -14
- package/dist/lib/converter/comments/declarationReference.d.ts +1 -1
- package/dist/lib/converter/comments/discovery.d.ts +1 -1
- package/dist/lib/converter/comments/discovery.js +76 -96
- package/dist/lib/converter/comments/index.d.ts +1 -1
- package/dist/lib/converter/comments/index.js +21 -41
- package/dist/lib/converter/comments/linkResolver.d.ts +7 -2
- package/dist/lib/converter/comments/linkResolver.js +27 -39
- package/dist/lib/converter/context.d.ts +1 -1
- package/dist/lib/converter/context.js +5 -25
- package/dist/lib/converter/convert-expression.d.ts +1 -1
- package/dist/lib/converter/convert-expression.js +15 -35
- package/dist/lib/converter/converter.d.ts +6 -4
- package/dist/lib/converter/converter.js +17 -36
- package/dist/lib/converter/factories/index-signature.d.ts +1 -1
- package/dist/lib/converter/factories/index-signature.js +3 -26
- package/dist/lib/converter/factories/signature.d.ts +1 -1
- package/dist/lib/converter/factories/signature.js +36 -53
- package/dist/lib/converter/index.d.ts +1 -0
- package/dist/lib/converter/jsdoc.d.ts +1 -1
- package/dist/lib/converter/jsdoc.js +17 -37
- package/dist/lib/converter/plugins/CommentPlugin.d.ts +2 -0
- package/dist/lib/converter/plugins/CommentPlugin.js +19 -4
- package/dist/lib/converter/plugins/ImplementsPlugin.js +9 -29
- package/dist/lib/converter/plugins/LinkResolverPlugin.js +10 -2
- package/dist/lib/converter/plugins/PackagePlugin.d.ts +5 -0
- package/dist/lib/converter/plugins/PackagePlugin.js +32 -37
- package/dist/lib/converter/plugins/SourcePlugin.js +6 -26
- package/dist/lib/converter/symbols.d.ts +1 -1
- package/dist/lib/converter/symbols.js +120 -142
- package/dist/lib/converter/types.d.ts +1 -1
- package/dist/lib/converter/types.js +89 -112
- package/dist/lib/converter/utils/nodes.d.ts +1 -1
- package/dist/lib/converter/utils/nodes.js +4 -24
- package/dist/lib/converter/utils/symbols.d.ts +1 -1
- package/dist/lib/converter/utils/symbols.js +4 -24
- package/dist/lib/models/comments/comment.d.ts +6 -0
- package/dist/lib/models/comments/comment.js +50 -0
- package/dist/lib/models/reflections/declaration.d.ts +2 -2
- package/dist/lib/models/reflections/declaration.js +1 -1
- package/dist/lib/models/reflections/type-parameter.d.ts +1 -1
- package/dist/lib/models/types.d.ts +1 -1
- package/dist/lib/output/themes/default/DefaultThemeRenderContext.d.ts +1 -1
- package/dist/lib/output/themes/default/DefaultThemeRenderContext.js +1 -2
- package/dist/lib/output/themes/default/layouts/default.js +5 -5
- package/dist/lib/output/themes/default/partials/header.js +1 -1
- package/dist/lib/output/themes/default/partials/navigation.js +2 -2
- package/dist/lib/output/themes/lib.d.ts +2 -4
- package/dist/lib/output/themes/lib.js +3 -45
- package/dist/lib/utils/entry-point.d.ts +2 -2
- package/dist/lib/utils/entry-point.js +11 -8
- package/dist/lib/utils/fs.d.ts +13 -0
- package/dist/lib/utils/fs.js +105 -14
- package/dist/lib/utils/index.d.ts +2 -2
- package/dist/lib/utils/index.js +4 -1
- package/dist/lib/utils/loggers.d.ts +1 -1
- package/dist/lib/utils/loggers.js +8 -28
- package/dist/lib/utils/options/declaration.d.ts +3 -2
- package/dist/lib/utils/options/index.d.ts +1 -1
- package/dist/lib/utils/options/index.js +2 -1
- package/dist/lib/utils/options/readers/index.d.ts +1 -0
- package/dist/lib/utils/options/readers/index.js +3 -1
- package/dist/lib/utils/options/readers/package-json.d.ts +9 -0
- package/dist/lib/utils/options/readers/package-json.js +45 -0
- package/dist/lib/utils/options/readers/tsconfig.js +4 -24
- package/dist/lib/utils/options/readers/typedoc.d.ts +1 -1
- package/dist/lib/utils/options/readers/typedoc.js +15 -4
- package/dist/lib/utils/options/sources/typedoc.js +56 -10
- package/dist/lib/utils/sort.d.ts +1 -1
- package/dist/lib/validation/documentation.js +13 -1
- package/package.json +16 -16
- package/static/main.js +55 -1
- package/static/style.css +4 -7
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TypeDocReader = exports.TSConfigReader = exports.ArgumentsReader = void 0;
|
|
3
|
+
exports.TypeDocReader = exports.TSConfigReader = exports.PackageJsonReader = exports.ArgumentsReader = void 0;
|
|
4
4
|
var arguments_1 = require("./arguments");
|
|
5
5
|
Object.defineProperty(exports, "ArgumentsReader", { enumerable: true, get: function () { return arguments_1.ArgumentsReader; } });
|
|
6
|
+
var package_json_1 = require("./package-json");
|
|
7
|
+
Object.defineProperty(exports, "PackageJsonReader", { enumerable: true, get: function () { return package_json_1.PackageJsonReader; } });
|
|
6
8
|
var tsconfig_1 = require("./tsconfig");
|
|
7
9
|
Object.defineProperty(exports, "TSConfigReader", { enumerable: true, get: function () { return tsconfig_1.TSConfigReader; } });
|
|
8
10
|
var typedoc_1 = require("./typedoc");
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OptionsReader } from "..";
|
|
2
|
+
import type { Logger } from "../../loggers";
|
|
3
|
+
import type { Options } from "../options";
|
|
4
|
+
export declare class PackageJsonReader implements OptionsReader {
|
|
5
|
+
order: number;
|
|
6
|
+
supportsPackages: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
read(container: Options, logger: Logger, cwd: string): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PackageJsonReader = void 0;
|
|
4
|
+
const assert_1 = require("assert");
|
|
5
|
+
const paths_1 = require("../../paths");
|
|
6
|
+
const fs_1 = require("../../fs");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
class PackageJsonReader {
|
|
9
|
+
constructor() {
|
|
10
|
+
// Should run after the TypeDoc config reader but before the TS config
|
|
11
|
+
// reader, so that it can still specify a path to a `tsconfig.json` file.
|
|
12
|
+
this.order = 150;
|
|
13
|
+
this.supportsPackages = true;
|
|
14
|
+
this.name = "package-json";
|
|
15
|
+
}
|
|
16
|
+
read(container, logger, cwd) {
|
|
17
|
+
const result = (0, fs_1.discoverPackageJson)(cwd);
|
|
18
|
+
if (!result) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const { file, content } = result;
|
|
22
|
+
if ("typedoc" in content) {
|
|
23
|
+
logger.warn(`The 'typedoc' key in ${(0, paths_1.nicePath)(file)} was used by the legacy-packages entryPointStrategy and will be ignored.`);
|
|
24
|
+
}
|
|
25
|
+
const optsKey = "typedocOptions";
|
|
26
|
+
if (!(optsKey in content)) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const opts = content[optsKey];
|
|
30
|
+
if (opts === null || typeof opts !== "object") {
|
|
31
|
+
logger.error(`Failed to parse the "typedocOptions" field in ${(0, paths_1.nicePath)(file)}, ensure it exists and contains an object.`);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
for (const [opt, val] of Object.entries(opts)) {
|
|
35
|
+
try {
|
|
36
|
+
container.setValue(opt, val, (0, path_1.dirname)(file));
|
|
37
|
+
}
|
|
38
|
+
catch (err) {
|
|
39
|
+
(0, assert_1.ok)(err instanceof Error);
|
|
40
|
+
logger.error(err.message);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.PackageJsonReader = PackageJsonReader;
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
6
|
exports.TSConfigReader = void 0;
|
|
27
7
|
const path_1 = require("path");
|
|
28
|
-
const
|
|
8
|
+
const typescript_1 = __importDefault(require("typescript"));
|
|
29
9
|
const fs_1 = require("../../fs");
|
|
30
10
|
const assert_1 = require("assert");
|
|
31
11
|
const validation_1 = require("../../validation");
|
|
@@ -162,7 +142,7 @@ class TSConfigReader {
|
|
|
162
142
|
return;
|
|
163
143
|
}
|
|
164
144
|
this.seenTsdocPaths.add(path);
|
|
165
|
-
const { config, error } =
|
|
145
|
+
const { config, error } = typescript_1.default.readConfigFile((0, fs_1.normalizePath)(path), typescript_1.default.sys.readFile);
|
|
166
146
|
if (error) {
|
|
167
147
|
logger.error(`Failed to read tsdoc.json file at ${(0, paths_1.nicePath)(path)}.`);
|
|
168
148
|
return;
|
|
@@ -24,7 +24,7 @@ export declare class TypeDocReader implements OptionsReader {
|
|
|
24
24
|
*/
|
|
25
25
|
private readFile;
|
|
26
26
|
/**
|
|
27
|
-
* Search for the
|
|
27
|
+
* Search for the configuration file given path
|
|
28
28
|
*
|
|
29
29
|
* @param path Path to the typedoc.(js|json) file. If path is a directory
|
|
30
30
|
* typedoc file will be attempted to be found at the root of this path
|
|
@@ -22,11 +22,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
25
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
29
|
exports.TypeDocReader = void 0;
|
|
27
30
|
const path_1 = require("path");
|
|
28
31
|
const FS = __importStar(require("fs"));
|
|
29
|
-
const
|
|
32
|
+
const typescript_1 = __importDefault(require("typescript"));
|
|
30
33
|
const assert_1 = require("assert");
|
|
31
34
|
const paths_1 = require("../../paths");
|
|
32
35
|
const fs_1 = require("../../fs");
|
|
@@ -73,7 +76,7 @@ class TypeDocReader {
|
|
|
73
76
|
seen.add(file);
|
|
74
77
|
let fileContent;
|
|
75
78
|
if (file.endsWith(".json")) {
|
|
76
|
-
const readResult =
|
|
79
|
+
const readResult = typescript_1.default.readConfigFile((0, fs_1.normalizePath)(file), (path) => FS.readFileSync(path, "utf-8"));
|
|
77
80
|
if (readResult.error) {
|
|
78
81
|
logger.error(`Failed to parse ${(0, paths_1.nicePath)(file)}, ensure it exists and contains an object.`);
|
|
79
82
|
return;
|
|
@@ -120,7 +123,7 @@ class TypeDocReader {
|
|
|
120
123
|
}
|
|
121
124
|
}
|
|
122
125
|
/**
|
|
123
|
-
* Search for the
|
|
126
|
+
* Search for the configuration file given path
|
|
124
127
|
*
|
|
125
128
|
* @param path Path to the typedoc.(js|json) file. If path is a directory
|
|
126
129
|
* typedoc file will be attempted to be found at the root of this path
|
|
@@ -132,9 +135,17 @@ class TypeDocReader {
|
|
|
132
135
|
return [
|
|
133
136
|
path,
|
|
134
137
|
(0, path_1.join)(path, "typedoc.json"),
|
|
138
|
+
(0, path_1.join)(path, "typedoc.jsonc"),
|
|
139
|
+
(0, path_1.join)(path, "typedoc.config.js"),
|
|
140
|
+
(0, path_1.join)(path, "typedoc.config.cjs"),
|
|
135
141
|
(0, path_1.join)(path, "typedoc.js"),
|
|
136
|
-
(0, path_1.join)(path, "
|
|
142
|
+
(0, path_1.join)(path, "typedoc.cjs"),
|
|
137
143
|
(0, path_1.join)(path, ".config/typedoc.json"),
|
|
144
|
+
(0, path_1.join)(path, ".config/typedoc.jsonc"),
|
|
145
|
+
(0, path_1.join)(path, ".config/typedoc.config.js"),
|
|
146
|
+
(0, path_1.join)(path, ".config/typedoc.config.cjs"),
|
|
147
|
+
(0, path_1.join)(path, ".config/typedoc.js"),
|
|
148
|
+
(0, path_1.join)(path, ".config/typedoc.cjs"),
|
|
138
149
|
].find(fs_1.isFile);
|
|
139
150
|
}
|
|
140
151
|
}
|
|
@@ -99,6 +99,51 @@ function addTypeDocOptions(options) {
|
|
|
99
99
|
help: "Prevent symbols that are not explicitly documented from appearing in the results.",
|
|
100
100
|
type: declaration_1.ParameterType.Boolean,
|
|
101
101
|
});
|
|
102
|
+
options.addDeclaration({
|
|
103
|
+
name: "excludeNotDocumentedKinds",
|
|
104
|
+
help: "Specify the type of reflections that can be removed by excludeNotDocumented.",
|
|
105
|
+
type: declaration_1.ParameterType.Array,
|
|
106
|
+
validate(value) {
|
|
107
|
+
const invalid = new Set(value);
|
|
108
|
+
const valid = new Set((0, enum_1.getEnumKeys)(kind_1.ReflectionKind));
|
|
109
|
+
for (const notPermitted of [
|
|
110
|
+
kind_1.ReflectionKind.Project,
|
|
111
|
+
kind_1.ReflectionKind.TypeLiteral,
|
|
112
|
+
kind_1.ReflectionKind.TypeParameter,
|
|
113
|
+
kind_1.ReflectionKind.Parameter,
|
|
114
|
+
kind_1.ReflectionKind.ObjectLiteral,
|
|
115
|
+
]) {
|
|
116
|
+
valid.delete(kind_1.ReflectionKind[notPermitted]);
|
|
117
|
+
}
|
|
118
|
+
for (const v of valid) {
|
|
119
|
+
invalid.delete(v);
|
|
120
|
+
}
|
|
121
|
+
if (invalid.size !== 0) {
|
|
122
|
+
throw new Error(`excludeNotDocumentedKinds may only specify known values, and invalid values were provided (${Array.from(invalid).join(", ")}). The valid kinds are:\n${Array.from(valid).join(", ")}`);
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
defaultValue: [
|
|
126
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Module],
|
|
127
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Namespace],
|
|
128
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Enum],
|
|
129
|
+
// Not including enum member here by default
|
|
130
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Variable],
|
|
131
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Function],
|
|
132
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Class],
|
|
133
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Interface],
|
|
134
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Constructor],
|
|
135
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Property],
|
|
136
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Method],
|
|
137
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.CallSignature],
|
|
138
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.IndexSignature],
|
|
139
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.ConstructorSignature],
|
|
140
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Accessor],
|
|
141
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.GetSignature],
|
|
142
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.SetSignature],
|
|
143
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.TypeAlias],
|
|
144
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Reference],
|
|
145
|
+
],
|
|
146
|
+
});
|
|
102
147
|
options.addDeclaration({
|
|
103
148
|
name: "excludeInternal",
|
|
104
149
|
help: "Prevent symbols that are marked with @internal from being documented.",
|
|
@@ -156,6 +201,7 @@ function addTypeDocOptions(options) {
|
|
|
156
201
|
help: "Specify the location the documentation should be written to.",
|
|
157
202
|
type: declaration_1.ParameterType.Path,
|
|
158
203
|
hint: declaration_1.ParameterHint.Directory,
|
|
204
|
+
defaultValue: "./docs",
|
|
159
205
|
});
|
|
160
206
|
options.addDeclaration({
|
|
161
207
|
name: "json",
|
|
@@ -558,16 +604,16 @@ function addTypeDocOptions(options) {
|
|
|
558
604
|
}
|
|
559
605
|
},
|
|
560
606
|
defaultValue: [
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
607
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Enum],
|
|
608
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.EnumMember],
|
|
609
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Variable],
|
|
610
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Function],
|
|
611
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Class],
|
|
612
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Interface],
|
|
613
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Property],
|
|
614
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Method],
|
|
615
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.Accessor],
|
|
616
|
+
kind_1.ReflectionKind[kind_1.ReflectionKind.TypeAlias],
|
|
571
617
|
],
|
|
572
618
|
});
|
|
573
619
|
options.addDeclaration({
|
package/dist/lib/utils/sort.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
import type { DeclarationReflection } from "../models/reflections/declaration";
|
|
6
6
|
import type { Options } from "./options";
|
|
7
7
|
export declare const SORT_STRATEGIES: readonly ["source-order", "alphabetical", "enum-value-ascending", "enum-value-descending", "static-first", "instance-first", "visibility", "required-first", "kind"];
|
|
8
|
-
export type SortStrategy = typeof SORT_STRATEGIES[number];
|
|
8
|
+
export type SortStrategy = (typeof SORT_STRATEGIES)[number];
|
|
9
9
|
export declare function getSortFunction(opts: Options): (reflections: DeclarationReflection[]) => void;
|
|
@@ -23,11 +23,23 @@ function validateDocumentation(project, logger, requiredToBeDocumented) {
|
|
|
23
23
|
}
|
|
24
24
|
const toProcess = project.getReflectionsByKind(kinds);
|
|
25
25
|
const seen = new Set();
|
|
26
|
-
while (toProcess.length) {
|
|
26
|
+
outer: while (toProcess.length) {
|
|
27
27
|
const ref = toProcess.shift();
|
|
28
28
|
if (seen.has(ref))
|
|
29
29
|
continue;
|
|
30
30
|
seen.add(ref);
|
|
31
|
+
// If there is a parameter inside another parameter, this is probably a callback function.
|
|
32
|
+
// TypeDoc doesn't support adding comments with @param to nested parameters, so it seems
|
|
33
|
+
// silly to warn about these.
|
|
34
|
+
if (ref.kindOf(models_1.ReflectionKind.Parameter)) {
|
|
35
|
+
let r = ref.parent;
|
|
36
|
+
while (r) {
|
|
37
|
+
if (r.kindOf(models_1.ReflectionKind.Parameter)) {
|
|
38
|
+
continue outer;
|
|
39
|
+
}
|
|
40
|
+
r = r.parent;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
31
43
|
if (ref instanceof models_1.DeclarationReflection) {
|
|
32
44
|
const signatures = ref.type instanceof models_1.ReflectionType
|
|
33
45
|
? ref.type.declaration.getNonIndexSignatures()
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typedoc",
|
|
3
3
|
"description": "Create api documentation for TypeScript projects.",
|
|
4
|
-
"version": "0.24.0-beta.
|
|
4
|
+
"version": "0.24.0-beta.3",
|
|
5
5
|
"homepage": "https://typedoc.org",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./dist/index.js",
|
|
8
|
-
"./tsdoc.json": "./tsdoc.json"
|
|
8
|
+
"./tsdoc.json": "./tsdoc.json",
|
|
9
|
+
"./package.json": "./package.json"
|
|
9
10
|
},
|
|
10
11
|
"types": "./dist/index.d.ts",
|
|
11
12
|
"bin": {
|
|
@@ -24,9 +25,9 @@
|
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"lunr": "^2.3.9",
|
|
27
|
-
"marked": "^4.2.
|
|
28
|
-
"minimatch": "^
|
|
29
|
-
"shiki": "^0.
|
|
28
|
+
"marked": "^4.2.12",
|
|
29
|
+
"minimatch": "^7.1.3",
|
|
30
|
+
"shiki": "^0.14.1"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
32
33
|
"typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x"
|
|
@@ -34,20 +35,19 @@
|
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@types/lunr": "^2.3.4",
|
|
36
37
|
"@types/marked": "^4.0.8",
|
|
37
|
-
"@types/
|
|
38
|
-
"@types/mocha": "^9.1.1",
|
|
38
|
+
"@types/mocha": "^10.0.1",
|
|
39
39
|
"@types/node": "14",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
41
|
-
"@typescript-eslint/parser": "^5.
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^5.51.0",
|
|
41
|
+
"@typescript-eslint/parser": "^5.51.0",
|
|
42
42
|
"@typestrong/fs-fixture-builder": "github:TypeStrong/fs-fixture-builder#8abd1494280116ff5318dde2c50ad01e1663790c",
|
|
43
43
|
"c8": "^7.12.0",
|
|
44
|
-
"esbuild": "^0.
|
|
45
|
-
"eslint": "^8.
|
|
44
|
+
"esbuild": "^0.17.7",
|
|
45
|
+
"eslint": "^8.34.0",
|
|
46
46
|
"mocha": "^10.2.0",
|
|
47
|
-
"prettier": "2.8.
|
|
47
|
+
"prettier": "2.8.4",
|
|
48
48
|
"puppeteer": "^13.5.2",
|
|
49
49
|
"ts-node": "^10.9.1",
|
|
50
|
-
"typescript": "4.9.
|
|
50
|
+
"typescript": "4.9.5"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"/bin",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"/tsdoc.json"
|
|
62
62
|
],
|
|
63
63
|
"scripts": {
|
|
64
|
-
"test": "mocha
|
|
65
|
-
"test:cov": "c8 mocha
|
|
64
|
+
"test": "mocha --config .config/mocha.fast.json",
|
|
65
|
+
"test:cov": "c8 mocha --config .config/mocha.fast.json",
|
|
66
66
|
"doc:c": "node bin/typedoc --tsconfig src/test/converter/tsconfig.json",
|
|
67
67
|
"doc:c2": "node bin/typedoc --tsconfig src/test/converter2/tsconfig.json",
|
|
68
|
-
"test:full": "c8 mocha
|
|
68
|
+
"test:full": "c8 mocha --config .config/mocha.full.json",
|
|
69
69
|
"test:visual": "ts-node ./src/test/capture-screenshots.ts && ./scripts/compare_screenshots.sh",
|
|
70
70
|
"test:visual:accept": "node scripts/accept_visual_regression.js",
|
|
71
71
|
"rebuild_specs": "node scripts/rebuild_specs.js",
|