|
3 | 3 | "version": "8.26.1", |
4 | 4 | "description": "Monitor if a component is inside the viewport, using IntersectionObserver API", |
5 | 5 | "type": "commonjs", |
6 | | - "source": "./src/index.tsx", |
7 | | - "main": "./dist/index.js", |
8 | | - "module": "./dist/esm/index.js", |
9 | | - "types": "./dist/index.d.ts", |
| 6 | + "source": "src/index.tsx", |
| 7 | + "main": "dist/index.js", |
| 8 | + "module": "dist/esm/index.js", |
| 9 | + "types": "dist/index.d.ts", |
10 | 10 | "exports": { |
11 | 11 | "./test-utils": { |
12 | 12 | "types": "./dist/test-utils.d.mts", |
|
19 | 19 | "default": "./dist/index.mjs" |
20 | 20 | } |
21 | 21 | }, |
| 22 | + "files": ["dist"], |
22 | 23 | "author": "Daniel Schmidt", |
23 | 24 | "license": "MIT", |
24 | 25 | "sideEffects": false, |
25 | 26 | "repository": { |
26 | 27 | "type": "git", |
27 | 28 | "url": "https://github.com/thebuilder/react-intersection-observer.git" |
28 | 29 | }, |
29 | | - "engines": { |
30 | | - "pnpm": ">=9" |
31 | | - }, |
32 | 30 | "packageManager": "pnpm@9.5.0+sha256.dbdf5961c32909fb030595a9daa1dae720162e658609a8f92f2fa99835510ca5", |
33 | 31 | "scripts": { |
34 | 32 | "prebuild": "rm -rf dist lib", |
35 | 33 | "build": "run-s build:*", |
36 | 34 | "build:bundle": "tsup src/index.tsx", |
37 | 35 | "build:legacy": "tsup src/index.tsx --format esm --legacy-output --no-clean --no-dts", |
38 | 36 | "build:utils": "tsup src/test-utils.ts --no-clean --no-sourcemap", |
39 | | - "build:copy": "node scripts/build-copy.cjs", |
40 | 37 | "postbuild": "size-limit", |
41 | 38 | "dev": "run-p dev:*", |
42 | 39 | "dev:package": "tsup src/index.tsx --watch", |
43 | 40 | "dev:storybook": "pnpm --filter storybook dev", |
44 | 41 | "lint": "biome check .", |
45 | | - "release": "np --contents dist", |
46 | 42 | "version": "pnpm build", |
47 | 43 | "storybook:build": "pnpm build:bundle && pnpm --filter storybook build", |
48 | 44 | "test": "vitest" |
|
0 commit comments