-
Notifications
You must be signed in to change notification settings - Fork 140
[Docs] Improve and clarify npm link instructions in README (#999) #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Thanks, @yashodipmore ! |
@M-DEV-1 will you review? |
# Expected output: | ||
# node_modules/@sistent/sistent -> ../../../../../sistent | ||
```bash | ||
npm ls -g --depth=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @yashodipmore, wouldn't it be better to not specify the --depth
flag here?
|
||
```bash | ||
@layer5/sistent@x.y.z -> /path/to/your/sistent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@layer5/sistent@x.y.z -> /path/to/your/sistent | |
@sistent/sistent@x.y.z -> /path/to/your/sistent |
> [!NOTE] | ||
> Avoid using `type any` in your code. Always specify explicit types to ensure type safety and maintainability. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this back, as this is a general tip, not related to local sistent forks.
@yashodipmore, the DCO check is failing, please signoff your commits. Ref: https://github.com/layer5io/sistent/pull/1082/checks?check_run_id=44296640731 |
|
||
1. Create a link of your local Sistent fork | ||
The `npm link` workflow allows contributors to test their local changes in Sistent within projects like Meshery UI without publishing the package to npm. It creates a symbolic link from the global `node_modules` to your development version of Sistent, enabling fast feedback during development. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description, of the npm link
command is helpful, but I'm not sure what is new in this change, except this description, and the extra tips in the end. Could you explain maybe why you felt this change was necessary?
Notes for Reviewers
This PR fixes #999
This PR improves the
npm link
instructions in the README by adding a detailed, developer-friendly, and accurate workflow for contributors to test their local Sistent fork within Meshery or other projects.Signed commits