-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathpackage.json
122 lines (122 loc) · 2.91 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"name": "use-file-picker",
"description": "Simple react hook to open browser file selector.",
"version": "2.1.2",
"license": "MIT",
"author": "Milosz Jankiewicz",
"homepage": "https://github.com/Jaaneek/useFilePicker",
"repository": {
"url": "https://github.com/Jaaneek/useFilePicker",
"type": "git"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.js"
},
"./validators": {
"types": "./validators.d.ts",
"import": "./dist/validators.esm.js",
"require": "./dist/validators.js"
},
"./types": "./types.d.ts"
},
"types": "./dist/index.d.ts",
"files": [
"./dist",
"./src",
"./index.d.ts",
"./validators.d.ts",
"./types.d.ts"
],
"scripts": {
"analyze": "size-limit --why",
"build": "dts build -i ./src/index.ts -o ./dist/index.js -i ./src/validators.ts -o ./dist/validators.js -f esm,cjs",
"build-storybook": "build-storybook",
"lint": "dts lint",
"lint:fix": "dts lint --fix",
"prepare": "yarn build",
"size": "size-limit",
"start": "dts watch",
"storybook": "start-storybook -p 6006",
"test": "dts test --passWithNoTests"
},
"husky": {
"hooks": {
"pre-commit": "dts lint"
}
},
"prettier": {
"printWidth": 120,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "avoid",
"endOfLine": "lf"
},
"jest": {
"testEnvironment": "jsdom",
"transform": {
"^.+\\.tsx?$": "ts-jest"
}
},
"peerDependencies": {
"react": ">=16"
},
"engines": {
"node": ">=12"
},
"size-limit": [
{
"path": "dist/use-file-picker.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/use-file-picker.esm.js",
"limit": "10 KB"
}
],
"keywords": [
"file",
"fileselector",
"file-selector",
"file-picker",
"filepicker",
"file-input",
"react-file",
"react-file-picker",
"react-file-selector"
],
"dependencies": {
"file-selector": "0.2.4"
},
"devDependencies": {
"@size-limit/preset-small-lib": "^4.9.1",
"@storybook/addon-essentials": "6.5.16",
"@storybook/addon-info": "^5.3.21",
"@storybook/addon-links": "6.5.16",
"@storybook/addons": "6.5.16",
"@storybook/react": "6.5.16",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/react": "^18.0.33",
"@types/react-dom": "^18.0.11",
"babel-loader": "^8.2.2",
"dts-cli": "^2.0.3",
"eslint": "^8.37.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^4.3.6",
"jest": "^29.5.0",
"prettier": "2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^17.0.1",
"size-limit": "^4.9.1",
"ts-jest": "^29.0.5",
"ts-xor": "1.1.0",
"tslib": "2.5.0",
"typescript": "^5.1.3"
}
}