Skip to content

Commit e5e2dab

Browse files
committed
fix: plugin to use module output
1 parent 5aaa248 commit e5e2dab

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.changeset/puny-deer-tan.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"open-rpc-docusaurus-plugin-beta": patch
3+
---
4+
5+
Docusaurus plugin emits module esm type correction

packages/docusaurus-plugin/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "commonjs",
4+
"module": "ES2022",
55
"lib": [
66
"ES2022",
77
"DOM"
88
],
99
"moduleResolution": "node",
10+
"emitDeclarationOnly": true,
1011
"declaration": true,
1112
"declarationMap": true,
1213
"outDir": "./dist",

packages/markdown-generator/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
"dist",
3939
"build.ts"
4040
]
41-
}
41+
}

0 commit comments

Comments
 (0)