Skip to content

Commit

Permalink
fix typedoc 0.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
DiFuks committed Aug 29, 2023
1 parent 86a5ac9 commit f35003b
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 29 deletions.
28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarn/versions/7c8e8bbb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
releases:
typedoc-theme-hierarchy: patch
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ npmRegistryServer: "https://registry.npmjs.com/"
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-3.6.1.cjs
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@
"mini-css-extract-plugin": "^2.4.5",
"terser-webpack-plugin": "^5.3.3",
"ts-loader": "^9.4.4",
"typedoc": "^0.24.8",
"typedoc": "0.25.0",
"typescript": "5.0.4",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1"
},
"peerDependencies": {
"typedoc": "^0.24.0"
"typedoc": ">=0.24.0"
},
"scripts": {
"build": "webpack && tsc --project tsconfig.build.json",
"lint": "eslint \"./**/*.{ts,tsx,js}\"",
"prepublishOnly": "yarn lint && yarn build"
},
"dependencies": {
"fs-extra": "^10.0.0"
"fs-extra": "11.1.1"
},
"packageManager": "yarn@3.6.1"
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ npm i typedoc-theme-hierarchy@^2.0.0 -D
# For typedoc ^0.23.6
npm i typedoc-theme-hierarchy@^3.0.0 -D

# For typedoc ^0.24.0
# For typedoc >=0.24.0
npm i typedoc-theme-hierarchy@^4.0.0 -D
```

Expand Down
12 changes: 4 additions & 8 deletions src/themes/OverrideTheme.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path';

import { copy } from 'fs-extra';
import fse from 'fs-extra';
import { DefaultTheme, PageEvent, Reflection, RendererEvent } from 'typedoc';
import { Renderer } from 'typedoc/dist/lib/output/renderer';

Expand All @@ -12,15 +12,11 @@ export class OverrideTheme extends DefaultTheme {
public constructor(renderer: Renderer) {
super(renderer);

this.listenTo(this.owner, RendererEvent.END, async () => {
const out =
this.application.options.getValue('out') ||
path.join(process.cwd(), './docs');

await copy(
this.listenTo(this.owner, RendererEvent.END, (event: RendererEvent) => {
fse.copySync(
// eslint-disable-next-line unicorn/prefer-module
path.join(require.resolve('typedoc-theme-hierarchy'), '../assets'),
path.join(out, '/assets'),
path.join(event.outputDirectory, 'assets'),
);
});
}
Expand Down
34 changes: 17 additions & 17 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2721,14 +2721,14 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:^10.0.0":
version: 10.0.0
resolution: "fs-extra@npm:10.0.0"
"fs-extra@npm:11.1.1":
version: 11.1.1
resolution: "fs-extra@npm:11.1.1::__archiveUrl=https%3A%2F%2Fregistry.npmjs.org%2Ffs-extra%2F-%2Ffs-extra-11.1.1.tgz"
dependencies:
graceful-fs: ^4.2.0
jsonfile: ^6.0.1
universalify: ^2.0.0
checksum: 5285a3d8f34b917cf2b66af8c231a40c1623626e9d701a20051d3337be16c6d7cac94441c8b3732d47a92a2a027886ca93c69b6a4ae6aee3c89650d2a8880c0a
checksum: fb883c68245b2d777fbc1f2082c9efb084eaa2bbf9fddaa366130d196c03608eebef7fb490541276429ee1ca99f317e2d73e96f5ca0999eefedf5a624ae1edfd
languageName: node
linkType: hard

Expand Down Expand Up @@ -4038,12 +4038,12 @@ __metadata:
languageName: node
linkType: hard

"minimatch@npm:^9.0.0":
version: 9.0.1
resolution: "minimatch@npm:9.0.1::__archiveUrl=https%3A%2F%2Fregistry.npmjs.org%2Fminimatch%2F-%2Fminimatch-9.0.1.tgz"
"minimatch@npm:^9.0.3":
version: 9.0.3
resolution: "minimatch@npm:9.0.3::__archiveUrl=https%3A%2F%2Fregistry.npmjs.org%2Fminimatch%2F-%2Fminimatch-9.0.3.tgz"
dependencies:
brace-expansion: ^2.0.1
checksum: 97f5f5284bb57dc65b9415dec7f17a0f6531a33572193991c60ff18450dcfad5c2dad24ffeaf60b5261dccd63aae58cc3306e2209d57e7f88c51295a532d8ec3
checksum: 253487976bf485b612f16bf57463520a14f512662e592e95c571afdab1442a6a6864b6c88f248ce6fc4ff0b6de04ac7aa6c8bb51e868e99d1d65eb0658a708b5
languageName: node
linkType: hard

Expand Down Expand Up @@ -5858,32 +5858,32 @@ __metadata:
css-minimizer-webpack-plugin: ^3.3.1
eslint: ^8.18.0
eslint-config-fuks: ^1.6.7
fs-extra: ^10.0.0
fs-extra: 11.1.1
mini-css-extract-plugin: ^2.4.5
terser-webpack-plugin: ^5.3.3
ts-loader: ^9.4.4
typedoc: ^0.24.8
typedoc: 0.25.0
typescript: 5.0.4
webpack: ^5.65.0
webpack-cli: ^4.9.1
peerDependencies:
typedoc: ^0.24.0
typedoc: ">=0.24.0"
languageName: unknown
linkType: soft

"typedoc@npm:^0.24.8":
version: 0.24.8
resolution: "typedoc@npm:0.24.8::__archiveUrl=https%3A%2F%2Fregistry.npmjs.org%2Ftypedoc%2F-%2Ftypedoc-0.24.8.tgz"
"typedoc@npm:0.25.0":
version: 0.25.0
resolution: "typedoc@npm:0.25.0::__archiveUrl=https%3A%2F%2Fregistry.npmjs.org%2Ftypedoc%2F-%2Ftypedoc-0.25.0.tgz"
dependencies:
lunr: ^2.3.9
marked: ^4.3.0
minimatch: ^9.0.0
minimatch: ^9.0.3
shiki: ^0.14.1
peerDependencies:
typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x
typescript: 4.6.x || 4.7.x || 4.8.x || 4.9.x || 5.0.x || 5.1.x || 5.2.x
bin:
typedoc: bin/typedoc
checksum: a46a14497f789fb3594e6c3af2e45276934ac46df40b7ed15a504ee51dc7a8013a2ffb3a54fd73abca6a2b71f97d3ec9ad356fa9aa81d29743e4645a965a2ae0
checksum: f0c5980017858969f037b136d9f305fa70162be891e7b169a92701cff67e1eed5c33895121265ec7da5b4a19d0042e649c103a6719c2b42736325b22fd85ff6a
languageName: node
linkType: hard

Expand Down

0 comments on commit f35003b

Please sign in to comment.