|
1 | 1 | { |
2 | 2 | "name": "@smastrom/react-rating", |
3 | | - "version": "1.3.1", |
| 3 | + "version": "1.3.2", |
4 | 4 | "private": false, |
5 | 5 | "keywords": [ |
6 | 6 | "react", |
|
35 | 35 | "exports": { |
36 | 36 | ".": { |
37 | 37 | "import": "./dist/index.mjs", |
38 | | - "require": "./dist/index.js" |
| 38 | + "require": "./dist/index.js", |
| 39 | + "types": "./dist/index.d.ts" |
39 | 40 | }, |
40 | | - "./style.css": "./style.css", |
41 | | - "./style": "./style.css", |
42 | | - "./styles.css": "./style.css", |
43 | | - "./styles": "./style.css" |
| 41 | + "./style.css": "./dist/style.css", |
| 42 | + "./style": "./dist/style.css", |
| 43 | + "./styles.css": "./dist/style.css", |
| 44 | + "./styles": "./dist/style.css" |
44 | 45 | }, |
45 | 46 | "main": "dist/index.js", |
46 | 47 | "module": "dist/index.mjs", |
47 | | - "browser": "dist/index.js", |
48 | 48 | "types": "dist/index.d.ts", |
49 | | - "style": "style.css", |
50 | 49 | "files": [ |
51 | | - "dist", |
52 | | - "style.css" |
| 50 | + "dist/*" |
53 | 51 | ], |
54 | 52 | "scripts": { |
55 | | - "prebuild": "rimraf dist style.css src/exportedTypes.d.ts", |
56 | | - "build": "tsc && vite build && pnpm declare", |
57 | | - "postbuild": "cpy dist/style.css ./ --flat && cpy src/exportedTypes.d.ts dist --rename index.d.ts --flat && rimraf src/exportedTypes.d.ts dist/style.css", |
| 53 | + "build": "rm -rf dist && tsc && vite build", |
| 54 | + "postbuild": "./scripts/add-use-client.sh", |
58 | 55 | "coverage": "vitest run --coverage", |
59 | | - "declare": "tsc src/exportedTypes --declaration --emitDeclarationOnly", |
60 | 56 | "dev": "vite", |
61 | 57 | "test": "vitest", |
62 | 58 | "test:ct": "playwright test -c playwright-ct.config.ts", |
|
71 | 67 | "devDependencies": { |
72 | 68 | "@playwright/experimental-ct-react": "1.29.0", |
73 | 69 | "@playwright/test": "1.29.0", |
74 | | - "@rollup/plugin-terser": "^0.4.1", |
75 | | - "@testing-library/dom": "^9.2.0", |
76 | | - "@testing-library/jest-dom": "^5.16.5", |
| 70 | + "@rollup/plugin-terser": "^0.4.3", |
| 71 | + "@testing-library/dom": "^9.3.1", |
| 72 | + "@testing-library/jest-dom": "^5.17.0", |
77 | 73 | "@testing-library/react": "^14.0.0", |
78 | 74 | "@testing-library/user-event": "^14.4.3", |
79 | | - "@types/node": "^18.16.1", |
80 | | - "@types/react": "^18.2.0", |
81 | | - "@types/react-dom": "^18.2.1", |
82 | | - "@types/testing-library__jest-dom": "^5.14.5", |
83 | | - "@typescript-eslint/eslint-plugin": "^5.59.1", |
84 | | - "@typescript-eslint/parser": "^5.59.1", |
| 75 | + "@types/node": "^18.17.5", |
| 76 | + "@types/react": "^18.2.20", |
| 77 | + "@types/react-dom": "^18.2.7", |
| 78 | + "@types/testing-library__jest-dom": "^5.14.9", |
| 79 | + "@typescript-eslint/eslint-plugin": "^5.62.0", |
| 80 | + "@typescript-eslint/parser": "^5.62.0", |
85 | 81 | "@vitejs/plugin-react": "^3.1.0", |
86 | 82 | "@vitest/coverage-c8": "^0.29.8", |
87 | 83 | "cpy-cli": "^4.2.0", |
88 | | - "eslint": "^8.39.0", |
89 | | - "eslint-plugin-react": "^7.32.2", |
| 84 | + "eslint": "^8.47.0", |
| 85 | + "eslint-plugin-react": "^7.33.2", |
90 | 86 | "eslint-plugin-react-hooks": "^4.6.0", |
91 | 87 | "husky": "^8.0.3", |
92 | | - "jsdom": "^21.1.1", |
93 | | - "lint-staged": "^13.2.2", |
| 88 | + "jsdom": "^21.1.2", |
| 89 | + "lint-staged": "^13.3.0", |
94 | 90 | "prettier": "^2.8.8", |
95 | 91 | "react": "^18.2.0", |
96 | 92 | "react-dom": "^18.2.0", |
97 | | - "rimraf": "^4.4.1", |
98 | | - "typescript": "^5.0.4", |
99 | | - "vite": "^4.3.3", |
100 | | - "vitest": "^0.29.8" |
| 93 | + "typescript": "^5.1.6", |
| 94 | + "vite": "^4.4.9", |
| 95 | + "vitest": "^0.29.8", |
| 96 | + "vite-plugin-dts": "^3.5.2" |
101 | 97 | }, |
102 | 98 | "peerDependencies": { |
103 | | - "react": ">=17", |
104 | | - "react-dom": ">=17" |
| 99 | + "react": ">=18", |
| 100 | + "react-dom": ">=18" |
105 | 101 | } |
106 | 102 | } |
0 commit comments