|
4 | 4 | "description": "Monitor if a component is inside the viewport, using IntersectionObserver API", |
5 | 5 | "source": "./src/index.tsx", |
6 | 6 | "main": "./dist/react-intersection-observer.js", |
7 | | - "module": "./dist/react-intersection-observer.mjs", |
| 7 | + "module": "./dist/react-intersection-observer.esm.js", |
| 8 | + "unpkg": "./dist/react-intersection-observer.umd.js", |
| 9 | + "types": "./dist/index.d.ts", |
8 | 10 | "exports": { |
9 | | - "./test-utils": "./test-utils.js", |
| 11 | + "./test-utils": { |
| 12 | + "default": "./dist/test-utils.js", |
| 13 | + "types": "./dist/test-utils.d.ts" |
| 14 | + }, |
10 | 15 | ".": { |
11 | | - "require": "./react-intersection-observer.js", |
12 | | - "default": "./react-intersection-observer.modern.mjs" |
| 16 | + "module": "./dist/react-intersection-observer.esm.js", |
| 17 | + "require": "./dist/react-intersection-observer.js", |
| 18 | + "default": "./dist/react-intersection-observer.modern.mjs", |
| 19 | + "types": "./dist/index.d.ts" |
13 | 20 | } |
14 | 21 | }, |
15 | | - "unpkg": "./dist/react-intersection-observer.umd.js", |
16 | | - "typings": "./dist/index.d.ts", |
| 22 | + "files": ["dist", "README.md", "LICENSE", "package.json"], |
17 | 23 | "author": "Daniel Schmidt", |
18 | 24 | "sideEffects": false, |
19 | 25 | "repository": { |
|
51 | 57 | "build": "run-s build:*", |
52 | 58 | "build:bundle": "microbundle --name ReactIntersectionObserver --jsx React.createElement -f cjs,umd,es,modern --no-compress", |
53 | 59 | "build:utils": "tsc -p tsconfig.test.json", |
54 | | - "build:copy": "node scripts/build-copy.js", |
55 | 60 | "postbuild": "size-limit", |
56 | 61 | "dev": "yarn run storybook", |
57 | 62 | "lint": "eslint . --ext js,ts,tsx", |
|
73 | 78 | "plugins": [ |
74 | 79 | "@semantic-release/commit-analyzer", |
75 | 80 | "@semantic-release/release-notes-generator", |
76 | | - [ |
77 | | - "@semantic-release/npm", |
78 | | - { |
79 | | - "pkgRoot": "dist" |
80 | | - } |
81 | | - ], |
| 81 | + "@semantic-release/npm", |
82 | 82 | "@semantic-release/github" |
83 | 83 | ] |
84 | 84 | }, |
|
96 | 96 | }, |
97 | 97 | "size-limit": [ |
98 | 98 | { |
99 | | - "path": "dist/react-intersection-observer.mjs", |
| 99 | + "path": "dist/react-intersection-observer.esm.js", |
100 | 100 | "name": "InView", |
101 | 101 | "import": "{ InView }", |
102 | 102 | "limit": "1.8 kB" |
103 | 103 | }, |
104 | 104 | { |
105 | | - "path": "dist/react-intersection-observer.mjs", |
| 105 | + "path": "dist/react-intersection-observer.esm.js", |
106 | 106 | "name": "useInView", |
107 | 107 | "import": "{ useInView }", |
108 | 108 | "limit": "1.3 kB" |
109 | 109 | }, |
110 | 110 | { |
111 | | - "path": "dist/react-intersection-observer.mjs", |
| 111 | + "path": "dist/react-intersection-observer.esm.js", |
112 | 112 | "name": "observe", |
113 | 113 | "import": "{ observe }", |
114 | 114 | "limit": "1 kB" |
|
0 commit comments