Skip to content

Commit

Permalink
fix: Do not generate .d.ts files, which break `docusaurus write-trans…
Browse files Browse the repository at this point in the history
…lations`, closes #145, #129, #163, #167
  • Loading branch information
cmfcmf committed Feb 25, 2023
1 parent d537cec commit c09cc94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/docusaurus-search-local/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Expand Down
2 changes: 1 addition & 1 deletion packages/example-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}],
]
Expand Down

0 comments on commit c09cc94

Please sign in to comment.