-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Did not upgrade .babelrc file #41
Comments
But if you see here, they are indeed parsing the file as JSON5. Maybe some other error while reading? Was there anything printed in the console? |
@aulisius No errors.
VCS diff shows only package.json was modified. |
aside: This issue reminds me that we should also make a website for this where you can copy paste or even drag/drop your config/package.json and it does the same thing as this tool. Maybe that could be useful too |
Well for one thing, there isn't an easy way to handle comments other than my "idea" to parse as js and then output as js/json #8 (comment) |
Actually it updated fine for me if the babelrc is at the root. I don't think you specified where the location of the babelrc was? I'm assuming you are using a monorepo which we don't support yet - it's in the readme https://github.com/babel/babel-upgrade but there is a wip pr #35 |
My A copy-paste website would be nice. I didn't realize it was going to just modify those files without asking any questions. It's a good thing I had committed recently. |
Can verify the same issue. .babelrc remains unchaged even at the root. |
@jeffscottward, the current behaviour of |
I dug down a little bit, and at least in my project it was due to this line that checks for number of I deleted the package.json, ran the upgrade, and then restored it from git. ✅ |
Mine's a monorepo, but it also didn't upgrade the |
Yea, if there's more than one package.json, it won't upgrade the babelrc. Not sure if that's intentional or not |
My
|
@gknapp, there's minor error in your
should be
Notice that if a plugin needs options, the plugin is added as an array. |
@aulisius Thanks, that fixed the error. I upgraded the config by hand in the end. I had to remove
Current
|
I counted 15 package.jsons in my current repo 🤣 |
Currently having this same issue in a Lerna monorepo, did #35 go stale? |
Same for me, this is how my
|
I confirm the solution of @ericf89. I had some |
From what I can gather from the README, this tool should upgrade my
.babelrc
file too, right?I was running babel 6.x, it updated my package.json with dozens of
"@babel/...": "7.0.0-beta.39"
lines but didn't touch my.babelrc
file.Did it fail because I'm using json5 syntax perhaps? Here's my .babelrc file:
The text was updated successfully, but these errors were encountered: