|
2 | 2 | "name": "@fingerprintjs/fingerprintjs-pro-react", |
3 | 3 | "version": "2.7.1", |
4 | 4 | "description": "FingerprintJS Pro React SDK", |
5 | | - "main": "dist/fp-pro-react.cjs.js", |
6 | | - "module": "dist/fp-pro-react.esm.js", |
| 5 | + "main": "dist/fp-pro-react.js", |
| 6 | + "module": "dist/fp-pro-react.mjs", |
7 | 7 | "types": "dist/fp-pro-react.d.ts", |
8 | 8 | "exports": { |
9 | 9 | ".": { |
10 | 10 | "types": "./dist/fp-pro-react.d.ts", |
11 | | - "import": "./dist/fp-pro-react.esm.js", |
12 | | - "require": "./dist/fp-pro-react.cjs.js", |
13 | | - "node": "./dist/fp-pro-react.esm.js" |
| 11 | + "import": "./dist/fp-pro-react.mjs", |
| 12 | + "require": "./dist/fp-pro-react.js" |
14 | 13 | } |
15 | 14 | }, |
16 | 15 | "keywords": [ |
|
28 | 27 | "scripts": { |
29 | 28 | "postinstall": "node scripts/detect-env.js", |
30 | 29 | "prepare": "husky install", |
31 | | - "watch": "rollup -c rollup.config.js -w --bundleConfigAsCjs", |
32 | | - "build": "rimraf dist && rollup -c rollup.config.js --bundleConfigAsCjs", |
| 30 | + "watch": "vite build --watch", |
| 31 | + "build": "vite build", |
33 | 32 | "start:spa": "pnpm start --prefix=examples/spa", |
34 | 33 | "lint": "eslint --ext .js,.ts,.tsx --ignore-path .gitignore --max-warnings 0 .", |
35 | 34 | "lint:fix": "pnpm lint --fix", |
36 | | - "test": "jest", |
37 | | - "test:coverage": "jest --coverage", |
| 35 | + "test": "vitest", |
| 36 | + "test:coverage": "vitest run --coverage", |
| 37 | + "test:coverage:diff": "vitest run --coverage --reporter json --outputFile.json=report.json", |
38 | 38 | "test:dts": "tsc --noEmit --isolatedModules dist/fp-pro-react.d.ts", |
39 | 39 | "docs": "typedoc src/index.ts --out docs" |
40 | 40 | }, |
|
63 | 63 | "@fingerprintjs/eslint-config-dx-team": "^0.1.0", |
64 | 64 | "@fingerprintjs/prettier-config-dx-team": "^0.2.0", |
65 | 65 | "@fingerprintjs/tsconfig-dx-team": "^0.0.2", |
66 | | - "@rollup/plugin-json": "^6.1.0", |
67 | | - "@rollup/plugin-typescript": "^11.1.6", |
68 | | - "@testing-library/preact": "^3.2.3", |
69 | | - "@testing-library/react": "^14.2.1", |
70 | | - "@testing-library/user-event": "^14.5.2", |
71 | | - "@types/jest": "^29.5.12", |
| 66 | + "@testing-library/preact": "^3.2.4", |
| 67 | + "@testing-library/react": "^16.3.2", |
| 68 | + "@testing-library/user-event": "^14.6.1", |
72 | 69 | "@types/node": "^20.11.28", |
73 | 70 | "@types/react": "^18.2.66", |
74 | 71 | "@types/react-dom": "^18.2.22", |
| 72 | + "@vitest/coverage-istanbul": "^4.0.18", |
75 | 73 | "commitizen": "^4.3.0", |
76 | 74 | "cz-conventional-changelog": "^3.3.0", |
77 | 75 | "eslint": "8.57.0", |
|
80 | 78 | "eslint-plugin-react": "7.34.0", |
81 | 79 | "eslint-plugin-react-hooks": "^4.6.0", |
82 | 80 | "husky": "^9.0.11", |
83 | | - "jest": "^27.5.1", |
84 | | - "jest-environment-jsdom": "^27.5.1", |
85 | 81 | "lint-staged": "^15.2.2", |
86 | 82 | "preact": "^10.19.6", |
87 | 83 | "react": "^18.2.0", |
88 | 84 | "react-dom": "^18.2.0", |
89 | 85 | "react-router-dom": "^6.22.3", |
90 | 86 | "rimraf": "^5.0.5", |
91 | | - "rollup": "^4.43.0", |
92 | 87 | "rollup-plugin-banner2": "^1.3.1", |
93 | | - "rollup-plugin-dts": "^6.2.1", |
94 | | - "rollup-plugin-license": "^3.6.0", |
95 | | - "rollup-plugin-peer-deps-external": "^2.2.4", |
96 | | - "ts-jest": "^29.1.2", |
97 | 88 | "tslib": "^2.6.2", |
98 | 89 | "typedoc": "^0.25.12", |
99 | | - "typescript": "^5.4.2" |
| 90 | + "typescript": "^5.4.2", |
| 91 | + "vite": "^7.3.0", |
| 92 | + "vite-plugin-banner": "^0.8.1", |
| 93 | + "vite-plugin-dts": "^4.5.4", |
| 94 | + "vitest": "^4.0.18" |
100 | 95 | }, |
101 | 96 | "lint-staged": { |
102 | 97 | "*.ts": "pnpm lint:fix", |
|
0 commit comments