File tree Expand file tree Collapse file tree 1 file changed +44
-1
lines changed Expand file tree Collapse file tree 1 file changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,55 @@ To run tests:
71
71
make tests
72
72
```
73
73
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
75
77
76
78
```
77
79
npm install <path-to-sistent-on-local-machine>
78
80
```
79
81
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
+
80
123
> [!NOTE]
81
124
> Avoid using `type any` in your code. Always specify explicit types to ensure type safety and maintainability.
82
125
You can’t perform that action at this time.
0 commit comments