-
Notifications
You must be signed in to change notification settings - Fork 176
/
package.json
155 lines (155 loc) · 3.9 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"name": "react-intersection-observer",
"version": "8.26.1",
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API",
"type": "commonjs",
"source": "./src/index.tsx",
"main": "./dist/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./test-utils": {
"types": "./dist/test-utils.d.mts",
"require": "./dist/test-utils.js",
"default": "./dist/test-utils.mjs"
},
".": {
"types": "./dist/index.d.mts",
"require": "./dist/index.js",
"default": "./dist/index.mjs"
}
},
"author": "Daniel Schmidt",
"license": "MIT",
"sideEffects": false,
"repository": {
"type": "git",
"url": "https://github.com/thebuilder/react-intersection-observer.git"
},
"engines": {
"pnpm": ">=9"
},
"packageManager": "pnpm@9.0.6+sha256.0624e30eff866cdeb363b15061bdb7fd9425b17bc1bb42c22f5f4efdea21f6b3",
"scripts": {
"prebuild": "rm -rf dist lib",
"build": "run-s build:*",
"build:bundle": "tsup src/index.tsx",
"build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts",
"build:utils": "tsup src/test-utils.ts --no-clean --no-sourcemap",
"build:copy": "node scripts/build-copy.cjs",
"postbuild": "size-limit",
"dev": "run-p dev:*",
"dev:package": "tsup src/index.tsx --watch",
"dev:storybook": "pnpm --filter storybook dev",
"lint": "biome check .",
"release": "np --contents dist",
"version": "pnpm build",
"storybook:build": "pnpm build:bundle && pnpm --filter storybook build",
"test": "vitest"
},
"keywords": [
"react",
"component",
"hooks",
"viewport",
"intersection",
"observer",
"lazy load",
"inview",
"useInView",
"useIntersectionObserver"
],
"release": {
"branches": [
"main",
{
"name": "beta",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"pkgRoot": "dist"
}
],
"@semantic-release/github"
]
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,json,css,md,ts,tsx}": [
"biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true"
]
},
"size-limit": [
{
"path": "dist/index.mjs",
"name": "InView",
"import": "{ InView }",
"limit": "1.8 kB"
},
{
"path": "dist/index.mjs",
"name": "useInView",
"import": "{ useInView }",
"limit": "1.3 kB"
},
{
"path": "dist/index.mjs",
"name": "observe",
"import": "{ observe }",
"limit": "1 kB"
}
],
"peerDependencies": {
"react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.7.1",
"@size-limit/preset-small-lib": "^11.1.2",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^15.0.5",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"microbundle": "^0.15.1",
"npm-run-all": "^4.1.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"simple-git-hooks": "^2.11.1",
"size-limit": "^11.1.2",
"tsup": "^8.0.2",
"typescript": "^5.4.5",
"vitest": "^1.5.2"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
}
},
"pnpm": {
"peerDependencyRules": {
"allowedVersions": {
"react": "18",
"vite": "5"
}
},
"allowedDeprecatedVersions": {
"rollup-plugin-terser": "*",
"sourcemap-codec": "*",
"source-map-resolve": "*",
"source-map-url": "*",
"stable": "*",
"urix": "*"
}
}
}