|
1 | 1 | { |
2 | 2 | "name": "@aldabil/react-scheduler", |
3 | | - "version": "2.9.5", |
| 3 | + "version": "3.0.0", |
4 | 4 | "description": "React scheduler component based on Material-UI & date-fns", |
5 | 5 | "files": [ |
6 | 6 | "*" |
7 | 7 | ], |
| 8 | + "type": "module", |
8 | 9 | "scripts": { |
9 | | - "start": "react-scripts start", |
10 | | - "webpack": "webpack", |
11 | | - "pack": "rm -rf dist && npm run webpack && npm run post:pack", |
12 | | - "local:pack": "npm run pack && cd dist && npm pack && mv *.tgz ../", |
13 | | - "post:pack": "node ./scripts/post-pack.js", |
| 10 | + "start": "vite serve", |
| 11 | + "build": "vite build --mode production", |
| 12 | + "postbuild": "node ./scripts/post-pack.js", |
| 13 | + "local:pack": "npm run build && cd dist && npm pack && mv *.tgz ../", |
14 | 14 | "format": "prettier --check \"**/*.{js,jsx,ts,tsx,json}\"", |
15 | 15 | "format:write": "prettier --write \"**/*.{js,jsx,ts,tsx,json}\"", |
16 | 16 | "lint": "npm run types && eslint .", |
|
22 | 22 | "test:watch": "jest --watch", |
23 | 23 | "test:ci": "jest --ci" |
24 | 24 | }, |
| 25 | + "exports": { |
| 26 | + ".": { |
| 27 | + "import": "./dist/index.js", |
| 28 | + "require": "./dist/index.umd.cjs" |
| 29 | + }, |
| 30 | + "./types": { |
| 31 | + "import": "./dist/types.d.ts" |
| 32 | + } |
| 33 | + }, |
25 | 34 | "lint-staged": { |
26 | 35 | "**/*.{ts,js,tsx,jsx}": [ |
27 | 36 | "npm run lint" |
|
42 | 51 | ], |
43 | 52 | "author": "Aldabil", |
44 | 53 | "license": "MIT", |
45 | | - "homepage": "", |
46 | 54 | "bugs": { |
47 | 55 | "url": "https://github.com/aldabil21/react-scheduler/issues" |
48 | 56 | }, |
49 | 57 | "devDependencies": { |
50 | | - "@emotion/react": "^11.10.4", |
51 | | - "@emotion/styled": "^11.10.4", |
52 | | - "@mui/icons-material": "^5.10.6", |
53 | | - "@mui/material": "^5.10.8", |
54 | | - "@mui/x-date-pickers": "^6.19.0", |
55 | | - "@testing-library/jest-dom": "^5.16.5", |
56 | | - "@testing-library/react": "^13.4.0", |
57 | | - "@testing-library/user-event": "^14.4.3", |
58 | | - "@types/jest": "^27.0.2", |
59 | | - "@types/react-dom": "^18.0.6", |
60 | | - "@typescript-eslint/eslint-plugin": "^5.39.0", |
61 | | - "@typescript-eslint/parser": "^5.39.0", |
62 | | - "date-fns": "^3.2.0", |
63 | | - "eslint": "^8.24.0", |
64 | | - "eslint-plugin-react": "^7.31.8", |
65 | | - "husky": "^8.0.0", |
66 | | - "jest": "^29.1.2", |
67 | | - "jest-environment-jsdom": "^29.1.2", |
68 | | - "lint-staged": "^13.0.3", |
69 | | - "prettier": "^2.7.1", |
70 | | - "react": "^18.2.0", |
71 | | - "react-dom": "^18.2.0", |
72 | | - "react-scripts": "^5.0.1", |
| 58 | + "@emotion/react": "^11.14.0", |
| 59 | + "@emotion/styled": "^11.14.0", |
| 60 | + "@eslint/compat": "^1.2.6", |
| 61 | + "@eslint/eslintrc": "^3.2.0", |
| 62 | + "@eslint/js": "^9.20.0", |
| 63 | + "@mui/icons-material": ">=6.4.5", |
| 64 | + "@mui/material": ">=6.4.5", |
| 65 | + "@mui/x-date-pickers": ">=7.27.0", |
| 66 | + "@testing-library/dom": "^10.4.0", |
| 67 | + "@testing-library/jest-dom": "^6.6.3", |
| 68 | + "@testing-library/react": "^16.2.0", |
| 69 | + "@testing-library/user-event": "^14.6.1", |
| 70 | + "@types/jest": "^29.5.14", |
| 71 | + "@types/react": "^19.0.10", |
| 72 | + "@types/react-dom": "^19.0.4", |
| 73 | + "@typescript-eslint/parser": "^8.24.1", |
| 74 | + "@vitejs/plugin-react": "^4.3.4", |
| 75 | + "date-fns": ">=4.1.0", |
| 76 | + "eslint": "^9.20.1", |
| 77 | + "eslint-import-resolver-typescript": "^3.8.3", |
| 78 | + "eslint-plugin-import": "^2.31.0", |
| 79 | + "eslint-plugin-jsx-a11y": "^6.10.2", |
| 80 | + "eslint-plugin-promise": "^7.2.1", |
| 81 | + "eslint-plugin-react": "^7.37.4", |
| 82 | + "eslint-plugin-react-hooks": "^5.1.0", |
| 83 | + "eslint-plugin-react-refresh": "^0.4.19", |
| 84 | + "globals": "^16.0.0", |
| 85 | + "husky": "^9.1.7", |
| 86 | + "jest": "^29.7.0", |
| 87 | + "jest-environment-jsdom": "^29.7.0", |
| 88 | + "lint-staged": "^15.4.3", |
| 89 | + "prettier": "^3.5.1", |
| 90 | + "react": ">=19.0.0", |
| 91 | + "react-dom": "^19.0.0", |
73 | 92 | "rrule": "^2.8.1", |
74 | | - "ts-jest": "^29.0.3", |
75 | | - "ts-loader": "^9.4.1", |
76 | | - "ts-node": "^10.9.1", |
77 | | - "typescript": "^4.8.4", |
78 | | - "webpack-cli": "^4.7.0", |
79 | | - "webpack-node-externals": "^3.0.0" |
| 93 | + "ts-jest": "^29.2.5", |
| 94 | + "ts-node": "^10.9.2", |
| 95 | + "typescript": "^5.7.3", |
| 96 | + "typescript-eslint": "^8.24.1", |
| 97 | + "vite": "^6.1.1", |
| 98 | + "vite-plugin-checker": "^0.9.0", |
| 99 | + "vite-plugin-dts": "^4.5.0", |
| 100 | + "vite-plugin-svgr": "^4.3.0", |
| 101 | + "vite-tsconfig-paths": "^5.1.4" |
80 | 102 | }, |
81 | 103 | "peerDependencies": { |
82 | | - "@mui/icons-material": ">=5.0.0", |
83 | | - "@mui/material": ">=5.0.0", |
84 | | - "@mui/x-date-pickers": ">=6.19.0", |
85 | | - "date-fns": ">=3.2.0", |
86 | | - "react": ">=17.0.0", |
| 104 | + "@mui/icons-material": ">=6.0.0", |
| 105 | + "@mui/material": ">=6.0.0", |
| 106 | + "@mui/x-date-pickers": ">=7.0.0", |
| 107 | + "date-fns": ">=4.0.0", |
| 108 | + "react": ">=18.0.0", |
| 109 | + "react-dom": ">=18.0.0", |
87 | 110 | "rrule": ">=2.8.1" |
88 | 111 | }, |
89 | 112 | "peerDependenciesMeta": { |
|
0 commit comments