!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

187 Members
55 Servers

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


SenderMessageTime
12 Jul 2025
@emma:rory.gayEmma [it/its]as in, certain optional features using some optional dependencies, or being able to pick one of 2 implementations of a thing11:45:07
13 Jul 2025
@marie:marie.cologneMarie changed their profile picture.20:12:44
20 Jul 2025
@emma:rory.gayEmma [it/its]question, how would i go about handling optional dependencies?23:45:25
@emma:rory.gayEmma [it/its]oh that's the same question i asked the other day23:45:38
21 Jul 2025
@amardeeps:matrix.org@amardeeps:matrix.org left the room.17:28:59
@amardeeps:matrix.org@amardeeps:matrix.org joined the room.17:37:41
@amardeeps:matrix.org@amardeeps:matrix.org left the room.17:37:50
28 Jul 2025
@hashbangcore:matrix.orgJohn joined the room.08:01:04
8 Aug 2025
@0x4a6f:nixos.dev0x4A6F joined the room.06:57:00
16 Aug 2025
@fugi:fugi.devLyn joined the room.14:25:09
@fugi:fugi.devLyn left the room.14:30:02
29 Aug 2025
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.00:36:22
@philiptaron:matrix.orgPhilip Taron (UTC-8)38325600:36:35
@philiptaron:matrix.orgPhilip Taron (UTC-8)* https://github.com/NixOS/nixpkgs/pull/383256 I'd love to commit this can i get a reviewer00:37:16
@magic_rb:matrix.redalder.orgmagic_rb changed their profile picture.19:29:31
30 Aug 2025
@c0ba1t:matrix.orgCobalt

Hey, does anyone know the recommended way to run patchShebangs on the node_modules of workspace members?
The current implementation of buildNpmPackage only runs it once on the top-level node_modules leaving any workspace-level node_modules unpatched. This will lead to build errors if, e.g., the workspace members contain deps with shebangs, like vite.

postInstall doesn't appear to work/ be passed through so I only could get it to work as a buildPhase or configurePhase adjustment. Both of them however seem to be not really applicable to this step. It also feels like this should be accounted for by buildNpmPackage, especially given one can explicitly specify workspace members.

20:26:54
@c0ba1t:matrix.orgCobalt (for context, I'm packaging jaeger-ui and they only include vite and some other deps as devDependencies of the workspace memeber packages/jaeger-ui. The build fails on calling vite in the build script of the workspace memeber as it has a /usr/bin/env node shebang and is unpatched as a consequence of landing in packages/jaeger-ui/node_modules/vite/bin/vite.js.) 20:29:27
@c0ba1t:matrix.orgCobalt *

Hey, does anyone know the recommended way to run patchShebangs on the node_modules of workspace members?
The current implementation of buildNpmPackage only runs it once on the top-level node_modules leaving any workspace-level node_modules unpatched. This will lead to build errors if, e.g., the workspace members contain deps with shebangs, like vite.

postInstall doesn't appear to work/ be passed through so I only could get it to work as a buildPhase or configurePhase adjustment. Both of them however feel like the wrong Phase for this step. It also feels like this should be accounted for by buildNpmPackage, especially given one can explicitly specify workspace members.

20:30:54
@c0ba1t:matrix.orgCobalt *

Hey, does anyone know the recommended way to run patchShebangs on the node_modules of workspace members?
The current implementation of buildNpmPackage only runs it once on the top-level node_modules leaving any workspace-level node_modules unpatched. This will lead to build errors if, e.g., the workspace members contain deps with shebangs, like vite.

postInstall doesn't appear to work/ be passed through so I only could get it to work as a buildPhase or configurePhase adjustment. Both of them however feel like the wrong Phase for this step. It also seems like this should be accounted for by buildNpmPackage, especially given one can explicitly specify workspace members.

20:31:06

Show newer messages


Back to Room ListRoom Version: 6