-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
156 lines (156 loc) · 5.25 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
"name": "react-helsinki-headless-cms",
"version": "1.0.0",
"description": "React components for displaying Headless CMS content according to guidelines set by HDS",
"main": "cjs/index.js",
"module": "index.js",
"types": "index.d.ts",
"scripts": {
"dev": "yarn storybook",
"dev:no-open": "yarn storybook --no-open",
"typecheck": "tsc --project ./tsconfig.json --noEmit",
"lint": "yarn eslint \"src/**/*.{ts,tsx}\" && yarn prettier ./src -c",
"lint-fix": "yarn eslint \"src/**/*.{ts,tsx}\" --fix && yarn prettier ./src -w",
"test": "jest",
"test-storybook": "test-storybook",
"build": "rollup -c --bundleConfigAsCjs",
"docker:dev": "cross-env DOCKER_TARGET=development docker compose up",
"docker:prod": "cross-env DOCKER_TARGET=production docker compose up",
"docker:down": "docker compose down --remove-orphans",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"publish-canary": "yarn build && node ./scripts/publish-canary.js",
"publish-stable": "yarn build && node ./scripts/publish-stable.js",
"generate:graphql": "cross-env DOTENV_CONFIG_PATH=./.env graphql-codegen -r dotenv/config --config codegen.yml"
},
"engines": {
"node": ">=18.17.1"
},
"exports": {
".": {
"import": "./index.js",
"default": "./cjs/index.js"
},
"./apollo": {
"import": "./apollo.js",
"default": "./cjs/apollo.js"
},
"./nextjs": {
"import": "./nextjs.js",
"default": "./cjs/nextjs.js"
}
},
"repository": "https://github.com/City-of-Helsinki/react-helsinki-headless-cms.git",
"license": "MIT",
"bugs": {
"url": "https://github.com/City-of-Helsinki/react-helsinki-headless-cms/issues"
},
"homepage": "https://github.com/City-of-Helsinki/react-helsinki-headless-cms#readme",
"peerDependencies": {
"@apollo/client": "^3.10.16",
"date-fns": "^2.28.0",
"hds-react": ">=1.11.1",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"peerDependenciesMeta": {
"@apollo/client": {
"optional": true
}
},
"devDependencies": {
"@apollo/client": "^3.11.10",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@babel/preset-react": "^7.25.9",
"@babel/preset-typescript": "^7.26.0",
"@chromatic-com/storybook": "^3",
"@graphql-codegen/cli": "^5.0.3",
"@graphql-codegen/typescript": "^4.1.1",
"@graphql-codegen/typescript-operations": "^4.3.1",
"@graphql-codegen/typescript-react-apollo": "^4.3.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@storybook/addon-a11y": "^8.4.2",
"@storybook/addon-actions": "^8.4.2",
"@storybook/addon-essentials": "^8.4.2",
"@storybook/addon-interactions": "^8.4.2",
"@storybook/addon-links": "^8.4.2",
"@storybook/addon-viewport": "^8.4.2",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^8.4.2",
"@storybook/react-webpack5": "^8.4.2",
"@storybook/test": "^8.4.2",
"@storybook/test-runner": "^0.19.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/dompurify": "^3.0.5",
"@types/jest": "^29.5.14",
"@types/jest-axe": "^3.5.9",
"@types/lodash-es": "^4.17.12",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"axe-playwright": "^2.0.3",
"babel-loader": "^9.2.1",
"classnames": "^2.5.1",
"cross-env": "^7.0.3",
"crypto-browserify": "^3.12.1",
"css-loader": "^6.7.1",
"edit-json-file": "^1.8.0",
"eslint": "^8.0.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"git-rev-sync": "^3.0.2",
"graphql": "^16.9.0",
"hds-react": "^3.11.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-axe": "^9.0.0",
"jest-fetch-mock": "^3.0.3",
"msw": "^1.1.0",
"msw-storybook-addon": "1.8.0",
"postcss": "^8.4.49",
"postcss-scss": "^4.0.9",
"prettier": "3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-helmet-async": "^2.0.5",
"rollup": "^4.26.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-delete": "^2.1.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-includepaths": "^0.2.4",
"rollup-plugin-polyfill-node": "^0.13.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"sass": "^1.66.0",
"sass-loader": "^13.3.2",
"storybook": "^8.4.2",
"style-loader": "^4.0.0",
"tslib": "^2.8.1",
"typescript": "^5.6.3",
"webpack": "^5.96.1"
},
"dependencies": {
"hds-design-tokens": "^3.11.0",
"html-entities": "^2.5.2",
"html-react-parser": "^4.2.9",
"isomorphic-dompurify": "^2.16.0",
"jest-environment-jsdom": "^29.7.0",
"lodash-es": "^4.17.21"
},
"msw": {
"workerDirectory": "public"
}
}