Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 44 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,52 @@ ls -l node_modules/@sistent/sistent
# node_modules/@sistent/sistent -> ../../../../../sistent
```

To revert back to the official package, first unlink the package, then install the official package using the following commands:
To revert back to the official package, first uninstall the package, then install the official package using the following commands:

```
npm unlink @sistent/sistent
npm uninstall @sistent/sistent
npm install @sistent/sistent
```

#### Method 3: Using `npm pack`

This method creates a tarball of your local Sistent build and installs it like a regular npm package. It avoids the peer dependency issues that `npm link` sometimes causes.

1. Build your local Sistent fork

```
cd <path-to-sistent-on-local-machine>

make build
```

2. Create a tarball

```
npm pack
```

This creates a `.tgz` file (e.g., `sistent-sistent-<version>.tgz`) in the Sistent directory.

3. Install the tarball in your project

```
cd <path-to-your-project>

npm install <path-to-sistent-on-local-machine>/sistent-sistent-<version>.tgz
```

4. Run the build command in your project

```
# example, Meshery UI
make ui-build
```

To revert back to the official package:

```
npm uninstall @sistent/sistent
npm install @sistent/sistent
```

Expand Down
Loading