|
27 | 27 | "build": "rimraf dist/**/* && cross-env NODE_ENV=production webpack --config webpack.config.js --bail --mode=production", |
28 | 28 | "build:docs": "yarn build && cross-env NODE_ENV=production webpack --config docs/webpack.config.js --bail --mode=production", |
29 | 29 | "commit": "git-cz", |
30 | | - "coveralls": "nyc yarn test && nyc report --reporter=text-lcov | coveralls", |
| 30 | + "coveralls": "yarn test && c8 report --reporter=text-lcov | coveralls", |
31 | 31 | "demo": "rimraf ./docs/bundle.js && webpack-serve --content ./docs --port 3000 --open --config docs/webpack.config.js", |
32 | 32 | "prepublishOnly": "yarn build", |
33 | 33 | "lint": "eslint --fix src docs webpack.config.js && stylelint --fix \"src/**/*.css\"", |
34 | 34 | "lint:nofix": "eslint src webpack.config.js && stylelint \"src/**/*.css\"", |
35 | 35 | "format": "prettier-eslint --write \"src/**/*.js\" \"docs/**/*.js\" webpack.config.js", |
36 | | - "test": "cross-env NODE_ENV=test ava", |
37 | | - "test:cov": "rimraf .nyc_output && nyc yarn test && nyc report --reporter=lcov ", |
| 36 | + "test": "cross-env NODE_ENV=test c8 ava", |
| 37 | + "test:cov": "yarn test && c8 --reporter=lcov report", |
38 | 38 | "test:watch": "cross-env NODE_ENV=test ava --watch", |
39 | 39 | "semantic-release": "semantic-release", |
40 | 40 | "contributors": "all-contributors add && all-contributors generate" |
|
47 | 47 | "react-infinite-scroll-component": "^4.0.2" |
48 | 48 | }, |
49 | 49 | "devDependencies": { |
| 50 | + "@babel/core": "^7.17.10", |
| 51 | + "@babel/plugin-proposal-class-properties": "^7.16.7", |
50 | 52 | "@babel/plugin-syntax-jsx": "7.0.0-beta.46", |
51 | | - "@babel/preset-stage-3": "7.0.0-beta.46", |
| 53 | + "@babel/plugin-transform-runtime": "^7.17.10", |
| 54 | + "@babel/preset-env": "^7.17.10", |
| 55 | + "@babel/preset-react": "^7.16.7", |
| 56 | + "@babel/register": "^7.17.7", |
52 | 57 | "@commitlint/cli": "^7.0.0", |
53 | 58 | "@commitlint/config-conventional": "^7.0.0", |
54 | 59 | "all-contributors-cli": "^5.4.1", |
55 | | - "ava": "1.4.1", |
| 60 | + "ava": "3", |
56 | 61 | "axe-core": "^3.2.2", |
57 | | - "babel-core": "6.24.1", |
58 | 62 | "babel-eslint": "10.0.1", |
59 | 63 | "babel-loader": "7.1.2", |
60 | 64 | "babel-plugin-istanbul": "4.1.3", |
61 | | - "babel-plugin-transform-class-properties": "6.24.1", |
62 | 65 | "babel-plugin-transform-react-remove-prop-types": "0.4.13", |
63 | | - "babel-plugin-transform-runtime": "^6.23.0", |
64 | | - "babel-preset-es2015": "6.24.1", |
65 | | - "babel-preset-react": "6.24.1", |
66 | | - "babel-preset-stage-0": "6.24.1", |
| 66 | + "c8": "^7.11.2", |
67 | 67 | "commitizen": "^2.9.6", |
68 | 68 | "conventional-changelog-cli": "^2.0.5", |
69 | 69 | "copy-webpack-plugin": "^5.0.1", |
|
90 | 90 | "lint-staged": "8.1.5", |
91 | 91 | "marked": "^0.3.17", |
92 | 92 | "mini-css-extract-plugin": "^0.4.0", |
93 | | - "nyc": "^12.0.1", |
94 | 93 | "postcss": "^6.0.16", |
95 | 94 | "postcss-cssnext": "^3.1.0", |
96 | 95 | "postcss-import": "^11.0.0", |
|
124 | 123 | "src/**/*.test.js" |
125 | 124 | ], |
126 | 125 | "require": [ |
127 | | - "babel-register", |
| 126 | + "@babel/register", |
128 | 127 | "ignore-styles", |
129 | 128 | "jsdom-global/register", |
130 | 129 | "./setupEnzyme" |
131 | 130 | ], |
132 | | - "babel": { |
133 | | - "testOptions": { |
134 | | - "babelrc": false, |
135 | | - "plugins": [ |
136 | | - "@babel/plugin-syntax-jsx" |
137 | | - ], |
138 | | - "presets": [ |
139 | | - "@babel/preset-stage-3" |
140 | | - ] |
141 | | - } |
142 | | - }, |
143 | 131 | "snapshotDir": "__snapshots__" |
144 | 132 | }, |
145 | | - "nyc": { |
146 | | - "sourceMap": false, |
147 | | - "instrument": false, |
148 | | - "cache": true, |
149 | | - "reporter": [ |
150 | | - "html", |
151 | | - "text-summary" |
152 | | - ], |
153 | | - "all": true, |
154 | | - "include": [ |
155 | | - "src/**/*.js" |
156 | | - ], |
157 | | - "exclude": [ |
158 | | - "**/*.test.js", |
159 | | - "**/node_modules/**", |
160 | | - "dist", |
161 | | - "demo", |
162 | | - "src/**/tests/**" |
163 | | - ] |
164 | | - }, |
165 | 133 | "stylelint": { |
166 | 134 | "extends": "stylelint-config-standard" |
167 | 135 | }, |
|
0 commit comments