cfpb / sbl-frontend

Small Business Lending Filing Application
MIT License
2 stars 1 forks source link

Upgrade to Node v22 #1047

Open meissadia opened 2 weeks ago

meissadia commented 2 weeks ago

Close #1040

Changes

How to test this PR

  1. Pull branch
  2. nvm use
  3. yarn start to easily launch all backend services
  4. yarn docker-build-and-run to run the container version of the Frontend
  5. Update your .env file to run tests against the container version
    SBL_PLAYWRIGHT_TEST_TARGET="http://localhost:8085"
  6. yarn playwright test --workers 4
  7. Verify all tests pass
meissadia commented 1 week ago

Hmm, we'll also want to update the Dockerfile as well.

We'll also want to update the node version in the image.

@billhimmelsbach

meissadia commented 1 week ago

@billhimmelsbach I still don't know what to do about the build of import-meta-env but things seem to be working as-is.

It looks like the latest version of Node supported by pkg is v18 and the source repo is archived as of the start of 2024 so no further updates. https://www.npmjs.com/package/pkg-fetch#binary-compatibility