Replace Yarn 1.x

Yarn 1.x, our JavaScript package manager, is no longer being actively developed and is in maintenance mode, receiving only security fixes.

Before this goes EOL, we'll want to upgrade to the current version: https://yarnpkg.com/migration/guide. We could also consider moving to npm or pnpm.

Resources:

Edited by Sarah German