mirror of https://github.com/coder/coder.git
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:
parent
76911f1375
commit
fa99f6a200
12
flake.nix
12
flake.nix
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue