-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
110 lines (110 loc) · 3.18 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
{
"name": "yalf2025-svg",
"version": "0.0.1",
"description": "Проект с примером динамической загрузки svg",
"engines": {
"node": ">=18.18.0"
},
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d",
"license": "MIT",
"scripts": {
"generate:icontypes": "node generateIconTypes.js && yarn prettier src/atoms/Icon/models.ts --write",
"dev": "yarn styleguidist server --open",
"build": "yarn compile && yarn tsc --noEmit && rollup -c && yarn build:icons",
"compile": "yarn generate:icontypes",
"build:icons": "rollup --config rollup.icons.config.js",
"test": "jest --coverage=false"
},
"dependencies": {
"clsx": "^2.1.1",
"lodash.startcase": "^4.4.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@babel/preset-env": "^7.26.8",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.26.0",
"@rollup/plugin-node-resolve": "^16.0.0",
"@svgr/rollup": "^8.1.0",
"@svgr/webpack": "^8.1.0",
"@testing-library/dom": "^9.0.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.14",
"babel-loader": "^9.2.1",
"babel-polyfill": "^6.26.0",
"circular-dependency-plugin": "^5.2.2",
"css-loader": "^6.7.3",
"eslint": "^9.20.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.3.1",
"mini-css-extract-plugin": "^2.9.2",
"postcss-url": "^10.1.3",
"prettier": "^3.5.1",
"react-docgen-typescript": "^2.2.2",
"react-styleguidist": "^13.1.4",
"rollup": "^4.34.6",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-delete": "^2.1.0",
"rollup-plugin-filesize": "^10.0.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"rollup-plugin-visualizer": "^5.14.0",
"sass": "^1.84.0",
"sass-loader": "^16.0.4",
"style-loader": "^4.0.0",
"ts-jest": "^29.2.5",
"typescript": "^5.6.4",
"webpack": "^5.97.1"
},
"browserslist": [
">1%",
"last 1 version",
"Firefox ESR",
"not dead"
],
"jest": {
"collectCoverageFrom": [
"!**/node_modules/**"
],
"setupFilesAfterEnv": [
"<rootDir>/src/jest-setup.ts"
],
"modulePathIgnorePatterns": [
"<rootDir>/dist/",
"<rootDir>/types/"
],
"coverageDirectory": "src",
"testEnvironment": "jsdom",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx"
],
"transform": {
"^.+\\.(ts|tsx|js|jsx)$": "ts-jest"
},
"testMatch": [
"**/__tests__/*.spec.(ts|tsx|js)",
"**/__tests__/**/*.spec.(ts|tsx|js)"
],
"moduleNameMapper": {
"^@src(.*)$": "<rootDir>/src$1",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|scss)$": "identity-obj-proxy",
"\\.svg$": "<rootDir>/__mocks__/svg.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
"<rootDir>/__mocks__",
"^.+.scss$"
]
}
}