You can use the file:
prefix in your package.json.
You can find more examples of how to use it here
{
"name": "myProject",
"version": "1.0.0",
"private": true,
"dependencies": {
"my-component-library": "file:../../component-library/components"
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…