-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
117 lines (117 loc) · 3.45 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
{
"name": "@yext/search-headless-react",
"version": "2.4.1",
"description": "The official React UI Bindings layer for Search Headless",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"sideEffects": false,
"license": "BSD-3-Clause",
"types": "./dist/index.d.mts",
"keywords": [
"search",
"react",
"hooks",
"react binding",
"yext"
],
"exports": {
"import": "./dist/index.mjs",
"import.types": "./dist/index.d.mts",
"require": "./dist/index.js",
"require.types": "./dist/index.d.ts"
},
"files": [
"lib",
"dist",
"src",
"THIRD-PARTY-NOTICES"
],
"scripts": {
"build": "rm -rf lib/** && rm -rf dist/** && npm run build:js && 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",
"prepublishOnly": "npm run build",
"dev": "tsc --watch -p tsconfig.json",
"lint": "eslint .",
"test": "jest",
"generate-notices": "generate-license-file --input package.json --output THIRD-PARTY-NOTICES --overwrite"
},
"dependencies": {
"@yext/search-headless": "^2.5.2",
"use-sync-external-store": "^1.1.0"
},
"devDependencies": {
"@babel/preset-env": "^7.16.5",
"@babel/preset-react": "^7.16.5",
"@babel/preset-typescript": "^7.16.5",
"@css-modules-theme/core": "^2.3.0",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^12.8.3",
"@types/jest": "^28.1.1",
"@types/use-sync-external-store": "^0.0.3",
"@types/uuid": "^8.3.3",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.62.0",
"@yext/eslint-config-slapshot": "^0.4.0",
"@yext/eslint-plugin-export-star": "^1.0.0",
"eslint": "^8.11.0",
"eslint-config-react-app": "^7.0.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-react-perf": "^3.3.1",
"eslint-plugin-tsdoc": "^0.2.14",
"generate-license-file": "^1.3.0",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"msw": "^0.36.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"ts-jest": "^28.0.4",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"uuid": "^8.3.2"
},
"peerDependencies": {
"react": "^16.14 || ^17 || ^18"
},
"jest": {
"bail": 0,
"verbose": true,
"collectCoverageFrom": [
"src/*.ts(x)?"
],
"resolver": "<rootDir>/tests/setup/resolver.ts",
"setupFilesAfterEnv": [
"<rootDir>/tests/setup/setup-env.ts"
],
"transformIgnorePatterns": [
"/node_modules/(?!@yext/search-headless)"
],
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.jsx?$": "babel-jest"
},
"moduleDirectories": [
"node_modules",
"<rootDir>/src"
],
"testEnvironment": "jsdom",
"testMatch": [
"<rootDir>/tests/**/*.(test).ts(x)?"
],
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.json"
}
}
},
"repository": {
"type": "git",
"url": "https://github.com/yext/search-headless-react.git"
}
}