From 4b53094b716ea7f3651795e8392342f113a7d23b Mon Sep 17 00:00:00 2001 From: Tobias Sittenauer Date: Tue, 13 Aug 2024 11:30:19 +0200 Subject: [PATCH] fix: props are missing fix: props are still missing fix: wrong path in rollup config fix: path to types in package.json --- package.json | 2 +- rollup.config.mjs | 2 +- src/types/index.d.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5772f4151..2c36216a6 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "main": "lib/index.js", "module": "dist/react-big-calendar.esm.js", "style": "lib/css/react-big-calendar.css", - "types": "dist/index.d.ts", + "types": "dist/types/index.d.ts", "files": [ "lib/", "dist/", diff --git a/rollup.config.mjs b/rollup.config.mjs index a55f8d188..3c4b99414 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -94,7 +94,7 @@ export default [ // TypeScript declarations build { - input: 'src/types/index.d.ts', + input: './src/types/index.d.ts', output: { file: 'dist/types/index.d.ts', format: 'es', diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 4f0c33115..5a2ed4853 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -21,7 +21,7 @@ import { } from 'date-arithmetic' import { Validator } from 'prop-types' import * as React from 'react' -import { withDragAndDrop } from 'src/types/lib/addons/dragAndDrop' +import withDragAndDrop from './lib/addons/dragAndDrop' type Omit = Pick> @@ -690,7 +690,7 @@ export interface DayProps { } export class Day extends React.Component {} -export * from 'src/types/lib/addons/dragAndDrop' +export * from './lib/addons/dragAndDrop' export { withDragAndDrop } // Turn off automatic exports