/
package.json
executable file
·119 lines (119 loc) · 3.02 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
{
"name": "use-xhr",
"version": "0.0.5",
"description": "React hook for chunked file upload",
"repository": "mortzmortz/use-xhr",
"homepage": "http://github.com/mortzmortz/use-xhr",
"author": "Gerion Herbst",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"typings": "dist/types/index.d.ts",
"files": [
"dist"
],
"engines": {
"node": ">=14.0.0"
},
"keywords": [
"react",
"hooks",
"xhr",
"file-upload",
"chunk-upload"
],
"scripts": {
"build": "cross-env NODE_ENV=production rollup -c",
"build:watch": "rollup -c -w",
"export": "npm pack",
"release": "standard-version",
"prepack": "npm run clean && npm run build && npm test",
"test": "jest lib --coverage --colors --passWithNoTests",
"test:watch": "jest lib --watch",
"analyze": "npx source-map-explorer 'dist/esm/*.js'",
"check": "npx npm-check --update",
"lint": "eslint lib",
"clean": "rm -rf dist"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0"
},
"dependencies": {
"attr-accept": "^2.2.2",
"file-selector": "^0.2.4",
"uuid": "^8.3.2"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "^7.16.4",
"@babel/preset-react": "7.16.0",
"@babel/preset-typescript": "7.16.0",
"@rollup/plugin-babel": "5.3.0",
"@rollup/plugin-node-resolve": "13.0.6",
"@testing-library/jest-dom": "^5.15.1",
"@testing-library/react-hooks": "7.0.2",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"babel-eslint": "10.1.0",
"babel-loader": "8.2.3",
"cross-env": "7.0.3",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-config-react-app": "6.0.0",
"eslint-plugin-flowtype": "5.10.0",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "4.3.0",
"jest": "^27.4.2",
"prettier": "^2.5.0",
"rollup": "^2.60.2",
"rollup-plugin-peer-deps-external": "2.2.4",
"rollup-plugin-typescript2": "^0.31.1",
"standard-version": "9.3.2",
"typescript": "4.4.4"
},
"prettier": {
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "avoid",
"bracketSpacing": true
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"react-app",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "avoid",
"bracketSpacing": true
}
]
}
},
"eslintIgnore": [
"node_modules",
"dist"
],
"jest": {
"testEnvironment": "jsdom",
"watchPathIgnorePatterns": [
"dist"
],
"setupFilesAfterEnv": [
"<rootDir>/setup.tests.js"
]
}
}