Skip to content

Commit

Permalink
fix: props are missing
Browse files Browse the repository at this point in the history
fix: props are still missing

fix: wrong path in rollup config

fix: path to types in package.json

fix: still wrong
  • Loading branch information
Tobias Sittenauer committed Aug 13, 2024
1 parent 3367543 commit 1749888
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default [

// TypeScript declarations build
{
input: 'src/types/index.d.ts',
input: path.resolve(__dirname, 'src/types/index.d.ts'),
output: {
file: 'dist/types/index.d.ts',
format: 'es',
Expand Down
4 changes: 2 additions & 2 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>

Expand Down Expand Up @@ -690,7 +690,7 @@ export interface DayProps {
}
export class Day extends React.Component<DayProps> {}

export * from 'src/types/lib/addons/dragAndDrop'
export * from './lib/addons/dragAndDrop'
export { withDragAndDrop }

// Turn off automatic exports
Expand Down

0 comments on commit 1749888

Please sign in to comment.