!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

184 Members
55 Servers

Load older messages


SenderMessageTime
25 Mar 2023
@ambroisie:belanyi.fr@ambroisie:belanyi.frNo idea, I don't know the JS ecosystem funnily enough12:48:16
@ambroisie:belanyi.fr@ambroisie:belanyi.frMy only experience is packaging some front-ends for nixpkgs :')12:48:29
@lily:lily.flowersLily FosterWish I didn't know JS sometimes 🫠12:51:16
@ambroisie:belanyi.fr@ambroisie:belanyi.frSeems to be on npmjs.com12:51:58
@lily:lily.flowersLily Foster Yep it is. So use fetchzip and https://registry.npmjs.org/pnpm-lock-export/-/pnpm-lock-export-${version}.tgz 12:52:35
@lily:lily.flowersLily FosterWith buildNpmPackage12:52:45
@lily:lily.flowersLily FosterAnd you should be good12:52:51
@ambroisie:belanyi.fr@ambroisie:belanyi.frThanks12:52:54
@ambroisie:belanyi.fr@ambroisie:belanyi.fr Arf, no package-lock.json in the registry tarball 13:00:09
@ambroisie:belanyi.fr@ambroisie:belanyi.frI'll have to create the lock myself13:03:07
@lily:lily.flowersLily Foster
In reply to @ambroisie:belanyi.fr
Arf, no package-lock.json in the registry tarball
Wait really? I thought they always required that but maybe I'm misremembering
13:04:51
@lily:lily.flowersLily FosterWow it sure doesn't13:06:28
@lily:lily.flowersLily FosterCursed13:06:30
@ambroisie:belanyi.fr@ambroisie:belanyi.frLike the rest of JS13:07:08
@lily:lily.flowersLily Foster I guess you could put it in the nodePackages set, which does locking entirely independent of tooling 13:14:51
@ambroisie:belanyi.fr@ambroisie:belanyi.fr I just wrote an update script which does npm install --lock-only and patch it in 13:35:02
@ambroisie:belanyi.fr@ambroisie:belanyi.frI don't know which would be preferred when I'll be upstreaming this13:35:32
@ambroisie:belanyi.fr@ambroisie:belanyi.frFor now I just need to see if it works for my purposes13:35:41
@ambroisie:belanyi.fr@ambroisie:belanyi.fr What's the correct way to expose the executable when using buildNpmPackage? 13:37:56
@ambroisie:belanyi.fr@ambroisie:belanyi.fr nix build .#pnpm-lock-export gives result/bin/@cvent/pnpm-lock-export 13:38:38
@lily:lily.flowersLily FosterWait really 💀13:57:13
@lily:lily.flowersLily FosterThat might be fixed by one of the pending PRs. I'll check later13:57:24
@lily:lily.flowersLily FosterI really need to get those cleaned up and merged13:57:36
@ambroisie:belanyi.fr@ambroisie:belanyi.fr I think it's because the name field in package.json is @cvent/pnpm-lock-export 13:59:06
@ambroisie:belanyi.fr@ambroisie:belanyi.fr Yup, subsituteInPlace to remove the @cvent in name fixes it 13:59:36
@ambroisie:belanyi.fr@ambroisie:belanyi.frWhy did woodpecker decide to migrate from yarn anyway14:40:25
@ambroisie:belanyi.fr@ambroisie:belanyi.fr Mmh I'm thinking my issue might be a tooling issue rather than a package fetch problem
When trying to use both mkYarnPackage and buildNpmPackage I get the same issue about failing to find esbuild 🤔
19:32:41
@lily:lily.flowersLily FosterOh.. esbuild... add it to nativeBuildInputs I guess?19:45:46
@ambroisie:belanyi.fr@ambroisie:belanyi.fr It's not about trying to execute esbuild, it's earlier 20:02:44
@ambroisie:belanyi.fr@ambroisie:belanyi.fr I think I'll need to patch the package file to remove the need for esbuild 20:03:15

Show newer messages


Back to Room ListRoom Version: 6