From 8aa608d7231b3901ee21c61ef5c7cfb440e6ebd1 Mon Sep 17 00:00:00 2001 From: miyushan Date: Sat, 6 Jul 2024 20:25:43 +0530 Subject: [PATCH] fix: resolve build issues --- .changeset/light-peas-listen.md | 5 +++++ .gitignore | 6 +++++- .npmignore | 3 ++- package.json | 15 +++++++++------ 4 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 .changeset/light-peas-listen.md diff --git a/.changeset/light-peas-listen.md b/.changeset/light-peas-listen.md new file mode 100644 index 0000000..a4e6f3d --- /dev/null +++ b/.changeset/light-peas-listen.md @@ -0,0 +1,5 @@ +--- +"mui-daterange-picker-plus": patch +--- + +resolve build issues diff --git a/.gitignore b/.gitignore index c2dd9a5..b05cf9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ node_modules dist -.vscode \ No newline at end of file +.vscode +index.d.mts +index.d.ts +index.js +index.mjs \ No newline at end of file diff --git a/.npmignore b/.npmignore index 3bf606e..d678e3f 100644 --- a/.npmignore +++ b/.npmignore @@ -4,4 +4,5 @@ src pnpm-lock.yaml tsconfig.json .vscode -Screenshot-Desktop.png \ No newline at end of file +Screenshot-Desktop.png +README.md \ No newline at end of file diff --git a/package.json b/package.json index 6ae7b8f..6e03a7b 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": false, "version": "1.0.4", "declaration": true, - "outDir": "./dist", + "outDir": "./", "include": [ "src" ], @@ -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": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/index.d.ts", + "main": "./index.js", + "module": "./index.mjs", + "types": "./index.d.ts", "scripts": { - "build": "tsup src/index.ts --format cjs,esm --dts", + "build": "tsup src/index.ts --format cjs,esm --dts --out-dir ./", "lint": "tsc", "ci": "pnpm run lint && pnpm run build", "release": "pnpm run lint && pnpm run build && changeset publish" @@ -42,7 +42,10 @@ "typescript": "^5.3.3" }, "files": [ - "dist/**/*" + "./index.d.mts", + "./index.d.ts", + "./index.js", + "./index.mjs" ], "keywords": [ "mui-date-range-picker",