-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
92 lines (92 loc) · 2.4 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
{
"name": "@ukorvl/react-on-screen",
"version": "1.0.7",
"description": "Lightweight typescript library to detect React elements visibility",
"license": "MIT",
"author": "ukorvl",
"repository": "https://github.com/ukorvl/react-on-screen",
"homepage": "https://github.com/ukorvl/react-on-screen#readme",
"bugs": {
"url": "https://github.com/ukorvl/react-on-screen/issues"
},
"main": "build/react-on-screen.cjs.js",
"module": "build/react-on-screen.esm.js",
"unpkg": "build/react-on-screen.standalone.js",
"files": [
"build"
],
"types": "build/typings.d.ts",
"scripts": {
"prebuild": "rimraf build",
"build": "rollup -c",
"test": "jest",
"lint": "biome lint ./lib",
"format": "biome format --write ./lib",
"prepare": "husky install"
},
"keywords": [
"react",
"typescript",
"onscreen",
"intersection observer",
"visibility"
],
"peerDependencies": {
"react": ">=16.12.0",
"react-dom": ">=16.12.0"
},
"dependencies": {
"hoist-non-react-statics": "^3.3.2"
},
"devDependencies": {
"@biomejs/biome": "^1.3.1",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.2",
"@size-limit/preset-small-lib": "^9.0.0",
"@testing-library/dom": "^8.19.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/jest": "^29.2.4",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"husky": "^8.0.2",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jsdom-testing-mocks": "^1.7.0",
"rimraf": "^4.1.2",
"rollup": "^2.79.1",
"rollup-plugin-dts": "^4.2.3",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-filesize": "^10.0.0",
"size-limit": "^9.0.0",
"ts-jest": "^29.0.3",
"typescript": "4.7"
},
"publishConfig": {
"access": "public",
"provenance": true
},
"lint-staged": {
"*.{js,ts,tsx}": "npm run format"
},
"jest": {
"roots": [
"<rootDir>/lib"
],
"testMatch": [
"**/__tests__/**/*.test.{ts,tsx}"
],
"preset": "ts-jest",
"testEnvironment": "jsdom",
"setupFilesAfterEnv": [
"@testing-library/jest-dom/extend-expect"
],
"testPathIgnorePatterns": [
"<rootDir>/build/",
"<rootDir>/node_modules/"
],
"resetMocks": true
}
}