-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpackage.json
More file actions
239 lines (239 loc) · 9.15 KB
/
Copy pathpackage.json
File metadata and controls
239 lines (239 loc) · 9.15 KB
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
{
"name": "@telefonica/mistica",
"version": "17.5.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Telefonica/mistica-web"
},
"homepage": "https://github.com/Telefonica/mistica-web",
"main": "dist/index.js",
"module": "dist-es/index.js",
"files": [
"dist/**",
"dist-es/**",
"css/**",
"doc/**",
"src/**",
"!src/generated/**",
"!src/**/__tests__/**",
"!src/**/__acceptance_tests__/**",
"!src/**/__screenshot_tests__/**",
"!src/**/__type_tests__/**",
"!src/**/__stories__/**",
"!src/**/__private_stories__/**",
"!src/**/*-test.ts",
"!src/**/*-test.tsx",
"!src/**/*-story.ts",
"!src/**/*-story.tsx",
"community.d.ts",
"community.js"
],
"scripts": {
"test": "jest --config jest.unit.config.js",
"test-acceptance": "test-acceptance",
"test-ssr": "test-acceptance --config jest.ssr.config.js",
"prettier-check": "prettier --check \"**/*.js\" \"**/*.tsx\" \"**/*.ts\" \"**/*.json\" \"**/*.css\" \"**/*.html\"",
"lint": "eslint --report-unused-disable-directives .",
"ts-check": "tsc --project tsconfig.json --noEmit",
"generate-design-tokens": "node packages/generate-design-tokens/index.ts",
"import-mistica-icons": "node packages/import-mistica-icons/index.js",
"build": "yarn clean && node scripts/build.js",
"compile": "node scripts/compile.js",
"clean": "rimraf dist && rimraf dist-es && rimraf dist-ts && rimraf css/mistica.css && rimraf community.d.ts && rimraf community.js && rimraf node_modules/.cache && bash -c 'yarn jest --clearCache > /dev/null 2>&1'",
"prepublishOnly": "node scripts/prepublish-only.js",
"prepack": "yarn build",
"storybook": "storybook dev -p 6006",
"storybook-for-acceptance-tests": "cross-env NODE_ENV=production yarn storybook --ci 2>&1",
"playroom": "playroom start",
"browse": "node scripts/browse-story.js",
"gen-ts-defs": "rimraf dist-ts && tsc --project tsconfig.production.json --emitDeclarationOnly && cp -r dist-ts/src/* dist && rimraf dist-ts",
"build-mistica-css": "cd examples/css && yarn && yarn build && cp -r dist ../../public/mistica-css",
"vercel-build": "VERCEL_PROD_BUILD=1 yarn storybook-static && ./node_modules/.bin/playroom build && FORCE_MOBILE=1 ./node_modules/.bin/playroom build && FORCE_DESKTOP=1 ./node_modules/.bin/playroom build && cp img/favicon.ico public/ && cp img/favicon.svg public/ && yarn build-mistica-css",
"vercel-preview-build": "yarn storybook-static && ./node_modules/.bin/playroom build && cp img/favicon.ico public/ && cp img/favicon.svg public/ && yarn build-mistica-css",
"storybook-static": "storybook build -o public --quiet",
"serve-static-storybook": "node ./scripts/serve-static-storybook.js",
"detect-circular-dependencies": "npx dpdm --circular src/index.tsx",
"audit-accessibility": "node .github/actions/audit-accessibility/main.js",
"circular-dependencies": "yarn dpdm src/index.tsx --tree=false --warning=false --exit-code circular:1",
"prepare": "husky install",
"edit-playroom-patch": "playroom/patch-playroom.sh"
},
"browserslist": [
"Chrome >= 100",
"Firefox ESR",
"Safari >= 14",
"iOS >= 14"
],
"prettier": "@telefonica/prettier-config",
"acceptanceTests": {
"devServer": {
"command": "yarn storybook-for-acceptance-tests",
"port": 6006
},
"ciServer": {
"command": "yarn serve-static-storybook",
"port": 6006
}
},
"devDependencies": {
"@actions/core": "^1.10.0",
"@actions/github": "^5.0.0",
"@axe-core/puppeteer": "^4.4.2",
"@azure/storage-blob": "^12.9.0",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@storybook/react-vite": "^10.2.8",
"@swc/cli": "^0.1.62",
"@swc/core": "^1.3.95",
"@swc/jest": "^0.2.29",
"@telefonica/acceptance-testing": "5.4.0",
"@telefonica/eslint-config": "^2.2.0",
"@telefonica/prettier-config": "^2.0.0",
"@testing-library/dom": "^10.2.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.0",
"@testing-library/user-event": "^14.5.2",
"@types/detect-port": "^1.3.2",
"@types/jest-environment-puppeteer": "^5.0.3",
"@types/lodash": "^4.17.21",
"@types/mini-css-extract-plugin": "^1.2.2",
"@types/mkdirp": "^1.0.2",
"@types/node": "^25.0.3",
"@types/react": "^19.2.7",
"@types/react-autosuggest": "^10.1.5",
"@types/react-dom": "^19.2.3",
"@types/react-router-dom": "^5.3.3",
"@types/react-transition-group": "^4.4.4",
"@types/rimraf": "^3.0.2",
"@types/semver-compare": "^1.0.1",
"@vanilla-extract/jest-transform": "^1.1.19",
"@vanilla-extract/vite-plugin": "^5.1.3",
"@vanilla-extract/webpack-plugin": "^2.3.27",
"@vitejs/plugin-react": "^5.1.3",
"autoprefixer": "^10.4.12",
"axe-html-reporter": "^2.2.3",
"cpx": "^1.5.0",
"cross-env": "^7.0.3",
"detect-port": "^1.3.0",
"dpdm": "^3.8.0",
"es6-promise-pool": "^2.5.0",
"eslint": "^8.57.0",
"eslint-plugin-mistica-local-rules": "workspace:*",
"eslint-plugin-storybook": "^10.2.8",
"glob": "^7.2.0",
"gzip-size": "^6.0.0",
"husky": "^7.0.4",
"is-ci": "^3.0.1",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-environment-puppeteer": "^6.1.1",
"jimp": "^0.16.1",
"lint-staged": "^12.3.7",
"lodash": "^4.17.21",
"mini-css-extract-plugin": "^1.6.2",
"node-fetch": "^2.6.7",
"playroom": "^1.4.0",
"postcss": "^8.4.18",
"postcss-loader": "^4.2.0",
"prettier": "^3.3.2",
"pretty-bytes": "^5.6.0",
"prop-types": "^15.8.1",
"react": "19.2.1",
"react-dom": "19.2.1",
"react-router": "^6.6.2",
"react-router-dom": "^6.6.2",
"rimraf": "3.0.2",
"rollup-plugin-preserve-directives": "^0.2.0",
"semantic-release": "^19.0.2",
"serve-handler": "^6.1.5",
"storybook": "^10.2.8",
"style-loader": "^4.0.0",
"swc-loader": "^0.2.3",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vite-plugin-entry-shaking": "^0.5.1",
"vite-plugin-no-bundle": "^4.0.0"
},
"dependencies": {
"@figma/code-connect": "^1.4.8",
"@juggle/resize-observer": "^3.3.1",
"@tef-novum/webview-bridge": "^5.1.0",
"@telefonica/libphonenumber": "^2.9.1",
"@vanilla-extract/css": "^1.17.5",
"@vanilla-extract/dynamic": "^2.1.5",
"@vanilla-extract/sprinkles": "^1.6.5",
"classnames": "^2.3.1",
"cubic-bezier": "^0.1.2",
"lottie-react": "^2.4.0",
"moment": "^2.29.1",
"react-autosuggest": "^10.1.0",
"react-datetime": "^3.2.0",
"react-focus-lock": "^2.8.1",
"react-transition-group": "^4.4.5",
"rifm": "^0.12.1",
"scroll-behavior-polyfill": "^2.0.13",
"semver-compare": "^1.0.0"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.2.0",
"react-dom": "^18.0.0 || ^19.2.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"sideEffects": [
"*.css"
],
"lint-staged": {
"*.{js,css,md,yml,yaml,ts,tsx,d.ts,json,html}": "prettier --write"
},
"release": {
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "angular"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "angular"
}
],
"@semantic-release/changelog",
"./scripts/set-version.js",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json",
"src/package-version.tsx"
]
}
],
"@semantic-release/github"
]
},
"resolutions": {
"react": "19.2.1",
"react-dom": "19.2.1",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@testing-library/dom": "^8.19.1",
"lottie-react@^2.4.0": "patch:lottie-react@npm%3A2.4.0#./.yarn/patches/lottie-react-npm-2.4.0-d4d95c55aa.patch",
"playroom@^1.4.0": "patch:playroom@npm%3A1.4.0#./.yarn/patches/playroom-npm-1.4.0-9ed3ce334e.patch"
},
"packageManager": "yarn@3.6.1",
"workspaces": [
"packages/eslint-plugin-mistica-local-rules",
"packages/generate-design-tokens"
],
"engines": {
"node": ">=24.0.0"
}
}