Skip to content

Commit ce2bdb3

Browse files
authored
Merge pull request #1012 from M-DEV-1/M-DEV-1/add-sistent-instructions
Add Instructions for how to refer to your local Sistent fork
2 parents d43e72c + 412937c commit ce2bdb3

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

README.md

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,55 @@ To run tests:
7171
make tests
7272
```
7373

74-
To attach sistent to your project use:
74+
#### Using your local Sistent Fork in a Project
75+
76+
1. Install your local Sistent package in the project
7577

7678
```
7779
npm install <path-to-sistent-on-local-machine>
7880
```
7981

82+
> Example:
83+
>
84+
> ```
85+
> # relative path
86+
> npm install ../../sistent
87+
>
88+
> # absolute path
89+
> npm install /home/five/code/sistent
90+
> ```
91+
92+
This will update your Sistent dependency to:
93+
94+
```
95+
"@layer5/sistent" : "file:../../sistent"
96+
```
97+
98+
2. Build your local Sistent fork
99+
100+
After making changes to your fork, run this command in your local Sistent package.
101+
102+
```
103+
make build
104+
```
105+
106+
3. Run the build command in the project where your local Sistent fork is installed.
107+
108+
```
109+
# example, Meshery UI
110+
make ui-build
111+
```
112+
113+
Now your project should reflect changes from your local Sistent fork.
114+
115+
If you want to remove the local Sistent fork from your project, run:
116+
117+
```
118+
npm uninstall @layer5/sistent
119+
```
120+
121+
This will remove the local Sistent package from your project. You will have to install the standard package again after running this command.
122+
80123
> [!NOTE]
81124
> Avoid using `type any` in your code. Always specify explicit types to ensure type safety and maintainability.
82125

0 commit comments

Comments
 (0)