Skip to content

Commit 30c4dde

Browse files
committed
moved to peer deps
1 parent ce0e719 commit 30c4dde

File tree

1 file changed

+31
-60
lines changed

1 file changed

+31
-60
lines changed

package.json

Lines changed: 31 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,62 @@
11
{
22
"name": "nhsuk-react-components",
33
"version": "5.0.0",
4-
"author": {
5-
"name": "NHS England"
6-
},
7-
"files": [
8-
"dist",
9-
"lib"
10-
],
4+
"files": ["dist", "lib"],
115
"main": "dist/cjs/index.js",
12-
"module": "dist/esm",
6+
"module": "dist/esm/index.js",
137
"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,
1416
"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",
1718
"build": "yarn cleanup && rollup -c",
19+
"storybook": "storybook dev -p 6006",
20+
"build-storybook": "storybook build",
1821
"test": "jest",
1922
"test:watch": "jest --watch",
2023
"test:ci": "jest --coverage",
2124
"lint": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}'",
2225
"lint:fix": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}' --fix",
2326
"lint:ci": "eslint 'src/**/*.{js,ts,tsx}' 'stories/**/*.{js,ts,tsx}'",
24-
"build-storybook": "storybook build",
2527
"prepublishOnly": "yarn lint:ci && yarn test:ci && yarn storybook --smoke-test"
2628
},
27-
"license": "MIT",
29+
"peerDependencies": {
30+
"react": "^19.0.0",
31+
"react-dom": "^19.0.0"
32+
},
2833
"devDependencies": {
34+
"react": "^19.1.1",
35+
"react-dom": "^19.1.1",
36+
2937
"@babel/core": "^7.24.1",
30-
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
3138
"@rollup/plugin-commonjs": "^25.0.7",
3239
"@rollup/plugin-node-resolve": "^15.2.3",
33-
"@rollup/plugin-terser": "^0.4.4",
3440
"@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+
4145
"@storybook/react": "^8.0.5",
4246
"@storybook/react-vite": "^8.0.5",
47+
"@storybook/addon-essentials": "^8.0.5",
4348
"@storybook/theming": "^8.0.5",
44-
"@testing-library/dom": "^10.4.1",
45-
"@testing-library/jest-dom": "^6.8.0",
49+
4650
"@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",
5251
"@types/react": "^18.2.60",
5352
"@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+
8654
"typescript": "5.3.3",
8755
"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"
8959
},
60+
"license": "MIT",
9061
"packageManager": "[email protected]"
9162
}

0 commit comments

Comments
 (0)