forked from minwork/use-long-press
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
99 lines (99 loc) · 3.12 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
{
"name": "use-long-press",
"version": "1.0.5",
"description": "React hook for detecting click (or tap) and hold event. Easy to use, highly customizable options, thoroughly tested.",
"author": "minwork",
"license": "MIT",
"keywords": [
"react",
"hook",
"click and hold",
"tap and hold",
"long press"
],
"repository": "https://github.com/minwork/use-long-press",
"main": "./dist/index.js",
"browser": "./dist/index.umd.js",
"umd:main": "./dist/index.umd.js",
"jsnext:main": "./dist/index.modern.js",
"module": "./dist/index.module.js",
"source": "./src/index.ts",
"syntax": {
"esmodules": "./dist/index.modern.js"
},
"types": "./dist/index.d.ts",
"typings": "./dist/index.d.ts",
"exports": {
".": {
"browser": "./dist/index.module.js",
"umd": "./dist/index.umd.js",
"import": "./dist/index.module.js",
"require": "./dist/index.js"
}
},
"files": [
"dist/*"
],
"engines": {
"node": ">=10",
"npm": ">=5"
},
"scripts": {
"build": "rimraf dist/* && microbundle --jsx React.createElement --external react --name useLongPress --output dist/index.js",
"deploy": "yarn test && yarn build && npm publish",
"test": "jest",
"start": "microbundle watch",
"lint": "eslint src tests --ext .ts,.tsx"
},
"babel": {
"presets": [
"@babel/preset-typescript",
"@babel/preset-react",
"@babel/preset-env"
],
"plugins": [
"@babel/transform-runtime"
]
},
"dependencies": {},
"peerDependencies": {
"react": "^16.8.0"
},
"devDependencies": {
"@babel/core": "^7.2.2",
"@babel/plugin-transform-runtime": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/preset-typescript": "^7.6.0",
"@babel/runtime": "^7.6.0",
"@testing-library/jest-dom": "^5.5.0",
"@testing-library/react": "^9.1.4",
"@testing-library/react-hooks": "^2.0.1",
"@types/enzyme": "^3.10.5",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "^23.3.13",
"@types/react": "^16.7.22",
"@typescript-eslint/eslint-plugin": "^2.29.0",
"babel-preset-react": "^6.24.1",
"cross-env": "^5.2.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-airbnb-typescript": "^7.2.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "7.19.0",
"eslint-plugin-react-hooks": "2.5.0",
"jest": "^24.9.0",
"microbundle": "^0.11.0",
"prettier": "^1.18.2",
"react": "^16.9.0",
"react-dom": "^16.13.1",
"react-scripts": "^3.4.1",
"react-test-renderer": "^16.13.1",
"rimraf": "^3.0.0",
"typescript": "^3.2.4"
}
}