Skip to content
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

Npm 7 dependency cleanup #1084

Closed
wants to merge 9 commits into from
Closed

Conversation

Stephen-ONeil
Copy link
Contributor

@Stephen-ONeil Stephen-ONeil commented May 17, 2021

Pave the way for us all to get together on the same page with npm version 7 (will need to happen before this merges). Bunch of package upgrading and a couple small config changes in the process.

TODO:

  • roll back prettier update/formatting, that stuff should go in a different PR
  • fix IB_base, something's broken with the latest css-minimizer-webpack-plugin (ironically, might be a missing peer dependency, oof)
  • local package in /scripts/common_node_scripts isn't installing correctly
  • same explosion of node processes/memory issues in CI as Displaytable to typescript #1045, must be a problematic package change. Out of scope for this branch, but a blocker for sure
  • confirm that the new core-js polyfilling config works
    • note, currently using "usage" option which is nice but likely makes build memory usage worse. If CI is back to running out of memory than may need to try "entry" instead (temporarily)
  • some dependency update in /server had a bunch of coreMongooseArray objects appearing in the snapshot output. Investigate further
  • update docs to mention installing npm 7 specifically
  • walk everyone through updating to npm 7 (easy, just the one gotcha of needing to run install with the --legacy-peer-deps flag, maybe open an issue to revisit that in a few months when maintainers have had time to catch up)

…errors/warnings fixed (eslint-babel had deprecated)
…or version to squash some deprecated warnings
…and sorted out some peer dependecy missmatching in the process
…oose arrays instead of plain arrays (TODO, probably don't actually want this, look in to that). Update some bad est doc keys in data/test-data/covid_estimates.test while I'm at it
…olyfill, use core-js via @babel/preset-env config. Some of the current packages (graphiql, react-virtualized) technically still require React 16 (but work with 17) so the npm 7 upgrade will be a bit awkward if we need to reinstall those before they're updated to support 17. For now, they won't complain during CI's and installs of other packages, will just make noise if you do a full re-install (dropping the existing package lock and nuking your /node_modules first)
…f changes that comes with that can be a different PR
…er-webpack-plugin 3... wouldn't have to if other dependencies didn't prevent us from using npm 7 without --legacy-peer-deps, ha
…package.json, pretty sure npm 7 peer dependency management will solve that problem in /server and /email_backend now
@Stephen-ONeil Stephen-ONeil self-assigned this Jun 3, 2021
@Stephen-ONeil
Copy link
Contributor Author

Paused to give various packages time to make npm-7 friendly releases. Probably want at least a partial fix to #1092 before this continues. May end up needing to restart this branch/make careful cherry-picks due to other package changes that have happened in the meantime.

@Stephen-ONeil Stephen-ONeil mentioned this pull request Oct 14, 2021
5 tasks
@Stephen-ONeil Stephen-ONeil deleted the npm-7-dependency-cleanup branch October 26, 2021 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant