Wrong relative path to package.json

I am attempting to add an npm package for nixpkgs, and I ran generate.sh in the node-packages directory.
After SEVERAL hours of fetching from the npm registry, I get an ENOENT error: fetching local directory: …/…/applications/editors/vscode/extensions/rust-analyzer/build-deps from .
Error: ENOENT: no such file or directory, open ‘/path/to/nixpkgs/pkgs/applications/editors/vscode/extensions/rust-analyzer/build-deps/package.json’

I tried tracking down why it failed, and this line seems to be a mismatch to the actual path.
So, instead of “…/rust-analyzer/build-deps” the actual path is “…/rust-lang.rust-analyzer/build-deps”
Am I missing something here or this is an actual issue? I don’t want to run generate.sh again since it takes a lot of time.