Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Commit 2467a72

Browse files
committed
Bump to 12.0.4
1 parent 3486764 commit 2467a72

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "react-mde",
3-
"version": "12.0.3",
3+
"version": "12.0.4",
44
"description": "React Markdown Editor",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
7-
"types": "./lib/definitions/index.d.ts",
7+
"types": "./dist/index.d.ts",
88
"scripts": {
99
"test": "jest",
1010
"dev": "vite",

rollup.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import resolve from "@rollup/plugin-node-resolve";
22
import commonjs from "@rollup/plugin-commonjs";
33
import typescript from "@rollup/plugin-typescript";
4+
import dts from "rollup-plugin-dts";
45

56
const packageJson = require("./package.json");
67

@@ -24,5 +25,10 @@ export default [
2425
commonjs(),
2526
typescript({ tsconfig: "./tsconfig.json" })
2627
]
28+
},
29+
{
30+
input: "dist/esm/types/src/index.d.ts",
31+
output: [{ file: "dist/index.d.ts", format: "esm" }],
32+
plugins: [dts()]
2733
}
2834
];

0 commit comments

Comments
 (0)