-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
106 lines (106 loc) · 2.76 KB
/
package.json
File metadata and controls
106 lines (106 loc) · 2.76 KB
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
{
"name": "react-shrink",
"version": "1.0.0",
"description": "Blazing-fast client-side image compression library for React with Web Worker support. Compress images 70-99% with WebP, AVIF, JPEG. Zero dependencies, TypeScript-first.",
"author": "Badla Moussaab",
"license": "MIT",
"keywords": [
"react",
"image-compression",
"image-optimization",
"client-side",
"browser",
"webp",
"avif",
"jpeg",
"compression",
"resize",
"optimize",
"web-worker",
"typescript",
"nextjs",
"vite",
"upload",
"heic",
"png",
"batch-processing",
"frontend",
"performance"
],
"repository": {
"type": "git",
"url": "https://github.com/MoussaabBadla/react-shrink.git"
},
"bugs": {
"url": "https://github.com/MoussaabBadla/react-shrink/issues"
},
"homepage": "https://github.com/MoussaabBadla/react-shrink#readme",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"sideEffects": false,
"scripts": {
"dev": "vite --config demo/vite.config.ts",
"build": "tsc --project tsconfig.build.json && vite build",
"build:demo": "vite build --config demo/vite.config.ts",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write \"src/**/*.{ts,tsx}\" \"demo/**/*.{ts,tsx}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx}\" \"demo/**/*.{ts,tsx}\"",
"typecheck": "tsc --noEmit",
"prepare": "husky install",
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"react": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"heic2any": {
"optional": true
}
},
"optionalDependencies": {
"heic2any": "^0.0.4"
},
"devDependencies": {
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitest/coverage-v8": "^1.1.0",
"eslint": "^8.56.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"prettier": "^3.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vite-plugin-dts": "^3.7.0",
"vitest": "^1.1.0"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
}
}