-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
82 lines (82 loc) · 1.69 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
{
"name": "text-fragments",
"version": "0.1.1",
"source": "src/index.ts",
"exports": {
".": "./dist/index.modern.js",
"./react": "./dist/react.modern.js"
},
"main": "dist/index.js",
"module": "dist/index.module.js",
"unpkg": "./dist/index.umd.js",
"typings": "dist/index.d.ts",
"license": "MIT",
"files": [
"dist",
"src",
"react.js",
"react.d.ts"
],
"keywords": [
"text-fragments",
"selection",
"dom-selection",
"dom",
"text",
"fragments"
],
"engines": {
"node": ">=12"
},
"scripts": {
"build": "microbundle src/*.ts",
"test": "jest --passWithNoTests",
"postinstall": "husky install",
"prepare": "yarn build && cp dist/react.d.ts react.d.ts",
"size": "size-limit",
"analyze": "size-limit --why"
},
"peerDependencies": {
"react": ">=16"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"author": "Fatih Kalifa",
"size-limit": [
{
"path": "dist/index.modern.js",
"limit": "1.3 KB"
}
],
"devDependencies": {
"@babel/preset-typescript": "^7.16.7",
"@size-limit/preset-small-lib": "^7.0.8",
"@types/jest": "^27.4.1",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.1",
"husky": "^7.0.4",
"jest": "^27.5.1",
"microbundle": "^0.14.2",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"size-limit": "^7.0.8",
"tslib": "^2.3.1",
"typescript": "^4.6.3"
}
}