Skip to content

Commit e021751

Browse files
committed
Upgrade dependencies
1 parent 138a52b commit e021751

32 files changed

+377
-367
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
### Bug Fixes
1616

1717
- Entry points under `node_modules` will no longer be ignored, #2151.
18+
- Added `package.json` to exports declaration.
1819

1920
### Thanks!
2021

package-lock.json

Lines changed: 324 additions & 320 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"main": "./dist/index.js",
77
"exports": {
88
".": "./dist/index.js",
9-
"./tsdoc.json": "./tsdoc.json"
9+
"./tsdoc.json": "./tsdoc.json",
10+
"./package.json": "./package.json"
1011
},
1112
"types": "./dist/index.d.ts",
1213
"bin": {
@@ -25,30 +26,29 @@
2526
},
2627
"dependencies": {
2728
"lunr": "^2.3.9",
28-
"marked": "^4.2.5",
29-
"minimatch": "^5.1.2",
30-
"shiki": "^0.12.1"
29+
"marked": "^4.2.12",
30+
"minimatch": "^6.1.6",
31+
"shiki": "^0.14.1"
3132
},
3233
"peerDependencies": {
3334
"typescript": "4.6.x || 4.7.x || 4.8.x || 4.9.x"
3435
},
3536
"devDependencies": {
3637
"@types/lunr": "^2.3.4",
3738
"@types/marked": "^4.0.8",
38-
"@types/minimatch": "5.1.2",
3939
"@types/mocha": "^10.0.1",
4040
"@types/node": "14",
41-
"@typescript-eslint/eslint-plugin": "^5.48.0",
42-
"@typescript-eslint/parser": "^5.48.0",
41+
"@typescript-eslint/eslint-plugin": "^5.51.0",
42+
"@typescript-eslint/parser": "^5.51.0",
4343
"@typestrong/fs-fixture-builder": "github:TypeStrong/fs-fixture-builder#5a9486bc66f6e36988106685768396281f6cbc10",
4444
"c8": "^7.12.0",
45-
"esbuild": "^0.16.15",
46-
"eslint": "^8.31.0",
45+
"esbuild": "^0.17.7",
46+
"eslint": "^8.34.0",
4747
"mocha": "^10.2.0",
48-
"prettier": "2.8.2",
48+
"prettier": "2.8.4",
4949
"puppeteer": "^13.5.2",
5050
"ts-node": "^10.9.1",
51-
"typescript": "4.9.4"
51+
"typescript": "4.9.5"
5252
},
5353
"files": [
5454
"/bin",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ export {
7979
} from "./lib/serialization";
8080
export type { SerializeEventData } from "./lib/serialization";
8181

82-
import * as TypeScript from "typescript";
82+
import TypeScript from "typescript";
8383
export { TypeScript };

src/lib/application.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as Path from "path";
2-
import * as ts from "typescript";
2+
import ts from "typescript";
33

44
import { Converter } from "./converter/index";
55
import { Renderer } from "./output/renderer";

src/lib/converter/comments/discovery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22
import { ReflectionKind } from "../../models";
33
import { assertNever, Logger } from "../../utils";
44
import { CommentStyle } from "../../utils/options/declaration";

src/lib/converter/comments/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22
import { Comment, ReflectionKind } from "../../models";
33
import { assertNever, Logger } from "../../utils";
44
import type { CommentStyle } from "../../utils/options/declaration";

src/lib/converter/comments/linkResolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22
import {
33
Comment,
44
CommentDisplayPart,

src/lib/converter/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ok as assert } from "assert";
2-
import * as ts from "typescript";
2+
import ts from "typescript";
33

44
import {
55
Reflection,

src/lib/converter/convert-expression.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22

33
/**
44
* Return the default value of the given node.

src/lib/converter/converter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22

33
import type { Application } from "../application";
44
import {
@@ -45,8 +45,8 @@ export class Converter extends ChildableComponent<
4545
/** @internal */
4646
@BindOption("externalPattern")
4747
externalPattern!: string[];
48-
private externalPatternCache?: Minimatch[];
49-
private excludeCache?: Minimatch[];
48+
private externalPatternCache?: InstanceType<typeof Minimatch>[];
49+
private excludeCache?: InstanceType<typeof Minimatch>[];
5050

5151
/** @internal */
5252
@BindOption("excludeExternals")

src/lib/converter/factories/index-signature.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as assert from "assert";
2-
import * as ts from "typescript";
1+
import assert from "assert";
2+
import ts from "typescript";
33
import {
44
DeclarationReflection,
55
ParameterReflection,

src/lib/converter/factories/signature.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as ts from "typescript";
2-
import * as assert from "assert";
1+
import ts from "typescript";
2+
import assert from "assert";
33
import {
44
ConversionFlags,
55
DeclarationReflection,

src/lib/converter/jsdoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @callback
44

55
import { ok } from "assert";
6-
import * as ts from "typescript";
6+
import ts from "typescript";
77
import {
88
DeclarationReflection,
99
IntrinsicType,

src/lib/converter/plugins/ImplementsPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22
import {
33
ContainerReflection,
44
DeclarationReflection,

src/lib/converter/plugins/SourcePlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22

33
import type { Reflection } from "../../models/reflections/index";
44
import { Component, ConverterComponent } from "../components";

src/lib/converter/symbols.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as assert from "assert";
2-
import * as ts from "typescript";
1+
import assert from "assert";
2+
import ts from "typescript";
33
import {
44
DeclarationReflection,
55
IntrinsicType,

src/lib/converter/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as assert from "assert";
2-
import * as ts from "typescript";
1+
import assert from "assert";
2+
import ts from "typescript";
33
import {
44
ArrayType,
55
ConditionalType,

src/lib/converter/utils/nodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22

33
export function isNamedNode(node: ts.Node): node is ts.Node & {
44
name: ts.Identifier | ts.PrivateIdentifier | ts.ComputedPropertyName;

src/lib/converter/utils/symbols.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22

33
export function resolveAliasedSymbol(
44
symbol: ts.Symbol,

src/lib/utils/entry-point.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { join, relative, resolve } from "path";
2-
import * as ts from "typescript";
2+
import ts from "typescript";
33
import * as FS from "fs";
44
import * as Path from "path";
55
import {

src/lib/utils/loggers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22
import { url } from "inspector";
33
import { resolve } from "path";
44
import { nicePath } from "./paths";

src/lib/utils/options/readers/tsconfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { resolve, join, dirname } from "path";
22
import { existsSync, statSync } from "fs";
33

4-
import * as ts from "typescript";
4+
import ts from "typescript";
55

66
import type { Options, OptionsReader } from "../options";
77
import type { Logger } from "../../loggers";

src/lib/utils/options/readers/typedoc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join, dirname, resolve } from "path";
22
import * as FS from "fs";
3-
import * as ts from "typescript";
3+
import ts from "typescript";
44

55
import type { OptionsReader } from "..";
66
import type { Logger } from "../../loggers";

src/lib/utils/package-manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function expandPackages(
117117
logger: Logger,
118118
packageJsonDir: string,
119119
workspaces: string[],
120-
exclude: Minimatch[]
120+
exclude: InstanceType<typeof Minimatch>[]
121121
): string[] {
122122
// Technically npm and Yarn workspaces don't support recursive nesting,
123123
// however we support the passing of paths to either packages or

src/lib/utils/paths.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import { normalizePath } from "./fs";
77
*
88
* Handle a few Windows-Unix path gotchas.
99
*/
10-
export function createMinimatch(patterns: string[]): Minimatch[] {
10+
export function createMinimatch(
11+
patterns: string[]
12+
): InstanceType<typeof Minimatch>[] {
1113
return patterns.map(
1214
(pattern) =>
1315
new Minimatch(normalizePath(pattern).replace(/^\w:\//, ""), {
@@ -16,7 +18,10 @@ export function createMinimatch(patterns: string[]): Minimatch[] {
1618
);
1719
}
1820

19-
export function matchesAny(patterns: readonly Minimatch[], path: string) {
21+
export function matchesAny(
22+
patterns: readonly InstanceType<typeof Minimatch>[],
23+
path: string
24+
) {
2025
const normPath = normalizePath(path).replace(/^\w:\//, "");
2126
return patterns.some((pat) => pat.match(normPath));
2227
}

src/lib/validation/exports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22
import type { ProjectReflection } from "../models";
33
import type { Logger } from "../utils";
44
import { discoverAllReferenceTypes } from "../utils/reflections";

src/test/TestLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Logger, LogLevel, removeIf } from "../lib/utils";
22
import { fail, ok } from "assert";
3-
import * as ts from "typescript";
3+
import ts from "typescript";
44
import { resolve } from "path";
55

66
const levelMap: Record<LogLevel, string> = {

src/test/comments.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { deepStrictEqual as equal } from "assert";
2-
import * as ts from "typescript";
2+
import ts from "typescript";
33
import type { CommentParserConfig } from "../lib/converter/comments";
44

55
import { lexBlockComment } from "../lib/converter/comments/blockLexer";
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import * as ts from "typescript";
1+
import ts from "typescript";
22

33
export const ActionSet: ts.server.ActionSet;

src/test/programs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { deepStrictEqual as equal } from "assert";
22
import { join } from "path";
3-
import * as ts from "typescript";
3+
import ts from "typescript";
44
import {
55
Application,
66
EntryPointStrategy,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"module": "CommonJS",
3+
"module": "Node16",
44
"lib": ["es2020"],
55
"target": "es2020",
66

0 commit comments

Comments
 (0)