From 2467a7219f607ed8a082b97298fd6fb4ac464593 Mon Sep 17 00:00:00 2001 From: andrerpena Date: Mon, 2 May 2022 14:21:30 +0100 Subject: [PATCH] Bump to 12.0.4 --- package.json | 4 ++-- rollup.config.js | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7986058..72bbf74 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "react-mde", - "version": "12.0.3", + "version": "12.0.4", "description": "React Markdown Editor", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", - "types": "./lib/definitions/index.d.ts", + "types": "./dist/index.d.ts", "scripts": { "test": "jest", "dev": "vite", diff --git a/rollup.config.js b/rollup.config.js index 1f3aed0..efce825 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,6 +1,7 @@ import resolve from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; import typescript from "@rollup/plugin-typescript"; +import dts from "rollup-plugin-dts"; const packageJson = require("./package.json"); @@ -24,5 +25,10 @@ export default [ commonjs(), typescript({ tsconfig: "./tsconfig.json" }) ] + }, + { + input: "dist/esm/types/src/index.d.ts", + output: [{ file: "dist/index.d.ts", format: "esm" }], + plugins: [dts()] } ];