File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,12 +71,55 @@ To run tests:
7171make 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```
7779npm 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
You can’t perform that action at this time.
0 commit comments