buildNodeModules
buildNodeModules copied to clipboard
An experiment in improving node packaging for nix. Dead simple.
I am creating a default.nix in /fixtures/kitchen_sink ``` let pkgs = import {}; bnm = import ~/buildNodeModules { pkgs = pkgs; lib = pkgs.lib; }; inherit (bnm) buildNodeModules fetchNodeModules hooks;...
``` npm ERR! code ENOTCACHED npm ERR! request to https://registry.npmjs.org/@swc%2fcore failed: cache mode is 'only-if-cached' but no cached response is available. npm ERR! A complete log of this run can...
Error: ``` error: … while calling the 'derivationStrict' builtin at :9:12: 8| 9| strict = derivationStrict drvAttrs; | ^ 10| … while evaluating derivation 'my-website-0.1.0' whose name attribute is located...
See https://github.com/NixOS/nixpkgs/pull/289231 `fetchNodeModules` has been renamed to `fetchNpmLock` and upstreamed into nixpkgs.
I'm trying to replicate the `kitchen_sink` example in my typescript monorepo. I have two packages (`@rockleigh/app` and `@rockleigh/core`). `app` references `core` as such: In `app/package.json`: ```json "dependencies": { "@rockleigh/core": "file:../ts-packages/core"...