Browse Source

chore: bump yarn to 4.5.0 via corepack

I considered moving to pnpm but nix support looks not as mature.
for example this is pre-alpha:
https://github.com/nix-community/pnpm2nix
but this looks ok.
https://github.com/nzbr/pnpm2nix-nzbr
master
DanConwayDev 2 years ago
parent
commit
289ef2cf85
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 7
      .gitignore
  2. 1
      .yarnrc.yml
  3. 3
      flake.nix
  4. 3
      package.json
  5. 20671
      yarn.lock

7
.gitignore vendored

@ -13,3 +13,10 @@ vite.config.ts.timestamp-* @@ -13,3 +13,10 @@ vite.config.ts.timestamp-*
storybook-static
yarn-error.log
tmp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

1
.yarnrc.yml

@ -0,0 +1 @@ @@ -0,0 +1 @@
nodeLinker: node-modules

3
flake.nix

@ -49,10 +49,11 @@ @@ -49,10 +49,11 @@
buildInputs = [
pkgs.gitlint
pkgs.nodejs
pkgs.yarn
pkgs.corepack
];
shellHook = ''
yarn set version 4.5.0
# auto-install git hooks
dot_git="$(git rev-parse --git-common-dir)"
if [[ ! -d "$dot_git/hooks" ]]; then mkdir "$dot_git/hooks"; fi

3
package.json

@ -60,5 +60,6 @@ @@ -60,5 +60,6 @@
"parse-diff": "^0.11.1",
"ramda": "^0.29.1",
"svelte-markdown": "^0.4.1"
}
},
"packageManager": "yarn@4.5.0"
}

20671
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save