|
25 | 25 | "files": [ |
26 | 26 | "dist/*" |
27 | 27 | ], |
| 28 | + "exports": { |
| 29 | + ".": { |
| 30 | + "types": "./dist/types/index.d.ts", |
| 31 | + "import": "./dist/esm/index.js", |
| 32 | + "require": "./dist/eds-core-react.cjs" |
| 33 | + }, |
| 34 | + "./style": "./dist/style.css", |
| 35 | + "./style.css": "./dist/style.css" |
| 36 | + }, |
28 | 37 | "scripts": { |
29 | 38 | "build": "rollup -c --bundleConfigAsCjs && tsc -p tsconfig.build.json", |
30 | 39 | "test": "tsc -p tsconfig.test.json && jest", |
31 | 40 | "test:watch": "tsc-watch -p tsconfig.test.json --onFirstSuccess \"jest --watch\"", |
32 | 41 | "test:update-snapshots": "jest --updateSnapshot", |
| 42 | + "test:visual": "playwright test", |
| 43 | + "test:visual:ui": "playwright test --ui", |
| 44 | + "test:visual:update": "playwright test --update-snapshots", |
| 45 | + "test:visual:report": "playwright show-report", |
33 | 46 | "storybook": "storybook dev -p 9000 --ci", |
34 | 47 | "build:storybook": "storybook build -o storybook-build", |
35 | 48 | "types": "tsc -p tsconfig.build.json" |
|
41 | 54 | "react" |
42 | 55 | ], |
43 | 56 | "devDependencies": { |
| 57 | + "@playwright/test": "^1.55.0", |
44 | 58 | "@rollup/plugin-babel": "^6.0.4", |
45 | 59 | "@rollup/plugin-commonjs": "^28.0.6", |
46 | 60 | "@rollup/plugin-node-resolve": "^16.0.1", |
|
53 | 67 | "@testing-library/react": "16.3.0", |
54 | 68 | "@testing-library/user-event": "14.5.2", |
55 | 69 | "@types/jest": "^29.5.14", |
| 70 | + "@types/mdx": "^2.0.13", |
| 71 | + "@types/node": "^24.9.1", |
56 | 72 | "@types/ramda": "^0.30.2", |
57 | 73 | "@types/react": "^19.1.12", |
58 | 74 | "@types/react-dom": "^19.1.9", |
|
63 | 79 | "jest-styled-components": "^7.2.0", |
64 | 80 | "js-file-download": "^0.4.12", |
65 | 81 | "postcss": "^8.5.6", |
| 82 | + "postcss-import": "^16.1.1", |
66 | 83 | "ramda": "^0.31.3", |
67 | 84 | "react": "^19.1.1", |
68 | 85 | "react-dom": "^19.1.1", |
|
0 commit comments