chore: make yarn use the right version of node (#11716)

Otherwise if for example you try to run `yarn storybook` it complains
that the version of Node is wrong.

`pnpm storybook` works fine and that is probably what we should
actually use, but as long as we are installing Yarn and not restricting
its use we might as well make it use the right version of Node.
This commit is contained in:
Asher 2024-01-19 12:59:38 -09:00 committed by GitHub
parent 76911f1375
commit fa99f6a200
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 5 deletions

View File

@ -13,6 +13,8 @@
# Workaround for: terraform has an unfree license (bsl11), refusing to evaluate.
pkgs = import nixpkgs { inherit system; config.allowUnfree = true; };
formatter = pkgs.nixpkgs-fmt;
nodejs = pkgs.nodejs-18_x;
yarn = pkgs.yarn.override { inherit nodejs; };
# Check in https://search.nixos.org/packages to find new packages.
# Use `nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update`
# to update the lock file if packages are out-of-date.
@ -46,11 +48,11 @@
libuuid
mockgen
nfpm
nodejs-18_x
nodejs-18_x.pkgs.pnpm
nodejs-18_x.pkgs.prettier
nodejs-18_x.pkgs.typescript
nodejs-18_x.pkgs.typescript-language-server
nodejs
nodejs.pkgs.pnpm
nodejs.pkgs.prettier
nodejs.pkgs.typescript
nodejs.pkgs.typescript-language-server
openssh
openssl
pango