Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
181 views
in Technique[技术] by (71.8m points)

How to include locally cloned version of open source angular component into an Angular project?

I have an Angular 10 project that is using an open source Angular component that was installed using the normal "npm install --s xxxxxxx" route.

I want to clone the open source Angular component github project to my local PC to make some code improvements.

How do I make my Angular project point at the cloned local version of the open source component?

question from:https://stackoverflow.com/questions/65864593/how-to-include-locally-cloned-version-of-open-source-angular-component-into-an-a

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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"
    }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...