|
5 | 5 | }, |
6 | 6 | "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.", |
7 | 7 | "devDependencies": { |
8 | | - "@commitlint/cli": "^19.3.0", |
9 | | - "@commitlint/config-conventional": "^19.2.2", |
10 | | - "@rollup/plugin-node-resolve": "^15.2.3", |
11 | | - "@rollup/plugin-typescript": "^11.1.6", |
12 | | - "@types/react": "^18.3.3", |
13 | | - "@typescript-eslint/eslint-plugin": "^7.17.0", |
14 | | - "@typescript-eslint/parser": "^7.17.0", |
15 | | - "eslint": "^9.8.0", |
16 | | - "eslint-config-prettier": "^9.1.0", |
17 | | - "eslint-plugin-prettier": "^5.2.1", |
18 | | - "eslint-plugin-react-hooks": "^4.6.2", |
19 | | - "husky": "^9.1.3", |
20 | | - "lint-staged": "^15.2.7", |
21 | | - "prettier": "^3.3.3", |
22 | | - "rollup": "^4.19.1", |
23 | | - "typescript": "^5.5.4" |
| 8 | + "@commitlint/cli": "^20.4.0", |
| 9 | + "@commitlint/config-conventional": "^20.4.0", |
| 10 | + "@types/react": "^19.2.10", |
| 11 | + "@typescript-eslint/eslint-plugin": "^8.54.0", |
| 12 | + "@typescript-eslint/parser": "^8.54.0", |
| 13 | + "eslint": "^9.39.2", |
| 14 | + "eslint-config-prettier": "^10.1.8", |
| 15 | + "eslint-plugin-prettier": "^5.5.5", |
| 16 | + "eslint-plugin-react-hooks": "^7.0.1", |
| 17 | + "husky": "^9.1.7", |
| 18 | + "lint-staged": "^16.2.7", |
| 19 | + "prettier": "^3.8.1", |
| 20 | + "typescript": "^5.9.3", |
| 21 | + "vite": "^6.3.6", |
| 22 | + "vite-plugin-dts": "^4.5.4" |
24 | 23 | }, |
25 | 24 | "engines": { |
26 | 25 | "node": ">=18.0.0" |
|
59 | 58 | "react scroll direction and position" |
60 | 59 | ], |
61 | 60 | "license": "MIT", |
62 | | - "main": "dist/es/index.js", |
| 61 | + "main": "dist/index.js", |
63 | 62 | "name": "@smakss/react-scroll-direction", |
64 | 63 | "peerDependencies": { |
65 | 64 | "react": ">=16.8.0" |
|
71 | 70 | "scripts": { |
72 | 71 | "format": "prettier --write \"**/*.+(js|jsx|json|yml|yaml|css|ts|tsx|md|gql|graphql|mdx)\"", |
73 | 72 | "format:check": "prettier -l \"**/*.+(js|jsx|json|yml|yaml|css|ts|tsx|md|gql|graphql|mdx)\"", |
74 | | - "generate": "rollup -c", |
| 73 | + "build": "vite build", |
| 74 | + "generate": "vite build", |
75 | 75 | "lint": "npx eslint --cache --cache-location ./node_modules/.cache/.eslintcache --max-warnings=0 .", |
76 | 76 | "lint:fix": "npx eslint --fix .", |
77 | 77 | "setup": "yarn && husky install", |
|
0 commit comments