|
5 | 5 | "main": "dist/react-intersection-observer.cjs.js", |
6 | 6 | "module": "dist/react-intersection-observer.esm.js", |
7 | 7 | "unpkg": "dist/react-intersection-observer.umd.min.js", |
8 | | - "author": "Daniel Schmidt", |
9 | 8 | "typings": "dist/index.d.ts", |
| 9 | + "author": "Daniel Schmidt", |
10 | 10 | "files": [ |
11 | | - "dist/*" |
| 11 | + "dist/*", |
| 12 | + "test-utils.js", |
| 13 | + "test-utils.d.ts" |
12 | 14 | ], |
13 | 15 | "repository": { |
14 | 16 | "type": "git", |
|
42 | 44 | ], |
43 | 45 | "scripts": { |
44 | 46 | "coveralls": "cat ./coverage/lcov.info | coveralls", |
45 | | - "build": "rm -rf dist && yarn run build:lib && tsc", |
| 47 | + "prebuild": "rm -rf dist lib", |
| 48 | + "build": "run-s build:*", |
46 | 49 | "build:lib": "rollup -c", |
47 | | - "build:storybook": "build-storybook --output-dir example", |
| 50 | + "build:ts": "tsc && tsc -p tsconfig.test.json", |
48 | 51 | "dev": "concurrently -k -r 'jest --watch' 'yarn run storybook'", |
49 | 52 | "lint": "eslint . --ext js,ts,tsx", |
50 | 53 | "preversion": "yarn build", |
51 | 54 | "pretty": "prettier '**/*.{js,ts,tsx,md,json,yml,html}' --write", |
52 | 55 | "storybook": "start-storybook -p 9000", |
| 56 | + "storybook:build": "build-storybook --output-dir example", |
53 | 57 | "test": "jest" |
54 | 58 | }, |
55 | 59 | "husky": { |
|
92 | 96 | ], |
93 | 97 | "coveragePathIgnorePatterns": [ |
94 | 98 | "/node_modules/", |
| 99 | + "/src/test-utils.ts", |
95 | 100 | "jest-setup.js" |
96 | 101 | ] |
97 | 102 | }, |
|
104 | 109 | }, |
105 | 110 | "devDependencies": { |
106 | 111 | "@babel/cli": "^7.2.3", |
107 | | - "@babel/core": "^7.2.2", |
108 | | - "@babel/plugin-proposal-class-properties": "^7.2.3", |
109 | | - "@babel/plugin-transform-runtime": "^7.2.0", |
110 | | - "@babel/preset-env": "^7.2.3", |
| 112 | + "@babel/core": "^7.3.4", |
| 113 | + "@babel/plugin-proposal-class-properties": "^7.3.4", |
| 114 | + "@babel/plugin-transform-runtime": "^7.3.4", |
| 115 | + "@babel/preset-env": "^7.3.4", |
111 | 116 | "@babel/preset-flow": "^7.0.0", |
112 | 117 | "@babel/preset-react": "^7.0.0", |
113 | 118 | "@babel/preset-typescript": "^7.1.0", |
114 | | - "@storybook/addon-actions": "^4.1.13", |
115 | | - "@storybook/addon-options": "^4.1.13", |
116 | | - "@storybook/components": "^4.1.13", |
117 | | - "@storybook/react": "^4.1.13", |
118 | | - "@types/jest": "^24.0.4", |
119 | | - "@types/react": "^16.8.4", |
| 119 | + "@storybook/addon-actions": "^5.0.0", |
| 120 | + "@storybook/components": "^5.0.0", |
| 121 | + "@storybook/react": "^5.0.0", |
| 122 | + "@types/jest": "^24.0.9", |
| 123 | + "@types/react": "^16.8.6", |
| 124 | + "@types/react-dom": "^16.8.2", |
120 | 125 | "@types/storybook__addon-actions": "^3.4.1", |
121 | 126 | "@types/storybook__react": "^4.0.0", |
122 | | - "@typescript-eslint/eslint-plugin": "^1.4.1", |
123 | | - "@typescript-eslint/parser": "^1.4.1", |
| 127 | + "@typescript-eslint/eslint-plugin": "^1.4.2", |
| 128 | + "@typescript-eslint/parser": "^1.4.2", |
124 | 129 | "babel-core": "^7.0.0-bridge.0", |
125 | 130 | "babel-eslint": "10.0.1", |
126 | 131 | "babel-jest": "^24.0.0", |
127 | 132 | "babel-loader": "^8.0.5", |
128 | 133 | "concurrently": "4.1.0", |
129 | 134 | "coveralls": "^3.0.3", |
130 | | - "error-overlay-webpack-plugin": "^0.1.6", |
131 | | - "eslint": "5.15.0", |
| 135 | + "eslint": "5.15.1", |
132 | 136 | "eslint-config-react-app": "^3.0.7", |
133 | 137 | "eslint-plugin-flowtype": "^3.2.1", |
134 | 138 | "eslint-plugin-import": "2.16.0", |
|
138 | 142 | "intersection-observer": "^0.5.1", |
139 | 143 | "jest": "^24.0.0", |
140 | 144 | "jest-dom": "^3.1.1", |
141 | | - "lint-staged": "^8.1.1", |
| 145 | + "lint-staged": "^8.1.5", |
142 | 146 | "npm-run-all": "^4.1.5", |
143 | 147 | "prettier": "^1.16.2", |
144 | 148 | "react": "^16.8.3", |
145 | 149 | "react-dom": "^16.8.3", |
146 | 150 | "react-test-renderer": "^16.8.3", |
147 | 151 | "react-testing-library": "^6.0.0", |
148 | | - "rollup": "^1.2.3", |
| 152 | + "rollup": "^1.4.1", |
149 | 153 | "rollup-plugin-babel": "^4.2.0", |
150 | 154 | "rollup-plugin-commonjs": "^9.2.1", |
151 | 155 | "rollup-plugin-node-resolve": "^4.0.1", |
|
0 commit comments