You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: readme.md
+8-5
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,22 @@ npx babel-upgrade
6
6
7
7
## Goals
8
8
9
-
> Update dependencies, config file, files that require babel directly
9
+
> Update dependencies, config files, and maybe JavaScript files that require babel packages directly
10
10
11
-
-[ ] auto run npm or yarn
12
11
-[x] Update `package.json`: `dependencies` and `devDependencies` to the "latest supported" version.
13
12
- This includes doing all package renames
14
13
- This includes upgrading the same package to the latest version
15
14
-[x] add `@babel/core` peerDep
16
15
-[x] modify scripts for mocha + `@babel/register`
17
16
-[x] throw/warn if engines is < node 4 or current node is < 4?
17
+
-[x] use `"babel-core": "^7.0.0-bridge-0"` if jest is a dependency
18
+
-[x] add new `@babel/node` package if `babel-node` is used
18
19
-[ ] log when replacing out preset-es2015,16,17,latest as FYI
19
20
-[ ] if `babel-node` is used, import `@babel/node`?
21
+
-[ ] Auto run npm or yarn after updating dependencies
20
22
-[ ] Update the babel config file(s).
21
23
-[x]`.babelrc`
22
-
-[ ]`.babelrc.js`
24
+
-[ ]`.babelrc.js` and other js files with a config like presets, `webpack.config.js`
23
25
-[x]`package.json babel key`
24
26
-[x] handle `env`
25
27
-[x] handle shorthand names: `babel-preset-env` and `env`
@@ -31,10 +33,11 @@ npx babel-upgrade
31
33
-[ ] Update test files that use babel directly (`babel-types`, `babel-core`)
32
34
- Update all requires/imports
33
35
- Update the use of the Babel API (plugins, integrations)
34
-
-[ ]Misc files as we go (`karma.conf.js`, `mocha.opts`)
36
+
-[ ]Modify misc files as we go (`karma.conf.js`, `mocha.opts`)
35
37
-[ ] Add to the upgrade guide which parts are autofixable and the command (if we care enough to make this individually runnable too infrastructure wise)
36
38
-[ ] May need to add a warning on any 3rd party plugins since they might not be compatible
37
-
-[ ] later: work on node 4
39
+
-[ ] Handle the differences in plugins in v7 for default/loose/spec
40
+
-[ ] Later: work on node 4
38
41
-[ ] Should certain parts be generic (replace the string `babel-register` with `@babel/register`)? Could be in a Makefile or somewhere else, but it's just find replace.
0 commit comments