-
Notifications
You must be signed in to change notification settings - Fork 58
/
package.json
192 lines (192 loc) · 6.44 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
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
{
"name": "@canonical/react-components",
"version": "0.47.3",
"main": "dist/index.js",
"module": "dist/index.js",
"author": {
"email": "[email protected]",
"name": "Canonical Webteam"
},
"license": "LGPL-3.0",
"files": [
"dist/**/*.js",
"dist/**/*.d.*",
"dist/**/*.scss",
"!dist/**/*.test.js",
"!dist/testing",
"!dist/setupTests.js"
],
"repository": {
"type": "git",
"url": "[email protected]:canonical/react-components.git"
},
"bugs": {
"url": "https://github.com/canonical/react-components/issues"
},
"homepage": "https://canonical.github.io/react-components",
"devDependencies": {
"@babel/cli": "7.25.6",
"@babel/eslint-parser": "7.25.1",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "7.24.7",
"@eslint/compat": "1.1.1",
"@eslint/eslintrc": "3.1.0",
"@eslint/js": "9.9.1",
"@percy/cli": "1.29.3",
"@percy/storybook": "6.0.2",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"@storybook/addon-a11y": "8.2.9",
"@storybook/addon-essentials": "8.2.9",
"@storybook/addon-interactions": "8.2.9",
"@storybook/addon-links": "8.2.9",
"@storybook/addon-onboarding": "8.2.9",
"@storybook/addon-webpack5-compiler-babel": "3.0.3",
"@storybook/blocks": "8.2.9",
"@storybook/react": "8.2.9",
"@storybook/react-webpack5": "8.2.9",
"@testing-library/cypress": "10.0.2",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.5.0",
"@testing-library/react": "16.0.1",
"@testing-library/user-event": "14.5.2",
"@types/lodash.isequal": "4",
"babel-jest": "29.7.0",
"babel-loader": "9.1.3",
"babel-plugin-module-resolver": "5.0.2",
"babel-plugin-typescript-to-proptypes": "2.1.0",
"concurrently": "8.2.2",
"css-loader": "7.1.2",
"cypress": "13.14.1",
"deepmerge": "4.3.1",
"eslint": "9.9.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-cypress": "3.5.0",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.35.2",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-storybook": "0.8.0",
"eslint-plugin-testing-library": "6.3.0",
"formik": "2.4.6",
"jest": "29.7.0",
"npm-package-json-lint": "8.0.0",
"prettier": "3.3.3",
"react": "18.3.1",
"react-docgen-typescript-loader": "3.7.2",
"react-dom": "18.3.1",
"sass": "1.79.4",
"sass-loader": "16.0.1",
"semantic-release": "24.1.0",
"storybook": "8.2.9",
"strip-ansi": "7.1.0",
"style-loader": "4.0.0",
"stylelint": "16.9.0",
"stylelint-config-prettier": "9.0.5",
"stylelint-config-recommended-scss": "14.1.0",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.2",
"ts-jest": "29.2.5",
"tsc-alias": "1.8.10",
"typescript": "5.5.4",
"typescript-eslint": "8.4.0",
"vanilla-framework": "4.18.2",
"wait-on": "8.0.0",
"webpack": "5.95.0"
},
"dependencies": {
"@types/jest": "29.5.12",
"@types/node": "20.16.3",
"@types/react": "18.3.5",
"@types/react-dom": "18.3.0",
"@types/react-table": "7.7.20",
"classnames": "2.5.1",
"jest-environment-jsdom": "29.7.0",
"lodash.isequal": "4.5.0",
"prop-types": "15.8.1",
"react-table": "7.8.0",
"react-useportal": "1.0.19"
},
"resolutions": {
"@types/react": "18.3.5",
"@types/react-dom": "18.3.0",
"postcss": "^8.3.11",
"jackspeak": "2.1.1",
"strip-ansi": "6.0.1"
},
"peerDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"formik": "^2.4.5",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"vanilla-framework": "^3.15.1 || ^4.0.0"
},
"scripts": {
"build": "rm -rf dist && yarn build-cjs && yarn build-declaration && yarn build-esm && yarn build-declaration-esm",
"build-cjs": "NODE_ENV=production BABEL_ENV=cjs babel src --out-dir dist --copy-files --extensions '.js,.jsx,.ts,.tsx'",
"build-declaration": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json",
"build-esm": "NODE_ENV=production BABEL_ENV=esm babel src --out-dir dist/esm --copy-files --extensions '.js,.jsx,.ts,.tsx'",
"build-declaration-esm": "tsc --project tsconfig.json --outDir dist/esm && tsc-alias -p tsconfig.json --outDir dist/esm",
"build-watch": "yarn run build-cjs --watch",
"build-docs": "storybook build -c .storybook -o docs",
"clean": "rm -rf node_modules dist .out",
"docs": "storybook dev -p ${PORT:-9009} --no-open",
"link-packages": "yarn install && yarn build && yarn link && cd node_modules/react && yarn link && cd ../react-dom && yarn link",
"lint-js": "eslint src",
"lint-style": "stylelint src/**/*.scss",
"lint-package-json": "npmPkgJsonLint .",
"lint": "yarn lint-package-json && yarn lint-js && yarn lint-style",
"percy": "yarn build-docs && percy storybook ./docs",
"serve": "yarn docs",
"start": "yarn docs",
"test": "jest",
"test-cypress": "concurrently 'yarn run docs' 'yarn run cypress:test' -k -s first",
"unlink-packages": "yarn unlink && cd node_modules/react && yarn unlink && cd ../react-dom && yarn unlink",
"cypress:test": "wait-on http://localhost:${PORT:-9009} && cypress run --env port=${PORT:-9009}",
"cypress:run": "cypress run --env port=${PORT:-9009}",
"cypress:open": "cypress open --env port=${PORT:-9009}",
"semantic-release": "semantic-release",
"semantic-release-dry-run": "semantic-release --dry-run --no-ci"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"jest": {
"moduleNameMapper": {
".scss$": "<rootDir>/src/testing/mock-scss.js"
},
"preset": "ts-jest/presets/js-with-babel",
"roots": [
"<rootDir>/src/"
],
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
],
"testEnvironment": "jest-environment-jsdom",
"moduleDirectories": [
"node_modules",
"src"
]
},
"npmpackagejsonlint": {
"rules": {
"prefer-absolute-version-dependencies": "error",
"prefer-absolute-version-devDependencies": "error",
"prefer-alphabetical-dependencies": "error",
"prefer-alphabetical-devDependencies": "error"
}
}
}