|
2 | 2 | "name": "react-linear-gradient-picker", |
3 | 3 | "version": "4.0.0", |
4 | 4 | "description": "React linear gradient picker", |
5 | | - "main": "dist/index.js", |
6 | | - "types": "dist/src/index.d.ts", |
| 5 | + "module": "./dist/index.mjs", |
| 6 | + "main": "./dist/index.js", |
| 7 | + "types": "./dist/index.d.ts", |
| 8 | + "files": [ |
| 9 | + "dist" |
| 10 | + ], |
| 11 | + "exports": { |
| 12 | + ".": { |
| 13 | + "types": "./dist/index.d.ts", |
| 14 | + "import": "./dist/index.mjs", |
| 15 | + "require": "./dist/index.js" |
| 16 | + }, |
| 17 | + "./index.css": "./dist/index.css", |
| 18 | + "./package.json": "./package.json", |
| 19 | + "./dist/*": "./dist/*" |
| 20 | + }, |
7 | 21 | "scripts": { |
8 | 22 | "storybook": "storybook dev -p 7006", |
9 | 23 | "build-storybook": "storybook build", |
10 | | - "test": "jest", |
11 | | - "test:watch": "jest --watch", |
| 24 | + "test": "vitest run", |
| 25 | + "test:watch": "vitest", |
12 | 26 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx", |
13 | 27 | "lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx --fix", |
14 | 28 | "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,scss}\"", |
15 | 29 | "fix": "yarn format && yarn lint:fix", |
16 | | - "build": "rspack build", |
| 30 | + "build": "vite build", |
17 | 31 | "typecheck": "tsc --noEmit", |
18 | 32 | "ci": "yarn lint && yarn typecheck && yarn test && yarn build", |
19 | 33 | "deploy-storybook": "storybook-to-ghpages", |
|
35 | 49 | }, |
36 | 50 | "homepage": "https://github.com/odedglas/react-linear-gradient-picker#readme", |
37 | 51 | "peerDependencies": { |
38 | | - "react": "^16.9.0 || ^17.0.0 || ^18.0.0", |
39 | | - "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0" |
| 52 | + "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", |
| 53 | + "react-dom": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" |
40 | 54 | }, |
41 | 55 | "devDependencies": { |
42 | | - "@babel/core": "^7.18.0", |
43 | | - "@babel/plugin-transform-runtime": "^7.18.0", |
44 | | - "@babel/preset-env": "^7.18.0", |
45 | | - "@babel/preset-react": "^7.17.0", |
46 | | - "@babel/preset-typescript": "^7.23.3", |
47 | | - "@rspack/cli": "^1.2.8", |
48 | | - "@rspack/core": "^1.2.8", |
49 | | - "@storybook/addon-essentials": "^7.6.17", |
50 | | - "@storybook/addon-links": "^7.6.17", |
51 | | - "@storybook/addon-webpack5-compiler-swc": "^3.0.0", |
52 | | - "@storybook/cli": "^7.6.17", |
53 | | - "@storybook/preset-scss": "^1.0.3", |
54 | | - "@storybook/react": "^7.6.17", |
55 | | - "@storybook/react-webpack5": "^7.6.17", |
| 56 | + "@storybook/addon-links": "^9.1.5", |
| 57 | + "@storybook/react-vite": "^9.1.5", |
56 | 58 | "@storybook/storybook-deployer": "^2.8.1", |
57 | | - "@swc/helpers": "^0.5.3", |
58 | | - "@testing-library/jest-dom": "^6.1.5", |
59 | | - "@testing-library/react": "^14.1.2", |
60 | | - "@testing-library/user-event": "^14.5.1", |
61 | | - "@types/jest": "^29.5.12", |
| 59 | + "@testing-library/dom": "^10.4.1", |
| 60 | + "@testing-library/jest-dom": "^6.8.0", |
| 61 | + "@testing-library/react": "^16.3.0", |
| 62 | + "@testing-library/user-event": "^14.6.1", |
62 | 63 | "@types/node": "^22.13.14", |
63 | 64 | "@types/react": "^19.0.12", |
64 | 65 | "@types/react-color": "^3.0.13", |
65 | 66 | "@types/react-dom": "^19.0.4", |
66 | 67 | "@typescript-eslint/eslint-plugin": "^8.28.0", |
67 | 68 | "@typescript-eslint/parser": "^8.28.0", |
68 | | - "babel-jest": "^29.7.0", |
69 | | - "classnames": "^2.3.1", |
70 | | - "css-loader": "^6.7.1", |
| 69 | + "@vitejs/plugin-react": "^4.6.0", |
71 | 70 | "eslint": "^8.57.0", |
72 | 71 | "eslint-config-prettier": "^9.1.0", |
73 | 72 | "eslint-plugin-import": "^2.29.1", |
74 | 73 | "eslint-plugin-react": "^7.34.0", |
75 | 74 | "eslint-plugin-react-hooks": "^4.6.0", |
76 | | - "identity-obj-proxy": "^3.0.0", |
77 | | - "jest": "^29.7.0", |
78 | | - "jest-environment-jsdom": "^29.7.0", |
| 75 | + "jsdom": "^26.1.0", |
79 | 76 | "prettier": "^3.2.5", |
80 | | - "prop-types": "^15.7.2", |
81 | 77 | "rc-color-picker": "^1.1.5", |
82 | 78 | "react": "^18.2.0", |
83 | 79 | "react-color": "^2.12.0", |
84 | 80 | "react-dom": "^18.2.0", |
85 | 81 | "sass": "^1.52.1", |
86 | | - "sass-loader": "^8.0.2", |
87 | | - "storybook": "^7.6.17", |
88 | | - "style-loader": "^1.0.0", |
89 | | - "svg-url-loader": "^3.0.2", |
90 | | - "ts-node": "^10.9.2", |
91 | | - "typescript": "^5.8.2" |
92 | | - } |
| 82 | + "storybook": "^9.1.5", |
| 83 | + "typescript": "^5.8.2", |
| 84 | + "vite": "^7.1.5", |
| 85 | + "vite-plugin-dts": "^4.5.4", |
| 86 | + "vitest": "^3.2.4" |
| 87 | + }, |
| 88 | + "packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610" |
93 | 89 | } |
0 commit comments