|
1 | 1 | { |
2 | 2 | "name": "nhsuk-react-components", |
3 | 3 | "version": "5.0.0", |
4 | | - "author": { |
5 | | - "name": "NHS England" |
6 | | - }, |
7 | | - "files": [ |
8 | | - "dist", |
9 | | - "lib" |
10 | | - ], |
| 4 | + "files": ["dist", "lib"], |
11 | 5 | "main": "dist/cjs/index.js", |
12 | | - "module": "dist/esm", |
| 6 | + "module": "dist/esm/index.js", |
13 | 7 | "types": "dist/index.d.ts", |
| 8 | + "exports": { |
| 9 | + ".": { |
| 10 | + "types": "./dist/index.d.ts", |
| 11 | + "import": "./dist/esm/index.js", |
| 12 | + "require": "./dist/cjs/index.js" |
| 13 | + } |
| 14 | + }, |
| 15 | + "sideEffects": false, |
14 | 16 | "scripts": { |
15 | | - "cleanup": "rm -rf dist/ > /dev/null && rm -rf lib/ > /dev/null", |
16 | | - "storybook": "storybook dev -p 6006", |
| 17 | + "cleanup": "rm -rf dist/ lib/ >/dev/null 2>&1 || true", |
17 | 18 | "build": "yarn cleanup && rollup -c", |
| 19 | + "storybook": "storybook dev -p 6006", |
| 20 | + "build-storybook": "storybook build", |
18 | 21 | "test": "jest", |
19 | 22 | "test:watch": "jest --watch", |
20 | 23 | "test:ci": "jest --coverage", |
21 | 24 | "lint": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}'", |
22 | 25 | "lint:fix": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}' --fix", |
23 | 26 | "lint:ci": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}'", |
24 | | - "build-storybook": "storybook build", |
25 | 27 | "prepublishOnly": "yarn lint:ci && yarn test:ci && yarn storybook --smoke-test" |
26 | 28 | }, |
27 | | - "license": "MIT", |
| 29 | + "peerDependencies": { |
| 30 | + "react": "^19.0.0", |
| 31 | + "react-dom": "^19.0.0" |
| 32 | + }, |
28 | 33 | "devDependencies": { |
| 34 | + "react": "^19.1.1", |
| 35 | + "react-dom": "^19.1.1", |
| 36 | + |
29 | 37 | "@babel/core": "^7.24.1", |
30 | | - "@babel/plugin-transform-modules-commonjs": "^7.23.3", |
31 | 38 | "@rollup/plugin-commonjs": "^25.0.7", |
32 | 39 | "@rollup/plugin-node-resolve": "^15.2.3", |
33 | | - "@rollup/plugin-terser": "^0.4.4", |
34 | 40 | "@rollup/plugin-typescript": "^11.1.6", |
35 | | - "@storybook/addon-actions": "^8.0.5", |
36 | | - "@storybook/addon-essentials": "^8.0.5", |
37 | | - "@storybook/addon-links": "^8.0.5", |
38 | | - "@storybook/blocks": "^8.0.5", |
39 | | - "@storybook/manager-api": "^8.0.5", |
40 | | - "@storybook/preview-api": "^8.0.5", |
| 41 | + "rollup": "^4.13.0", |
| 42 | + "rollup-plugin-dts": "^6.1.0", |
| 43 | + "rollup-plugin-peer-deps-external": "^2.2.4", |
| 44 | + |
41 | 45 | "@storybook/react": "^8.0.5", |
42 | 46 | "@storybook/react-vite": "^8.0.5", |
| 47 | + "@storybook/addon-essentials": "^8.0.5", |
43 | 48 | "@storybook/theming": "^8.0.5", |
44 | | - "@testing-library/dom": "^10.4.1", |
45 | | - "@testing-library/jest-dom": "^6.8.0", |
| 49 | + |
46 | 50 | "@testing-library/react": "^16.3.0", |
47 | | - "@types/babel__core": "^7", |
48 | | - "@types/jest": "^29.5.12", |
49 | | - "@types/jest-axe": "^3.5.9", |
50 | | - "@types/lodash": "^4", |
51 | | - "@types/node": "^15.0.2", |
52 | 51 | "@types/react": "^18.2.60", |
53 | 52 | "@types/react-dom": "^18.2.19", |
54 | | - "@types/rollup-plugin-peer-deps-external": "^2.2.1", |
55 | | - "@typescript-eslint/eslint-plugin": "^7.1.0", |
56 | | - "@typescript-eslint/parser": "^7.1.0", |
57 | | - "babel-jest": "^29.7.0", |
58 | | - "chromatic": "^6.17.3", |
59 | | - "classnames": "^2.5.1", |
60 | | - "eslint": "^8.57.0", |
61 | | - "eslint-config-airbnb": "^19.0.4", |
62 | | - "eslint-config-prettier": "^9.1.0", |
63 | | - "eslint-import-resolver-typescript": "^3.6.1", |
64 | | - "eslint-plugin-import": "^2.29.1", |
65 | | - "eslint-plugin-jsx-a11y": "^6.8.0", |
66 | | - "eslint-plugin-prettier": "^5.1.3", |
67 | | - "eslint-plugin-react": "^7.33.2", |
68 | | - "eslint-plugin-react-hooks": "^4.6.0", |
69 | | - "jest": "^29.7.0", |
70 | | - "jest-axe": "^8.0.0", |
71 | | - "jest-environment-jsdom": "^29.7.0", |
72 | | - "lodash": "^4.17.21", |
73 | | - "nhsuk-frontend": "^9.0.1", |
74 | | - "prettier": "^3.2.5", |
75 | | - "react": "^19.1.1", |
76 | | - "react-dom": "^19.1.1", |
77 | | - "regenerator-runtime": "^0.13.7", |
78 | | - "rollup": "^4.13.0", |
79 | | - "rollup-plugin-dts": "^6.1.0", |
80 | | - "rollup-plugin-peer-deps-external": "^2.2.4", |
81 | | - "rollup-plugin-preserve-directives": "^0.4.0", |
82 | | - "rollup-plugin-tsconfig-paths": "^1.5.2", |
83 | | - "sass": "^1.53.0", |
84 | | - "storybook": "^8.0.5", |
85 | | - "ts-jest": "^29.1.2", |
| 53 | + |
86 | 54 | "typescript": "5.3.3", |
87 | 55 | "vite": "^4.5.3", |
88 | | - "vite-tsconfig-paths": "^4.3.2" |
| 56 | + "vite-tsconfig-paths": "^4.3.2", |
| 57 | + "nhsuk-frontend": "^9.0.1", |
| 58 | + "sass": "^1.53.0" |
89 | 59 | }, |
| 60 | + "license": "MIT", |
90 | 61 | "packageManager": "[email protected]" |
91 | 62 | } |
0 commit comments