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
Especially for the package.json this becomes a long list when dependencies are already installed via lerna bootstrap when I run npx babel-upgrade in the repo.
This does also caused me problems in our main project. I had a dist directory with copied node_modules still lying around and that was why babel-upgrade did not updated the .babelrc, because it found a lot of package.json and it does not update .babelrc when more than one package.json is found.
The text was updated successfully, but these errors were encountered:
I didn't think about supporting monorepos yet, so anything related to that isn't intended to work yet! Thanks for a report though. I guess that's the fun thing about these. Yeah there's a checkbox in the readme " monorepo support". If you'd like to work on that go ahead though!
I already planned to do a PR for it, just wanted to doublecheck that this is not intended and my fix does not breaks other usages.
This can also occure in non-monorepos. We used to have a git-ignored dist directory which holds a copy of node_modules, so it also found those package.json files and decided to not touch the .babelrc.
While testing this out with our different projects I also found one project that puts the package.json into the build directory. I am not sure how to ignore this in all cases. Looking up .gitignore?
At least as short term solution a warning for developers to cleanup their project folder before running babel-upgrade might be a good idea.
In a lerna monorepo the root's
node_modules
will be ignored but notnode_modules
from the packages. Is this intended behavior?I am using my babel6 test repo https://github.com/Raigen/babel6-tmp
With this pattern it works as I would expect it.
Especially for the
package.json
this becomes a long list when dependencies are already installed vialerna bootstrap
when I runnpx babel-upgrade
in the repo.This does also caused me problems in our main project. I had a
dist
directory with copiednode_modules
still lying around and that was whybabel-upgrade
did not updated the.babelrc
, because it found a lot ofpackage.json
and it does not update.babelrc
when more than onepackage.json
is found.The text was updated successfully, but these errors were encountered: