Skip to content

Commit

Permalink
Upgrades @babel/core, babel-preset-fbjs, and gulp-util (#2028)
Browse files Browse the repository at this point in the history
Summary:
**Summary**

Addresses broken flow types extracted during the gulp build. Solves #2027

Upgrades the following dependencies:

- babel-core@^6.8.0 -> babel/core@^7.3.4
- babel-preset-fbjs@^2.1.0 -> ^3.2.0
- fbjs-scripts@^0.8.0 -> ^1.1.0
- gulp-babel@^6.1.2 -> ^8.0.0
- jest@^23.5.0 -> ^24.1.0

**Test Plan**

yarn
yarn test
yarn flow

Manual inspection of generated flow types under `lib/`
Pull Request resolved: facebookarchive/draft-js#2028

Reviewed By: mitermayer

Differential Revision: D14366317

Pulled By: mitermayer

fbshipit-source-id: 734c15717e94c3bc7f1a552496b67ce6a509da06
  • Loading branch information
Claudio Procida authored and facebook-github-bot committed Mar 7, 2019
1 parent df75be6 commit d16a40e
Show file tree
Hide file tree
Showing 5 changed files with 2,431 additions and 2,614 deletions.
2 changes: 1 addition & 1 deletion meta/bundle-size-stats/Draft.js.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion meta/bundle-size-stats/Draft.min.js.json

Large diffs are not rendered by default.

15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"react-dom": "^0.14.0 || ^15.0.0-rc || ^16.0.0-rc || ^16.0.0"
},
"devDependencies": {
"babel-core": "^6.8.0",
"babel-eslint": "^7.2.3",
"babel-preset-fbjs": "^2.1.0",
"@babel/core": "^7.3.4",
"babel-eslint": "^8.1.1",
"babel-preset-fbjs": "^3.2.0",
"cross-env": "^5.1.3",
"del": "^2.2.0",
"envify": "^3.4.0",
Expand All @@ -57,10 +57,10 @@
"eslint-plugin-prettier": "^2.3.1",
"eslint-plugin-react": "^7.3.0",
"eslint-plugin-relay": "^0.0.8",
"fbjs-scripts": "^0.8.0",
"fbjs-scripts": "^1.1.0",
"flow-bin": "^0.92.0",
"gulp": "^4.0.0",
"gulp-babel": "^6.1.2",
"gulp-babel": "^8.0.0",
"gulp-browserify-thin": "^0.1.5",
"gulp-clean-css": "^2.0.3",
"gulp-concat-css": "^2.2.0",
Expand All @@ -71,7 +71,7 @@
"gulp-rename": "^1.2.2",
"gulp-uglify": "^1.2.0",
"gulp-util": "^3.0.6",
"jest": "^23.5.0",
"jest": "^24.1.0",
"prettier": "1.13.6",
"react": "^16.8.0",
"react-dom": "^16.8.0",
Expand All @@ -82,9 +82,6 @@
"vinyl-buffer": "^1.0.0",
"webpack-stream": "^4.0.0"
},
"resolutions": {
"gulp/**/natives": "1.1.3"
},
"devEngines": {
"node": "8.x || 9.x || 10.x",
"npm": "2.x || 3.x || 5.x || 6.x"
Expand Down
2 changes: 1 addition & 1 deletion scripts/jest/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

var babel = require('babel-core');
var babel = require('@babel/core');
var createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction');
var fbjsConfigurePreset = require('babel-preset-fbjs/configure');
var moduleMap = require('../module-map');
Expand Down
Loading

0 comments on commit d16a40e

Please sign in to comment.