|
2 | 2 | "name": "react-intersection-observer", |
3 | 3 | "version": "8.22.6", |
4 | 4 | "description": "Monitor if a component is inside the viewport, using IntersectionObserver API", |
5 | | - "main": "dist/react-intersection-observer.cjs.js", |
6 | | - "module": "dist/react-intersection-observer.esm.js", |
7 | | - "unpkg": "dist/react-intersection-observer.umd.min.js", |
8 | | - "typings": "dist/index.d.ts", |
| 5 | + "main": "react-intersection-observer.cjs.js", |
| 6 | + "module": "react-intersection-observer.esm.js", |
| 7 | + "unpkg": "react-intersection-observer.umd.min.js", |
| 8 | + "typings": "index.d.ts", |
9 | 9 | "author": "Daniel Schmidt", |
10 | | - "files": [ |
11 | | - "dist/*", |
12 | | - "test-utils.js", |
13 | | - "test-utils.d.ts" |
14 | | - ], |
| 10 | + "private": true, |
15 | 11 | "repository": { |
16 | 12 | "type": "git", |
17 | 13 | "url": "https://github.com/thebuilder/react-intersection-observer.git" |
|
49 | 45 | "build": "run-s build:*", |
50 | 46 | "build:lib": "rollup -c", |
51 | 47 | "build:ts": "tsc -p tsconfig.build.json && tsc -p tsconfig.test.json", |
| 48 | + "build:copy": "copyfiles -f package.json README.md LICENSE dist && json -I -f dist/package.json -e \"this.private=false; this.devDependencies=undefined; this.optionalDependencies=undefined; this.scripts=undefined; this.husky=undefined; this.prettier=undefined; this.jest=undefined; this.eslintConfig=undefined; this.eslintIgnore=undefined; this.np=undefined;\"", |
52 | 49 | "dev": "concurrently -k -r 'jest --watch' 'yarn run storybook'", |
53 | 50 | "lint": "eslint . --ext js,ts,tsx", |
54 | 51 | "preversion": "yarn build", |
|
57 | 54 | "storybook:build": "build-storybook --output-dir example", |
58 | 55 | "test": "jest" |
59 | 56 | }, |
| 57 | + "np": { |
| 58 | + "contents": "dist" |
| 59 | + }, |
60 | 60 | "husky": { |
61 | 61 | "hooks": { |
62 | 62 | "pre-commit": "tsc && lint-staged" |
|
106 | 106 | }, |
107 | 107 | "dependencies": { |
108 | 108 | "@babel/runtime": "^7.0.0", |
109 | | - "invariant": "^2.0.0" |
| 109 | + "invariant": "^2.2.4" |
110 | 110 | }, |
111 | 111 | "peerDependencies": { |
112 | 112 | "react": "^15.0.0 || ^16.0.0 || ^17.0.0" |
|
136 | 136 | "babel-jest": "^24.5.0", |
137 | 137 | "babel-loader": "^8.0.5", |
138 | 138 | "concurrently": "^4.1.0", |
| 139 | + "copyfiles": "^2.1.0", |
139 | 140 | "coveralls": "^3.0.3", |
140 | 141 | "eslint": "^5.15.2", |
141 | 142 | "eslint-config-react-app": "^4.0.0", |
|
148 | 149 | "intersection-observer": "^0.6.0", |
149 | 150 | "jest": "^24.5.0", |
150 | 151 | "jest-dom": "^3.1.3", |
| 152 | + "json": "^9.0.6", |
151 | 153 | "lint-staged": "^8.1.5", |
152 | 154 | "npm-run-all": "^4.1.5", |
153 | 155 | "prettier": "^1.16.2", |
|
0 commit comments