!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

193 Members
57 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
29 Apr 2025
@c3n21:matrix.orgc3n21Yes it is yarn pnp, I should have mentioned that I'm packaging v6.1.2 which only uses yarn15:30:47
@c0ba1t:matrix.orgCobaltHave you tried the yarn deps fetcher then? https://nixos.org/manual/nixpkgs/stable/#javascript-yarn If this project requires more elaborate packaging than `npm install` it is usually easier to put into it's own package instead of the `nodePackages` set. Following the nixpkgs manual for JavaScript projects should help you there. 15:44:52
@c0ba1t:matrix.orgCobaltThe package does contain a yarn.lock for the requested tag so that might work out as a bypass for yarn PNP. 15:48:13
@c3n21:matrix.orgc3n21

Yes I followed the docs, and it doesn't work because fetchYarnDeps only supports yarn v1 (they have # yarn lockfile v1 as first line, which yarn berry doesn't have)

Funny enough, going the nodePackages at least allows me to build and run the package correctly, but it breaks the pipeline because generate script pulls in python for some reason

15:52:41
@c3n21:matrix.orgc3n21 *

Yes I followed the docs, and it doesn't work because fetchYarnDeps only supports yarn v1 (they have # yarn lockfile v1 as first line, which yarn berry doesn't have)

Funny enough, going the nodePackages at least allows me to build and run the package correctly, but it breaks the pipeline because generate script pulls in python2 for some reason

15:53:04
@cathal_mullan:matrix.orgCathalThe yarn.lock in the Verdaccio 6.x branch is from a yarn berry install, i.e. yarn v3/v4. Support for yarn berry just got merged last week, only hit unstable today actually: https://github.com/NixOS/nixpkgs/pull/399404 See these docs: https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/javascript.section.md#yarn-berry-v3v4-javascript-yarn-v3-v415:57:13
@c3n21:matrix.orgc3n21My current attempt is already using fetchYarnBerryDeps, but it seems that with pnp it just doesn't work, I think I should report it in the PR16:30:06
@c3n21:matrix.orgc3n21* My current attempt is already using fetchYarnBerryDeps, but it seems that with pnp it just doesn't work, do you think I should report it in the PR?16:30:14
@c3n21:matrix.orgc3n21* My current attempt is already using fetchYarnBerryDeps (on my machine, not on the PR), but it seems that with pnp it just doesn't work, do you think I should report it in the PR?16:30:40

Show newer messages


Back to Room ListRoom Version: 6