|
7 | 7 | "browser": "dist/cjs/index.js", |
8 | 8 | "types": "index.d.ts", |
9 | 9 | "scripts": { |
10 | | - "build": "rollup -c", |
| 10 | + "build": "tsup", |
11 | 11 | "prebuild": "rm -rf dist/", |
12 | 12 | "build:esm": "tsc --module esnext --outDir lib/esm", |
13 | 13 | "build:cjs": "tsc --module commonjs --outDir lib/cjs", |
14 | 14 | "lint": "eslint --ext ts --ext tsx src/", |
15 | 15 | "lint:fix": "yarn run lint -- --fix", |
16 | 16 | "prettier:fix": "prettier --write \"**/*.{ts,tsx,js,json}\"", |
17 | | - "test": "jest", |
18 | | - "test:watch": "jest --watch", |
| 17 | + "test": "vitest", |
19 | 18 | "release": "./release.sh", |
20 | 19 | "smoke": "node tests/smoke/run" |
21 | 20 | }, |
|
25 | 24 | }, |
26 | 25 | "license": "MIT", |
27 | 26 | "repository": "algolia/react-element-to-jsx-string", |
| 27 | + "dependencies": { |
| 28 | + "@base2/pretty-print-object": "1.0.1" |
| 29 | + }, |
| 30 | + "peerDependencies": { |
| 31 | + "react": "^19.0.0", |
| 32 | + "react-dom": "^19.0.0", |
| 33 | + "react-is": "^19.0.0" |
| 34 | + }, |
28 | 35 | "devDependencies": { |
29 | | - "@babel/cli": "7.15.7", |
30 | | - "@babel/core": "7.15.5", |
31 | | - "@babel/preset-env": "7.15.6", |
32 | | - "@babel/preset-react": "7.14.5", |
33 | | - "@babel/preset-typescript": "^7.15.0", |
34 | | - "@rollup/plugin-typescript": "^8.2.5", |
35 | | - "@types/enzyme": "^3.10.9", |
36 | | - "@types/enzyme-adapter-react-16": "^1.0.6", |
37 | | - "@types/jest": "^27.0.2", |
38 | | - "@types/react": "^17.0.26", |
39 | | - "@types/react-is": "^17.0.2", |
40 | | - "@typescript-eslint/eslint-plugin": "^4.29.3", |
41 | | - "@typescript-eslint/parser": "^4.29.3", |
42 | | - "babel-eslint": "10.1.0", |
43 | | - "babel-jest": "27.2.4", |
44 | | - "babel-register": "6.26.0", |
| 36 | + "@testing-library/dom": "^10.4.0", |
| 37 | + "@testing-library/jest-dom": "^6.6.3", |
| 38 | + "@testing-library/react": "^16.1.0", |
| 39 | + "@types/react": "^19.0.6", |
| 40 | + "@types/react-dom": "^19.0.3", |
| 41 | + "@types/react-is": "^19.0.0", |
45 | 42 | "conventional-changelog-cli": "2.1.1", |
46 | 43 | "doctoc": "1.4.0", |
47 | | - "enzyme": "3.11.0", |
48 | | - "enzyme-adapter-react-16": "1.15.6", |
49 | | - "eslint": "7.32.0", |
50 | | - "eslint-config-airbnb": "^18.2.1", |
51 | | - "eslint-config-airbnb-typescript": "^14.0.0", |
52 | | - "eslint-config-algolia": "19.0.2", |
53 | | - "eslint-config-prettier": "8.3.0", |
54 | | - "eslint-plugin-import": "2.24.2", |
55 | | - "eslint-plugin-jest": "24.5.0", |
56 | | - "eslint-plugin-jsx-a11y": "6.4.1", |
57 | | - "eslint-plugin-react": "7.26.1", |
58 | | - "eslint-plugin-react-hooks": "4.2.0", |
59 | 44 | "esm": "3.2.25", |
60 | | - "expect": "27.2.4", |
61 | | - "husky": "3.1.0", |
62 | | - "jest": "27.2.4", |
63 | | - "json": "10.0.0", |
64 | | - "lint-staged": "10.5.4", |
| 45 | + "happy-dom": "^16.5.3", |
65 | 46 | "mversion": "2.0.1", |
66 | | - "prettier": "2.4.1", |
67 | | - "react": "16.14.0", |
68 | | - "react-dom": "16.14.0", |
69 | | - "react-test-renderer": "16.14.0", |
70 | | - "rollup": "2.57.0", |
71 | | - "rollup-plugin-babel": "4.4.0", |
72 | | - "rollup-plugin-node-builtins": "2.1.2", |
73 | | - "rollup-plugin-node-globals": "1.4.0", |
74 | | - "rollup-plugin-node-resolve": "5.2.0", |
75 | | - "rollup-plugin-sourcemaps": "0.6.3", |
76 | | - "typescript": "4.4.3" |
77 | | - }, |
78 | | - "peerDependencies": { |
79 | | - "react": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1", |
80 | | - "react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" |
81 | | - }, |
82 | | - "dependencies": { |
83 | | - "@base2/pretty-print-object": "1.0.1", |
84 | | - "is-plain-object": "5.0.0", |
85 | | - "react-is": "17.0.2" |
86 | | - }, |
87 | | - "jest": { |
88 | | - "setupFilesAfterEnv": ["<rootDir>tests/setupTests.ts"] |
| 47 | + "prettier": "3.4.2", |
| 48 | + "react": "19.0.0", |
| 49 | + "react-dom": "19.0.0", |
| 50 | + "react-is": "19.0.0", |
| 51 | + "tsup": "^8.3.5", |
| 52 | + "typescript": "^5.7.3", |
| 53 | + "vitest": "^2.1.8" |
89 | 54 | } |
90 | 55 | } |
0 commit comments