refactor(plugin-debug): migrate package to TypeScript (#5465)

* Complete migration

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Fix JSON root name

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
Joshua Chen 2021-09-02 21:58:28 +08:00 committed by GitHub
parent 402a5e1f88
commit 6b7f3e8553
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 130 additions and 39 deletions

View file

@ -24,7 +24,7 @@ export default function pluginDebug({
name: 'docusaurus-plugin-debug',
getThemePath() {
return path.resolve(__dirname, '../src/theme');
return path.resolve(__dirname, '../lib/theme');
},
async contentLoaded({actions: {createData, addRoute}, allContent}) {