Nix NodeJS | 194 Members | |
| 59 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Sep 2025 | ||
| old one is QMxu new one is XouMk | 10:40:23 | |
| oh worry I pasted the old version | 10:40:38 | |
| the version in my editor has the new one that's mb | 10:40:44 | |
| * oh sorry I pasted the old version | 10:40:50 | |
| also the error I get when the hash is wrong looks like this:
as opposed to the ENOTCACHED error I was talking about above | 10:41:49 | |
| this is what I have so far:
| 10:42:02 | |
| I'm not sure why it doesn't like it | 10:44:00 | |
| maybe the package-lock is broken | 10:44:15 | |
| And I don't have the time right now to investigate, sorry :/ | 10:44:21 | |
| all good thank you for the help marie | 10:44:35 | |
| I fixed it! PR is live but even if I messed something up I'm still happy I'll just integrate it into my config: https://github.com/NixOS/nixpkgs/pull/444038 | 14:35:14 | |
| 19 Sep 2025 | ||
| 15:22:21 | ||
| 15:24:49 | ||
| 17:21:36 | ||
| In case you missed it on GitHub: this is queued to be merged. It will start trickling into channels soon (https://nixpk.gs is helpful for tracking that progression) | 23:27:53 | |
| 23 Sep 2025 | ||
| 10:41:13 | ||
| 11:34:42 | ||
| Hello! I'm packaging a cli tool that is managed using lerna. How do I make it fit the buildNodePackage ? (also the upstream doesn't provide a lock file) | 11:59:36 | |
| (it uses lerna v3 btw) | 12:01:42 | |
| I bypassed the issue by using the pre-built package on NPM. | 13:22:23 | |
In reply to @tomodachi94:matrix.orgOh yeah I use that tracker all the time. Thanks for the merge! | 13:24:22 | |
| 14:59:39 | ||
| evening, fellers and felines related to Albert's package: his current effort looks like this, and i'm trying to replace the NPM archive with the Github source and run npm run build in it (diff), but tsc fails with this kinda error: https://termbin.com/9t7dwhat could be the culprit? | 15:18:10 | |
In reply to @acidbong:envs.netThis looks like not all deps were installed, specifically something for typescript. | 15:31:03 | |
In reply to @acidbong:envs.net* This looks like not all npm deps were installed, specifically something for typescript. | 15:31:23 | |
| anyway, is it still a good idea to use archives from NPM? i see some programs are packaged like that in Nixpkgs | 16:05:48 | |
| It depends, ime building from upstream source is better as it is easier to debug issues from source inputs to compiled outputs. Archives from npm often contain already compiled archives, which can be an easy way to sidestep a complex compile/build step.(similar to packaging upstream binaries). | 18:06:17 | |
The issue is that for some reason, the package can only be built by running npm install && npm run bootstrap from the root of the repo. If I change a setting that makes it generate a lockfile for each package, then it breaks (because some stuff is not shared anymore) | 18:06:20 | |
| Each package gets its own node_modules, but only one lockfile is generated (sometimes) | 18:08:04 | |
| The issue you face is that some of the "internal" dependencies (ie in the same repo) are using types (in the dev-deps), but the main package does not include them in the repo's package.json (only in NPM's package.json) | 18:14:20 | |