-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
112 lines (112 loc) · 3.97 KB
/
package.json
File metadata and controls
112 lines (112 loc) · 3.97 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
107
108
109
110
111
112
{
"author": "SMAKSS",
"bugs": {
"url": "https://github.com/SMAKSS/react-scroll-direction/issues"
},
"description": "Enhance your React apps with advanced scroll detection using @smakss/react-scroll-direction. This powerful hook not only detects scroll direction but also provides scroll position information. Ideal for React, Remix, Next.js, and Gatsby projects, it comes with adjustable sensitivity and supports ES Modules.",
"devDependencies": {
"@commitlint/cli": "^20.4.0",
"@commitlint/config-conventional": "^20.4.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^12.0.3",
"@semantic-release/npm": "^13.1.3",
"@semantic-release/release-notes-generator": "^14.1.0",
"@testing-library/react": "^16.3.0",
"@types/react": "^19.2.10",
"@typescript-eslint/eslint-plugin": "^8.54.0",
"@typescript-eslint/parser": "^8.54.0",
"@vitest/coverage-v8": "^2.1.9",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react-hooks": "^7.0.1",
"husky": "^9.1.7",
"jsdom": "^27.4.0",
"lint-staged": "^16.2.7",
"prettier": "^3.8.1",
"prettier-plugin-organize-imports": "^4.3.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"semantic-release": "^25.0.3",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vite-plugin-dts": "^4.5.4",
"vitest": "^2.1.9"
},
"engines": {
"node": ">=22.14.0"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": [
"dist"
],
"homepage": "https://github.com/SMAKSS/react-scroll-direction#readme",
"keywords": [
"react-scroll-direction",
"scroll-position-react",
"react-hook-scroll-position",
"scroll-detection-react",
"scroll-position-detection",
"scroll-direction-detection",
"react-hook-scroll",
"direction-and-position-detection",
"scroll-hook",
"npm",
"pnpm",
"react",
"remix",
"nextjs",
"gatsby",
"scroll",
"direction",
"position",
"SMAKSS",
"EcmaScript",
"TypeScript",
"detect scroll in react",
"react scroll position",
"react scroll direction and position"
],
"license": "MIT",
"main": "dist/index.js",
"name": "@smakss/react-scroll-direction",
"peerDependencies": {
"react": ">=16.8.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SMAKSS/react-scroll-direction.git"
},
"scripts": {
"format": "prettier --write \"**/*.+(js|jsx|json|yml|yaml|css|ts|tsx|md|gql|graphql|mdx)\"",
"format:check": "prettier -l \"**/*.+(js|jsx|json|yml|yaml|css|ts|tsx|md|gql|graphql|mdx)\"",
"build": "rm -rf dist && vite build",
"build:playground": "pnpm -C playground build",
"generate": "rm -rf dist && vite build",
"lint:main": "eslint --cache --cache-location ./node_modules/.cache/.eslintcache --max-warnings=0 \"src/**/*.{js,jsx,ts,tsx}\" eslint.config.js vite.config.ts --no-warn-ignored",
"lint:playground": "pnpm -C playground lint",
"lint": "pnpm lint:main && pnpm lint:playground",
"lint:fix:main": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\" eslint.config.js vite.config.ts --no-warn-ignored",
"lint:fix:playground": "pnpm -C playground eslint --fix . --no-warn-ignored",
"prepare": "if [ \"$NODE_ENV\" != \"production\" ]; then husky; fi",
"setup": "pnpm install && husky",
"release": "semantic-release",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"typecheck:main": "tsc -b .",
"typecheck:playground": "pnpm build && pnpm -C playground exec tsc -p tsconfig.json",
"typecheck": "pnpm typecheck:main && pnpm typecheck:playground",
"update:deps": "rm -rf node_modules pnpm-lock.yaml && npx npm-check-updates -u && pnpm install"
},
"type": "module",
"types": "./dist/index.d.ts",
"version": "4.2.0"
}