-
Notifications
You must be signed in to change notification settings - Fork 932
/
package.json
202 lines (202 loc) · 6.15 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
193
194
195
196
197
198
199
200
201
202
{
"name": "downshift",
"version": "0.0.0-semantically-released",
"description": "🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.",
"main": "dist/downshift.cjs.js",
"react-native": "dist/downshift.native.cjs.js",
"module": "dist/downshift.esm.js",
"typings": "typings/index.d.ts",
"sideEffects": false,
"browserslist": [],
"scripts": {
"build": "npm run build:web --silent && npm run build:native --silent && npm run build:nativeWeb --silent",
"build:web": "kcd-scripts build --bundle --p-react --no-clean --size-snapshot",
"build:native": "cross-env BUILD_REACT_NATIVE=true BUILD_FILENAME_SUFFIX=.native kcd-scripts build --bundle cjs --no-clean",
"build:nativeWeb": "cross-env BUILD_REACT_NATIVE_WEB=true BUILD_FILENAME_SUFFIX=.nativeweb kcd-scripts build --bundle cjs --no-clean",
"lint": "kcd-scripts lint",
"test": "kcd-scripts test",
"test:cover": "kcd-scripts test --coverage",
"test:ssr": "kcd-scripts test --config other/ssr/jest.config.js --no-watch",
"test:update": "npm run test:cover -s -- --updateSnapshot",
"test:ts": "tsc --noEmit -p ./tsconfig.json",
"test:flow": "flow",
"test:flow:coverage": "flow-coverage-report",
"test:build": "jest --config other/misc-tests/jest.config.js",
"// FIXME: test:build": "jest --projects other/misc-tests other/react-native",
"test:cypress:dev": "npm-run-all --parallel --race docs:dev cy:open",
"pretest:cypress": "npm run docs:build --silent",
"test:cypress": "start-server-and-test docs:serve http://localhost:6006 cy:run",
"cy:run": "cypress run",
"cy:open": "cypress open",
"build-and-test": "npm run build -s && npm run test:build -s",
"docs:build": "docusaurus build",
"docs:dev": "docusaurus start",
"docs:serve": "docusaurus serve --port 6006",
"docs:clear": "docusaurus clear",
"setup": "npm install && npm run validate",
"validate": "kcd-scripts validate lint,build-and-test,test:cover,test:ts,test:ssr,test:cypress"
},
"husky": {
"hooks": {
"pre-commit": "kcd-scripts pre-commit"
}
},
"files": [
"dist",
"typings",
"preact",
"flow-typed"
],
"keywords": [
"enhanced input",
"react",
"autocomplete",
"autosuggest",
"typeahead",
"dropdown",
"select",
"combobox",
"omnibox",
"accessibility",
"WAI-ARIA",
"multiselect",
"multiple selection"
],
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)",
"license": "MIT",
"peerDependencies": {
"react": ">=16.12.0"
},
"dependencies": {
"@babel/runtime": "^7.24.5",
"compute-scroll-into-view": "^3.1.0",
"prop-types": "^15.8.1",
"react-is": "18.2.0",
"tslib": "^2.6.2"
},
"devDependencies": {
"@babel/helpers": "^7.24.5",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@cypress/webpack-preprocessor": "^6.0.1",
"@docusaurus/core": "3.3.2",
"@docusaurus/module-type-aliases": "3.3.2",
"@docusaurus/preset-classic": "3.3.2",
"@mdx-js/react": "^3.0.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-typescript": "^11.1.6",
"@testing-library/cypress": "^10.0.1",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/preact": "^2.0.1",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.2",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-no-side-effect-class-properties": "0.0.7",
"babel-preset-react-native": "^4.0.1",
"buble": "^0.20.0",
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"cypress": "13.9.0",
"eslint": "^8.56.0",
"eslint-plugin-cypress": "^3.2.0",
"eslint-plugin-react": "7.34.1",
"flow-bin": "^0.236.0",
"flow-coverage-report": "^0.8.0",
"get-pkg-repo": "5.0.0",
"kcd-scripts": "^15.0.1",
"node-polyfill-webpack-plugin": "^3.0.0",
"npm-run-all": "^4.1.5",
"preact": "^10.22.0",
"prism-react-renderer": "^2.3.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "^0.74.1",
"react-test-renderer": "18.2.0",
"serve": "^14.2.3",
"start-server-and-test": "^2.0.3",
"typescript": "^5.4.5"
},
"eslintConfig": {
"parserOptions": {
"ecmaVersion": 2023,
"project": "./tsconfig.json",
"sourceType": "module"
},
"settings": {
"import/no-unresolved": [
2,
{
"ignore": [
"^@theme"
]
}
],
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
"extends": "./node_modules/kcd-scripts/eslint.js",
"rules": {
"react/jsx-indent": "off",
"react/prop-types": "off",
"max-lines-per-function": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/autocomplete-valid": "off",
"testing-library/prefer-user-event": "off",
"testing-library/no-node-access": "off",
"testing-library/no-container": "off",
"testing-library/render-result-naming-convention": "off"
},
"overrides": [
{
"files": [
"cypress/**/*.js"
],
"rules": {
"testing-library/prefer-screen-queries": "off",
"testing-library/await-async-query": "off"
}
}
]
},
"eslintIgnore": [
"node_modules",
"coverage",
"dist",
".docusaurus",
"build",
"typings",
"test"
],
"repository": {
"type": "git",
"url": "https://github.com/downshift-js/downshift.git"
},
"bugs": {
"url": "https://github.com/downshift-js/downshift/issues"
},
"homepage": "https://downshift-js.com",
"flow-coverage-report": {
"includeGlob": [
"test/**/*.js"
],
"threshold": 90,
"type": [
"text"
]
}
}