| 24 Dec 2025 |
Emma [it/its] | hm, is there any way to inject more stuff into the npm config hook, or would i have to disable it and write my own instead? | 11:51:00 |
Cobalt | As in more logic or more packages? | 12:05:52 |
Cobalt | The latter can be done by patching the source, otherwise there's no known expansion mechanism afaik | 12:06:18 |
Emma [it/its] | as in, i want to remove packages after the first install run | 12:12:02 |
Emma [it/its] | (in particular, i want to remove sqlite3 under nix builds, and just using jq on the package.json didnt work) | 12:12:30 |
Emma [it/its] | trying to use npm for this errors out with... an EIA_AGAIN | 12:14:11 |
Cobalt | I don't think that will work with the npm config hook. in regards to altering the package.json with jq, iirc this may cause npm to (re)check the lockfile (as the locked dependency graph is changed) which can be an issue. | 15:46:52 |
dish [Fox/It/She] | yeah if you change the package.json then it won't match the package-lock.json, so it won't work afaik | 17:26:38 |
| 25 Dec 2025 |
Emma [it/its] | removing sqlite3 from packag-elock.json also didnt work fwiw | 02:02:19 |
Cobalt | To clarify, do you want skip the Installation of an sqlite package or avoid the installed files being present in node_modules?
The first likely requires a patch of the source (package.json + lockfile). The latter could maybe be done in, e. G., preBuild.
| 06:37:19 |
Emma [it/its] | im trying to skip the installation of sqlite alltogether | 08:07:51 |
Emma [it/its] | * im trying to skip the installation of sqlite alltogether | 08:07:59 |
Emma [it/its] | for now i just removed it from the package.json in the repo alltogether with npm (and made the app throw an error if it tries to use sqlite), and it cut down build time by 80%... lol | 08:08:55 |
Sandro 🐧 | You may also need something like https://github.com/NixOS/nixpkgs/blob/aec8307e9f85c5817135f39d8c388061c1fa620d/pkgs/by-name/up/uptime-kuma/package.nix#L32 for the final package | 09:02:11 |
| 26 Dec 2025 |
| aktaboot changed their profile picture. | 19:25:49 |
| 28 Dec 2025 |
| ixxie set a profile picture. | 20:05:39 |
| 29 Dec 2025 |
| n3tcat joined the room. | 02:21:36 |
| n3tcat set a profile picture. | 02:24:40 |
| n3tcat left the room. | 02:32:52 |
| 11 Jan 2026 |
| ivan joined the room. | 01:55:48 |
| ghpzin changed their display name from ghpzin (moved to @ghpzin:envs.net) to ghpzin. | 15:04:39 |
| @ghpzin:envs.net left the room. | 16:16:33 |
| 13 Jan 2026 |
| jopejoe1 (4094@epvpn) changed their display name from jopejoe1 (4094@39c3) to jopejoe1 (4094@epvpn). | 08:24:51 |
| 16 Jan 2026 |
Tumble | is importNpmLock better than using prefetch-npm-deps | 22:26:34 |
Cobalt | It is a tradeoff, eval time+hassle (some lockfiles need fixing) vs size+downloads. Ime, importNpmLock is better for most projects and also presumably quite a lot easier on your disk and npm's services. | 22:34:28 |
| 19 Jan 2026 |
| bl1nk changed their profile picture. | 10:39:01 |
Emma [it/its] | hm, i wonder if there's a way to cache npmConfigHook somehow | 11:19:07 |
| @washort:greyface.org left the room. | 16:16:07 |
| 21 Jan 2026 |
| Matthew Hiles joined the room. | 12:56:14 |
| 23 Jan 2026 |
| speartooth-shark joined the room. | 17:02:29 |