Skip to content

Commit

Permalink
fix: resolve build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
miyushan committed Jul 7, 2024
1 parent cffb458 commit 64aa184
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-steaks-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"mui-daterange-picker-plus": patch
---

resolve build issue
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
node_modules
dist
.vscode
index.d.mts
index.d.ts
index.js
index.mjs
dist
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ src
pnpm-lock.yaml
tsconfig.json
.vscode
Screenshot-Desktop.png
README.md
Screenshot-Desktop.png
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ npm install mui-daterange-picker-plus
```jsx
import { useState } from "react";
import Button from "@mui/material/Button";
import { PickerModal } from "mui-daterange-picker-plus";
import type { DateRange } from "mui-daterange-picker-plus";
import { PickerModal } from "mui-daterange-picker-plus/dist";
import type { DateRange } from "mui-daterange-picker-plus/dist";

export default function YourComponent() {
// state + handlers for the Modal
Expand Down Expand Up @@ -123,8 +123,8 @@ export default function YourComponent() {

```jsx
import { useState } from "react";
import { PickerBase } from "mui-daterange-picker-plus";
import type { DateRange } from "mui-daterange-picker-plus";
import { PickerBase } from "mui-daterange-picker-plus/dist";
import type { DateRange } from "mui-daterange-picker-plus/dist";

export default function YourComponent() {
// state + handlers for the DateRange Value
Expand All @@ -148,8 +148,8 @@ export default function YourComponent() {
```jsx
import { useState } from "react";
import Button from "@mui/material/Button";
import { PickerModal } from "mui-daterange-picker-plus";
import type { DateRange } from "mui-daterange-picker-plus";
import { PickerModal } from "mui-daterange-picker-plus/dist";
import type { DateRange } from "mui-daterange-picker-plus/dist";
import ArrowCircleRightIcon from "@mui/icons-material/ArrowCircleRight";
import ArrowCircleDownIcon from "@mui/icons-material/ArrowCircleDown";

Expand Down Expand Up @@ -228,8 +228,8 @@ export default function YourComponent() {

```jsx
import { useState } from "react";
import { PickerBase } from "mui-daterange-picker-plus";
import type { DateRange } from "mui-daterange-picker-plus";
import { PickerBase } from "mui-daterange-picker-plus/dist";
import type { DateRange } from "mui-daterange-picker-plus/dist";

export default function YourComponent() {
// state + handlers for the DateRange Value
Expand Down
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"node_modules"
],
"description": "A modern Typescript/JavaScript library for simplifying date-range related operations and enhancing date-picker components in web applications. It provides a range of utilities, including date formatting, parsing, and a fully customizable date range picker with support for various locales.",
"main": "./index.js",
"module": "./index.mjs",
"types": "./index.d.ts",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts --out-dir ./",
"build": "tsup src/index.ts --format cjs,esm --dts",
"lint": "tsc",
"ci": "pnpm run lint && pnpm run build",
"release": "pnpm run lint && pnpm run build && changeset publish"
Expand All @@ -41,12 +41,6 @@
"tsup": "^8.0.1",
"typescript": "^5.3.3"
},
"files": [
"./index.d.mts",
"./index.d.ts",
"./index.js",
"./index.mjs"
],
"keywords": [
"mui-date-range-picker",
"date-range-picker",
Expand Down

0 comments on commit 64aa184

Please sign in to comment.