Configure Yarn (Classic and Berry) to use Root Library Catalog for secure JavaScript packages.
Root serves patched npm packages under the @rootio/ scope. Use resolutions in package.json to route the original package to its Root-patched equivalent. Auth setup differs between Yarn 1 and Yarn 3+.
Yarn 1 (Classic)
Authentication
npm config set registry https://pkg.root.io/npm/ --location=project &&npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project
yarn config set npmScopes.rootio.npmRegistryServer https://pkg.root.io/npm/ &&yarn config set 'npmRegistries["//pkg.root.io/npm/"].npmAuthIdent' 'root:YOUR_ROOT_TOKEN'