Is there something like Common Codebase for private package?

say I’ve several private packages for all my projects, they’re not famous packages like React, lodash. But they’re heavily used in my personal project. Currently I copy them from node_modules to git-visible folder so cursor codebase indexing can find them. And I do this for all my projects. I just wondering is there any user settings like codebase folders so all my projects’ codebase can share them