-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
73 lines (73 loc) · 1.67 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
{
"name": "use-clamp-text",
"description": "react hook to clamp multiline text to a given height in a responsive way (in < 2.5kb)",
"version": "1.1.1",
"main": "lib/index.js",
"module": "esm/index.js",
"types": "./lib",
"files": [
"esm/*",
"lib/*",
"LICENSE",
"src",
"package.json",
"README.md"
],
"sideEffects": false,
"scripts": {
"size": "yarn build:es && size-limit",
"build": "rm -rf ./lib/* ./esm/* && yarn size && yarn build:cjs && yarn build:es",
"build:cjs": "tsc",
"build:es": "tsc -m esNext --outDir esm",
"prepublishOnly": "yarn build"
},
"engines": {
"node": ">=12.0.0"
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/drenther/use-clamp-text.git"
},
"keywords": [
"react",
"react-hook",
"hook",
"clamp",
"text",
"clamp-text",
"multiline",
"responsive"
],
"peerDependencies": {
"react": ">=16.8.0"
},
"homepage": "https://github.com/drenther/use-clamp-text#readme",
"author": {
"name": "Soumyajit Pathak"
},
"license": "MIT",
"dependencies": {
"rooks": "^5.11.0"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^7.0.8",
"@types/react": "^18.0.8",
"@types/react-dom": "^18.0.3",
"@typescript-eslint/eslint-plugin": "^5.21.0",
"@typescript-eslint/parser": "^5.21.0",
"eslint": "^8.14.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react-app": "^7.0.1",
"prettier": "^2.6.2",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"size-limit": "^7.0.8",
"typescript": "^4.6.4"
},
"size-limit": [
{
"path": "esm/index.js",
"limit": "3 KB"
}
]
}