-
Notifications
You must be signed in to change notification settings - Fork 13
/
package.json
65 lines (65 loc) · 1.52 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
{
"name": "detect-it",
"version": "4.0.1",
"description": "Detect if a device is mouse only, touch only, or hybrid",
"main": "dist/detect-it.cjs.js",
"module": "dist/detect-it.esm.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"scripts": {
"build": "rollpkg build --addUmdBuild",
"watch": "rollpkg watch",
"prepublishOnly": "npm run lint && npm test && npm run build",
"lint": "eslint src",
"test": "jest",
"test:watch": "jest --watchAll",
"coverage": "npx live-server coverage/lcov-report",
"lintStaged": "lint-staged"
},
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/rafgraph/detect-it.git"
},
"keywords": [
"detect",
"device",
"mouse",
"touch",
"hybrid",
"passive events",
"pointer events"
],
"author": "Rafael Pedicini <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/rafgraph/detect-it/issues"
},
"homepage": "https://detect-it.rafgraph.dev",
"devDependencies": {
"lint-staged": "^10.5.4",
"pre-commit": "^1.2.2",
"rollpkg": "^0.5.5",
"typescript": "^4.2.4"
},
"pre-commit": "lintStaged",
"lint-staged": {
"(src/**/*|demo/src/**/*)": [
"prettier --write --ignore-unknown"
]
},
"prettier": "rollpkg/configs/prettier.json",
"eslintConfig": {
"extends": [
"./node_modules/rollpkg/configs/eslint"
],
"rules": {
"jest/no-mocks-import": "off"
}
},
"jest": {
"preset": "rollpkg"
}
}