forked from yext/search-ui-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
173 lines (173 loc) · 5.77 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
{
"name": "@yext/search-ui-react",
"version": "1.5.0",
"description": "A library of React Components for powering Yext Search integrations",
"author": "[email protected]",
"license": "BSD-3-Clause",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"sideEffects": false,
"types": "./dist/index.d.ts",
"keywords": [
"search",
"nlp",
"ai",
"answers",
"yext",
"react",
"components",
"tailwindcss"
],
"exports": {
".": {
"import": "./dist/index.mjs",
"import.types": "./dist/index.d.mts",
"require": "./dist/index.js",
"require.types": "./dist/index.d.ts"
},
"./bundle.css": "./lib/bundle.css",
"./bundle-no-resets.css": "./lib/bundle-no-resets.css"
},
"files": [
"lib",
"src",
"THIRD-PARTY-NOTICES",
"dist"
],
"scripts": {
"build": "rm -rf lib/** && rm -rf dist/** && npm run build:js && npm run build:css && npm run api-extractor && npm run generate-docs && npm run generate-notices",
"build:js": "tsup src/index.ts --dts --sourcemap --format esm,cjs && npm run create:lib-esm && npm run create:lib-commonjs",
"create:lib-esm": "mkdir -p lib/esm && cp dist/index.mjs dist/index.d.mts dist/index.mjs.map lib/esm",
"create:lib-commonjs": "mkdir -p lib/commonjs && cp dist/index.js dist/index.d.ts dist/index.js.map lib/commonjs",
"build:css": "tailwindcss -o ./lib/bundle.css --minify -c tailwind.config.cjs && tailwindcss -o ./lib/bundle-no-resets.css --minify -c tailwind-no-resets.config.cjs",
"dev": "tsc --watch -p tsconfig.json",
"lint": "eslint . --max-warnings=0",
"api-extractor": "api-extractor run --local --verbose && npm run copyTypes",
"copyTypes": "cp dist/index.d.ts dist/index.d.mts && cp dist/index.d.mts lib/esm && cp dist/index.d.ts lib/commonjs",
"generate-docs": "api-documenter markdown --input-folder temp --output-folder docs && rm -rf temp",
"generate-notices": "generate-license-file --input package.json --output ./THIRD-PARTY-NOTICES --overwrite",
"prepublishOnly": "npm run build",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"wcag": "test-storybook -c .storybook/wcag",
"test:unit": "NODE_OPTIONS=--experimental-vm-modules jest",
"test:visual": "./tests/scripts/visual-coverage.sh",
"test": "./tests/scripts/combined-coverage.sh",
"update-snapshots": "test-storybook -c .storybook/snapshots -u"
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/preset-env": "^7.14.7",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.14.5",
"@etchteam/storybook-addon-status": "^4.2.4",
"@microsoft/api-documenter": "^7.23.14",
"@microsoft/api-extractor": "^7.38.5",
"@reduxjs/toolkit": "^1.8.6",
"@storybook/addon-a11y": "^7.4.5",
"@storybook/addon-actions": "^7.4.5",
"@storybook/addon-coverage": "^0.0.9",
"@storybook/addon-essentials": "^7.4.5",
"@storybook/addon-interactions": "^7.4.5",
"@storybook/addon-links": "^7.4.5",
"@storybook/react": "^7.4.5",
"@storybook/react-webpack5": "^7.4.5",
"@storybook/test-runner": "^0.15.2",
"@storybook/testing-library": "^0.2.1",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/classnames": "^2.3.1",
"@types/jest": "^29.1.0",
"@types/jest-image-snapshot": "^6.2.3",
"@types/lodash": "^4.14.199",
"@types/mapbox-gl": "^2.7.5",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"@yext/eslint-config-slapshot": "^0.5.0",
"@yext/search-headless-react": "^2.4.0",
"axe-core": "^4.8.2",
"axe-playwright": "^1.2.3",
"babel-jest": "^29.7.0",
"eslint": "^8.11.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-react-perf": "^3.3.1",
"generate-license-file": "^1.3.0",
"jest": "^29.1.1",
"jest-environment-jsdom": "^29.1.1",
"jest-image-snapshot": "^6.2.0",
"msw": "^0.36.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.4.5",
"tailwindcss": "^3.0.23",
"ts-jest": "^29.1.1",
"tsup": "^8.0.1",
"typescript": "^5.2.2",
"util": "^0.12.5"
},
"peerDependencies": {
"@yext/search-headless-react": "^2.4.0",
"react": "^16.14 || ^17 || ^18",
"react-dom": "^16.14 || ^17 || ^18"
},
"jest": {
"bail": 0,
"verbose": true,
"collectCoverage": true,
"collectCoverageFrom": [
"src/**",
"!src/models/**"
],
"coverageDirectory": "coverage/unit",
"moduleFileExtensions": [
"js",
"ts",
"tsx"
],
"moduleDirectories": [
"node_modules",
"<rootDir>"
],
"setupFilesAfterEnv": [
"<rootDir>/tests/__setup__/setup-env.ts"
],
"testEnvironment": "jsdom",
"testMatch": [
"<rootDir>/tests/**/*.test.ts?(x)"
],
"preset": "ts-jest",
"transform": {
"^.+\\.(ts|tsx)?$": "ts-jest",
"^.+\\.(js|jsx)$": "babel-jest"
},
"testPathIgnorePatterns": [
"<rootDir>/tests/__setup__/*",
"<rootDir>/tests/__fixtures__/*"
],
"moduleNameMapper": {
"./SearchCore": "<rootDir>/tests/__fixtures__/core/SearchCore.ts"
},
"resetMocks": true,
"restoreMocks": true
},
"dependencies": {
"@restart/ui": "^1.0.1",
"@tailwindcss/forms": "^0.5.0",
"@yext/analytics": "^0.6.5",
"classnames": "^2.3.1",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"mapbox-gl": "^2.9.2",
"prop-types": "^15.8.1",
"react-collapsed": "^4.1.2",
"recent-searches": "^1.0.5",
"tailwind-merge": "^1.3.0",
"use-isomorphic-layout-effect": "^1.1.2"
},
"repository": {
"type": "git",
"url": "https://github.com/yext/search-ui-react.git"
}
}