Using buildNpmPackages with multiple package.json's

I am trying to build advantage scope with buildNpmPackage but it uses docusaurus which uses another package.json and package-lock.json, so when i build docs it give a docusaurus: command not found error, but if i try to run npm install so i can run docusaurus it get an ENOTCACHED error because the second npm package set was not cached. I have tried find a way to load multiple package.jsons but i haven’t been able to so i was wondering if there is a way to.

packag.nix