|
11 | 11 | "license": "MIT",
|
12 | 12 | "scripts": {
|
13 | 13 | "build:types": "flow-copy-source --ignore \"**/*.{jest,e2e,ssr,example}.js\" source/WindowScroller dist/es/WindowScroller && flow-copy-source --ignore \"**/*.{jest,e2e,ssr,example}.js\" source/AutoSizer dist/es/AutoSizer",
|
14 |
| - "build": "npm run build:commonjs && npm run build:css && npm run build:es && npm run build:demo && npm run build:umd", |
15 |
| - "build:commonjs": "npm run clean:commonjs && cross-env NODE_ENV=commonjs babel source --out-dir dist/commonjs", |
| 14 | + "build": "yarn run build:commonjs && yarn run build:css && yarn run build:es && yarn run build:demo && yarn run build:umd", |
| 15 | + "build:commonjs": "yarn run clean:commonjs && cross-env NODE_ENV=commonjs babel source --out-dir dist/commonjs", |
16 | 16 | "build:css": "postcss source/styles.css -o styles.css --use autoprefixer",
|
17 |
| - "build:demo": "npm run clean:demo && cross-env NODE_ENV=production webpack --config webpack.config.demo.js -p --bail", |
18 |
| - "build:es": "npm run clean:es && npm run build:types && cross-env NODE_ENV=es babel source --out-dir dist/es", |
19 |
| - "build:umd": "npm run clean:umd && cross-env NODE_ENV=rollup rollup -c", |
| 17 | + "build:demo": "yarn run clean:demo && cross-env NODE_ENV=production webpack --config webpack.config.demo.js -p --bail", |
| 18 | + "build:es": "yarn run clean:es && yarn run build:types && cross-env NODE_ENV=es babel source --out-dir dist/es", |
| 19 | + "build:umd": "yarn run clean:umd && cross-env NODE_ENV=rollup rollup -c", |
20 | 20 | "check-all": "yarn prettier && yarn lint && yarn flow",
|
21 | 21 | "ci-check": "yarn prettier:diff && yarn lint && yarn flow",
|
22 |
| - "clean": "npm run clean:commonjs && npm run clean:demo && npm run clean:es && npm run clean:umd", |
| 22 | + "clean": "yarn run clean:commonjs && yarn run clean:demo && yarn run clean:es && yarn run clean:umd", |
23 | 23 | "clean:commonjs": "rimraf dist/commonjs",
|
24 | 24 | "clean:demo": "rimraf build",
|
25 | 25 | "clean:es": "rimraf dist/es",
|
26 | 26 | "clean:umd": "rimraf dist/umd",
|
27 | 27 | "deploy": "gh-pages -d build",
|
28 | 28 | "lint": "eslint 'source/**/*.js'",
|
29 | 29 | "typecheck": "flow check",
|
30 |
| - "prebuild": "npm run typecheck && npm run lint", |
| 30 | + "prebuild": "yarn run typecheck && yarn run lint", |
31 | 31 | "prettier": "prettier --write '{playground,source}/**/*.js'",
|
32 | 32 | "prettier:diff": "prettier --list-different '{playground,source}/**/*.js'",
|
33 |
| - "postpublish": "npm run deploy", |
34 |
| - "prepublish": "npm run build", |
| 33 | + "postpublish": "yarn run deploy", |
| 34 | + "prepublish": "yarn run build", |
35 | 35 | "start": "cross-env NODE_ENV=development webpack-dev-server --hot --config webpack.config.dev.js",
|
36 |
| - "test": "npm run test:jest", |
| 36 | + "test": "yarn run test:jest", |
37 | 37 | "test:jest": "jest --no-watchman --runInBand",
|
38 | 38 | "test:ci": "jest --no-watchman --maxWorkers 2 --coverage && codecov",
|
39 |
| - "watch": "watch 'clear && npm run test -s' source", |
| 39 | + "watch": "watch 'clear && yarn run test -s' source", |
40 | 40 | "watch:jest": "jest --no-watchman --watch"
|
41 | 41 | },
|
42 | 42 | "husky": {
|
43 | 43 | "hooks": {
|
44 | 44 | "pre-commit": "pretty-quick --staged"
|
45 | 45 | }
|
46 | 46 | },
|
47 |
| - "babel": { |
48 |
| - "presets": [ |
49 |
| - "./.babelrc.js" |
50 |
| - ] |
51 |
| - }, |
52 | 47 | "files": [
|
53 | 48 | "dist",
|
54 | 49 | "styles.css"
|
|
77 | 72 | "bugs": {
|
78 | 73 | "url": "https://github.com/bvaughn/react-virtualized/issues"
|
79 | 74 | },
|
80 |
| - "jest": { |
81 |
| - "globalSetup": "jest-environment-puppeteer/setup", |
82 |
| - "globalTeardown": "jest-environment-puppeteer/teardown", |
83 |
| - "setupFiles": [ |
84 |
| - "./source/jest-setup.js" |
85 |
| - ], |
86 |
| - "roots": [ |
87 |
| - "./source" |
88 |
| - ], |
89 |
| - "coverageReporters": [ |
90 |
| - "lcov" |
91 |
| - ], |
92 |
| - "collectCoverageFrom": [ |
93 |
| - "source/**/*.js", |
94 |
| - "!source/vendor/**", |
95 |
| - "!source/demo/**", |
96 |
| - "!source/jest-*.js", |
97 |
| - "!source/TestUtils.js", |
98 |
| - "!**/*.example.js" |
99 |
| - ], |
100 |
| - "testRegex": ".(jest|e2e|ssr).js$", |
101 |
| - "verbose": true |
102 |
| - }, |
103 | 75 | "devDependencies": {
|
104 |
| - "autoprefixer": "^7.2.3", |
105 |
| - "babel-cli": "^6.26.0", |
106 |
| - "babel-core": "^6.26.0", |
107 |
| - "babel-eslint": "^8.1.2", |
108 |
| - "babel-jest": "^22.0.4", |
109 |
| - "babel-loader": "7.1.2", |
110 |
| - "babel-plugin-external-helpers": "^6.22.0", |
111 |
| - "babel-plugin-flow-react-proptypes": "^21.0.0", |
112 |
| - "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0", |
113 |
| - "babel-plugin-transform-react-remove-prop-types": "^0.4.12", |
114 |
| - "babel-plugin-transform-runtime": "^6.23.0", |
115 |
| - "babel-polyfill": "^6.26.0", |
116 |
| - "babel-preset-env": "^1.6.1", |
117 |
| - "babel-preset-flow": "^6.23.0", |
118 |
| - "babel-preset-react": "^6.24.1", |
119 |
| - "babel-preset-stage-2": "^6.24.1", |
120 |
| - "codecov": "^2.2.0", |
121 |
| - "codemirror": "^5.18.0", |
122 |
| - "cross-env": "^5.0.1", |
123 |
| - "css-loader": "^0.28.7", |
124 |
| - "eslint": "^4.14.0", |
125 |
| - "eslint-config-fbjs": "^2.0.1", |
126 |
| - "eslint-config-prettier": "^2.9.0", |
| 76 | + "@babel/cli": "^7.7.0", |
| 77 | + "@babel/core": "^7.7.2", |
| 78 | + "@babel/plugin-external-helpers": "^7.2.0", |
| 79 | + "@babel/plugin-proposal-class-properties": "^7.7.0", |
| 80 | + "@babel/plugin-transform-modules-commonjs": "^7.7.0", |
| 81 | + "@babel/plugin-transform-runtime": "^7.6.2", |
| 82 | + "@babel/polyfill": "^7.7.0", |
| 83 | + "@babel/preset-env": "^7.7.1", |
| 84 | + "@babel/preset-flow": "^7.0.0", |
| 85 | + "@babel/preset-react": "^7.7.0", |
| 86 | + "@babel/preset-stage-2": "^7.0.0", |
| 87 | + "autoprefixer": "^9.7.1", |
| 88 | + "babel-eslint": "^10.0.3", |
| 89 | + "babel-jest": "^24.9.0", |
| 90 | + "babel-loader": "8.0.6", |
| 91 | + "babel-plugin-flow-react-proptypes": "^25.1.0", |
| 92 | + "babel-plugin-transform-react-remove-prop-types": "^0.4.24", |
| 93 | + "codecov": "^3.6.1", |
| 94 | + "codemirror": "^5.49.2", |
| 95 | + "cross-env": "^6.0.3", |
| 96 | + "css-loader": "^3.2.0", |
| 97 | + "eslint": "^6.6.0", |
| 98 | + "eslint-config-fbjs": "^3.1.1", |
| 99 | + "eslint-config-prettier": "^6.5.0", |
127 | 100 | "eslint-config-react": "^1.1.7",
|
128 |
| - "eslint-plugin-babel": "^4.1.2", |
129 |
| - "eslint-plugin-flowtype": "^2.40.1", |
130 |
| - "eslint-plugin-jsx-a11y": "^6.0.3", |
131 |
| - "eslint-plugin-prettier": "^2.4.0", |
132 |
| - "eslint-plugin-react": "^7.5.1", |
133 |
| - "eslint-plugin-relay": "^0.0.20", |
| 101 | + "eslint-plugin-babel": "^5.3.0", |
| 102 | + "eslint-plugin-flowtype": "^4.3.0", |
| 103 | + "eslint-plugin-jsx-a11y": "^6.2.3", |
| 104 | + "eslint-plugin-prettier": "^3.1.1", |
| 105 | + "eslint-plugin-react": "^7.16.0", |
| 106 | + "eslint-plugin-relay": "^1.3.12", |
134 | 107 | "extract-text-webpack-plugin": "^3.0.2",
|
135 |
| - "file-loader": "^1.1.6", |
136 |
| - "flow-bin": "^0.63.1", |
137 |
| - "flow-copy-source": "^1.2.1", |
138 |
| - "gh-pages": "^1.0.0", |
139 |
| - "html-webpack-plugin": "^2.30.1", |
| 108 | + "file-loader": "^4.2.0", |
| 109 | + "flow-bin": "^0.111.3", |
| 110 | + "flow-copy-source": "^2.0.8", |
| 111 | + "gh-pages": "^2.1.1", |
| 112 | + "html-webpack-plugin": "^3.2.0", |
140 | 113 | "husky": "^3.0.9",
|
141 |
| - "immutable": "^3.7.5", |
142 |
| - "jest": "^22.0.4", |
143 |
| - "jest-environment-puppeteer": "^1.1.1", |
144 |
| - "lint-staged": "^7.0.4", |
145 |
| - "postcss": "^6.0.14", |
146 |
| - "postcss-cli": "^4.1.1", |
147 |
| - "postcss-loader": "^2.0.9", |
| 114 | + "immutable": "^4.0.0-rc.12", |
| 115 | + "jest": "^24.9.0", |
| 116 | + "jest-environment-puppeteer": "^4.3.0", |
| 117 | + "lint-staged": "^9.4.2", |
| 118 | + "postcss": "^7.0.21", |
| 119 | + "postcss-cli": "^6.1.3", |
| 120 | + "postcss-loader": "^3.0.0", |
148 | 121 | "prettier": "1.19.1",
|
149 | 122 | "pretty-quick": "^2.0.1",
|
150 |
| - "puppeteer": "^1.1.1", |
151 |
| - "react": "^16.2.0", |
| 123 | + "puppeteer": "^2.0.0", |
| 124 | + "react": "^16.11.0", |
152 | 125 | "react-codemirror": "^1.0.0",
|
153 |
| - "react-dom": "^16.2.0", |
154 |
| - "react-router": "^4.1.1", |
155 |
| - "react-router-dom": "^4.1.1", |
156 |
| - "react-test-renderer": "^16.2.0", |
157 |
| - "rimraf": "^2.4.3", |
158 |
| - "rollup": "^0.57.1", |
159 |
| - "rollup-plugin-babel": "^3.0.3", |
160 |
| - "rollup-plugin-commonjs": "^9.1.0", |
161 |
| - "rollup-plugin-node-resolve": "^3.3.0", |
162 |
| - "rollup-plugin-replace": "^2.0.0", |
163 |
| - "rollup-plugin-uglify": "^3.0.0", |
164 |
| - "style-loader": "^0.19.1", |
| 126 | + "react-dom": "^16.11.0", |
| 127 | + "react-router": "^5.1.2", |
| 128 | + "react-router-dom": "^5.1.2", |
| 129 | + "react-test-renderer": "^16.11.0", |
| 130 | + "rimraf": "^3.0.0", |
| 131 | + "rollup": "^1.26.5", |
| 132 | + "rollup-plugin-babel": "^4.3.3", |
| 133 | + "rollup-plugin-commonjs": "^10.1.0", |
| 134 | + "rollup-plugin-node-resolve": "^5.2.0", |
| 135 | + "rollup-plugin-replace": "^2.2.0", |
| 136 | + "rollup-plugin-uglify": "^6.0.3", |
| 137 | + "style-loader": "^1.0.0", |
165 | 138 | "watch": "^1.0.2",
|
166 |
| - "webpack": "^3.10.0", |
167 |
| - "webpack-dev-server": "^3.1.11" |
| 139 | + "webpack": "^4.41.2", |
| 140 | + "webpack-cli": "^3.3.10", |
| 141 | + "webpack-dev-server": "^3.9.0" |
168 | 142 | },
|
169 | 143 | "dependencies": {
|
170 |
| - "babel-runtime": "^6.26.0", |
171 |
| - "clsx": "^1.0.1", |
172 |
| - "dom-helpers": "^5.0.0", |
173 |
| - "loose-envify": "^1.3.0", |
174 |
| - "prop-types": "^15.6.0", |
| 144 | + "@babel/runtime": "^7.7.2", |
| 145 | + "clsx": "^1.0.4", |
| 146 | + "dom-helpers": "^5.1.3", |
| 147 | + "loose-envify": "^1.4.0", |
| 148 | + "prop-types": "^15.7.2", |
175 | 149 | "react-lifecycles-compat": "^3.0.4"
|
176 | 150 | },
|
177 | 151 | "peerDependencies": {
|
|
0 commit comments