diff --git a/packages/docusaurus-search-local/tsconfig.json b/packages/docusaurus-search-local/tsconfig.json index bbe72a5..86640eb 100644 --- a/packages/docusaurus-search-local/tsconfig.json +++ b/packages/docusaurus-search-local/tsconfig.json @@ -4,7 +4,8 @@ "module": "CommonJS", "lib": ["ESNext", "DOM"], - "declaration": true, + // Declarations break Docusaurus' 'write-translations' command (#163, #129, #145) + "declaration": false, "declarationMap": false, "jsx": "react", diff --git a/packages/example-docs/docusaurus.config.js b/packages/example-docs/docusaurus.config.js index d0c65b4..318668d 100644 --- a/packages/example-docs/docusaurus.config.js +++ b/packages/example-docs/docusaurus.config.js @@ -125,7 +125,7 @@ module.exports = { ], ], plugins: [ - [require("path").join(__dirname, "..", "..", "node_modules", "@cmfcmf", "docusaurus-search-local"), { + [require.resolve("@cmfcmf/docusaurus-search-local"), { indexPages: true }], ]