-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
89 lines (89 loc) · 2.15 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
{
"version": "0.1.12",
"name": "react-phone-hooks",
"description": "React hooks and utility functions for parsing and validating phone numbers.",
"keywords": [
"react",
"phone",
"input",
"hooks",
"number",
"parsing",
"utilities",
"validation"
],
"homepage": "https://github.com/typesnippet/react-phone-hooks",
"bugs": {
"url": "https://github.com/typesnippet/react-phone-hooks/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/typesnippet/react-phone-hooks"
},
"exports": {
".": {
"import": "./index.js",
"require": "./index.cjs.js",
"types": {
"default": "./index.d.ts"
}
},
"./types": {
"import": "./types.js",
"require": "./types.cjs.js",
"types": {
"default": "./types.d.ts"
}
},
"./styles": {
"import": "./styles.js",
"require": "./styles.cjs.js",
"types": {
"default": "./styles.d.ts"
}
},
"./locale": {
"import": "./locale.js",
"require": "./locale.cjs.js",
"types": {
"default": "./locale.d.ts"
}
},
"./stylesheet.json": "./stylesheet.json",
"./package.json": "./package.json"
},
"files": [
"index*",
"types*",
"styles*",
"locale*",
"LICENSE",
"metadata",
"README.md",
"package.json",
"stylesheet.json"
],
"scripts": {
"rename": "bash -c 'for file in *.js; do mv $file \"${file%.js}.$0.js\"; done'",
"build": "tsc --module commonjs && npm run rename -- cjs && tsc --declaration",
"prebuild": "rm -r metadata stylesheet.json index* locale* types* styles* || true",
"postbuild": "cp resources/stylesheet.json stylesheet.json",
"test": "jest --config jestconfig.json"
},
"license": "MIT",
"peerDependencies": {
"react": ">=16"
},
"devDependencies": {
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.1",
"@types/jest": "^29.5.7",
"@types/react": "^18.2.34",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"ts-jest": "^29.1.1",
"tslib": "^2.6.2",
"tsx": "^3.12.10",
"typescript": "^5.2.2"
}
}