|
25 | 25 | "url": "https://github.com/thebuilder/react-intersection-observer.git" |
26 | 26 | }, |
27 | 27 | "license": "MIT", |
| 28 | + "scripts": { |
| 29 | + "prebuild": "rm -rf dist lib", |
| 30 | + "build": "run-s build:*", |
| 31 | + "build:bundle": "microbundle --name ReactIntersectionObserver --jsx React.createElement -f cjs,umd,es,modern --no-compress", |
| 32 | + "build:utils": "tsc -p tsconfig.test.json", |
| 33 | + "build:copy": "node scripts/build-copy.js", |
| 34 | + "postbuild": "size-limit", |
| 35 | + "dev": "pnpm --filter storybook dev", |
| 36 | + "lint": "eslint . --ext js,ts,tsx", |
| 37 | + "release": "np --contents dist", |
| 38 | + "version": "pnpm build", |
| 39 | + "storybook:build": "pnpm --filter storybook build", |
| 40 | + "test": "vitest" |
| 41 | + }, |
28 | 42 | "keywords": [ |
29 | 43 | "react", |
30 | 44 | "component", |
|
50 | 64 | "example/**", |
51 | 65 | "webpack.config.js" |
52 | 66 | ], |
53 | | - "scripts": { |
54 | | - "prebuild": "rm -rf dist lib", |
55 | | - "build": "run-s build:*", |
56 | | - "build:bundle": "microbundle --name ReactIntersectionObserver --jsx React.createElement -f cjs,umd,es,modern --no-compress", |
57 | | - "build:utils": "tsc -p tsconfig.test.json", |
58 | | - "build:copy": "node scripts/build-copy.js", |
59 | | - "postbuild": "size-limit", |
60 | | - "dev": "yarn run storybook", |
61 | | - "lint": "eslint . --ext js,ts,tsx", |
62 | | - "release": "np --contents dist", |
63 | | - "version": "yarn build", |
64 | | - "pretty": "prettier '**/*.{js,ts,tsx,md,json,yml,html}' --write", |
65 | | - "storybook": "start-storybook -p 9000", |
66 | | - "storybook:build": "build-storybook --output-dir example", |
67 | | - "test": "vitest" |
68 | | - }, |
69 | 67 | "release": { |
70 | 68 | "branches": [ |
71 | 69 | "main", |
|
122 | 120 | "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" |
123 | 121 | }, |
124 | 122 | "devDependencies": { |
125 | | - "@babel/core": "^7.18.9", |
126 | | - "@babel/preset-env": "^7.18.9", |
127 | | - "@size-limit/preset-small-lib": "^7.0.8", |
128 | | - "@storybook/addon-actions": "6.5.9", |
129 | | - "@storybook/addon-controls": "6.5.9", |
130 | | - "@storybook/addon-docs": "6.5.9", |
131 | | - "@storybook/addon-viewport": "6.5.9", |
132 | | - "@storybook/addons": "6.5.9", |
133 | | - "@storybook/builder-vite": "^0.2.0", |
134 | | - "@storybook/react": "6.5.9", |
135 | | - "@storybook/theming": "6.5.9", |
136 | | - "@testing-library/jest-dom": "^5.16.4", |
137 | | - "@testing-library/react": "^13.3.0", |
138 | | - "@types/jest": "^27.5.1", |
139 | | - "@types/react": "^18.0.15", |
140 | | - "@types/react-dom": "^18.0.6", |
141 | | - "@typescript-eslint/eslint-plugin": "^5.30.7", |
142 | | - "@typescript-eslint/parser": "^5.30.7", |
143 | | - "autoprefixer": "^10.4.7", |
144 | | - "eslint": "^8.20.0", |
145 | | - "eslint-plugin-import": "^2.26.0", |
146 | | - "eslint-plugin-jsx-a11y": "^6.6.1", |
147 | | - "eslint-plugin-react": "^7.30.1", |
| 123 | + "@size-limit/preset-small-lib": "^8.2.4", |
| 124 | + "@testing-library/jest-dom": "^5.16.5", |
| 125 | + "@testing-library/react": "^14.0.0", |
| 126 | + "@types/jest": "^29.4.0", |
| 127 | + "@types/react": "^18.0.28", |
| 128 | + "@types/react-dom": "^18.0.11", |
| 129 | + "@typescript-eslint/eslint-plugin": "^5.54.0", |
| 130 | + "@typescript-eslint/parser": "^5.54.0", |
| 131 | + "eslint": "^8.35.0", |
| 132 | + "eslint-plugin-import": "^2.27.5", |
| 133 | + "eslint-plugin-jsx-a11y": "^6.7.1", |
| 134 | + "eslint-plugin-react": "^7.32.2", |
148 | 135 | "eslint-plugin-react-hooks": "^4.6.0", |
149 | | - "framer-motion": "^6.5.1", |
150 | | - "intersection-observer": "^0.12.2", |
151 | | - "jsdom": "^20.0.0", |
152 | | - "lint-staged": "^13.0.3", |
153 | | - "microbundle": "^0.15.0", |
| 136 | + "jsdom": "^21.1.0", |
| 137 | + "lint-staged": "^13.1.2", |
| 138 | + "microbundle": "^0.15.1", |
154 | 139 | "npm-run-all": "^4.1.5", |
155 | | - "postcss": "^8.4.14", |
156 | | - "prettier": "^2.7.1", |
157 | | - "prettier-plugin-pkg": "^0.16.0", |
158 | | - "prettier-plugin-tailwindcss": "^0.1.12", |
| 140 | + "prettier": "^2.8.4", |
159 | 141 | "react": "^18.2.0", |
160 | 142 | "react-dom": "^18.2.0", |
161 | | - "simple-git-hooks": "^2.8.0", |
162 | | - "size-limit": "^7.0.8", |
163 | | - "tailwindcss": "^3.1.6", |
164 | | - "typescript": "^4.7.4", |
165 | | - "vite": "^3.0.2", |
166 | | - "vitest": "^0.18.1" |
| 143 | + "simple-git-hooks": "^2.8.1", |
| 144 | + "size-limit": "^8.2.4", |
| 145 | + "typescript": "^4.9.5", |
| 146 | + "vitest": "^0.29.2" |
| 147 | + }, |
| 148 | + "pnpm": { |
| 149 | + "peerDependencyRules": { |
| 150 | + "allowedVersions": { |
| 151 | + "react": "18" |
| 152 | + } |
| 153 | + }, |
| 154 | + "allowedDeprecatedVersions": { |
| 155 | + "rollup-plugin-terser": "*", |
| 156 | + "sourcemap-codec": "*", |
| 157 | + "source-map-resolve": "*", |
| 158 | + "source-map-url": "*", |
| 159 | + "stable": "*", |
| 160 | + "urix": "*" |
| 161 | + } |
167 | 162 | } |
168 | 163 | } |
0 commit comments