Skip to content

Commit c757755

Browse files
add section tuxcare patcher to the angular page
1 parent ecd3bbf commit c757755

File tree

1 file changed

+31
-2
lines changed
  • docs/els-for-runtimes-and-libraries/angular

1 file changed

+31
-2
lines changed

docs/els-for-runtimes-and-libraries/angular/README.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,24 @@ TuxCare provides ELS for Angular as an NPM package, hosted on a secure internal
4848
Replace ${TOKEN} with the token you received from [[email protected]](mailto:[email protected]).
4949
:::
5050

51-
4. Update your `package.json` file to replace your Angular dependencies with the TuxCare packages.
51+
4. Update your `package.json` file to replace your Angular dependencies with the TuxCare packages. You can do this in two ways:
52+
53+
* **Option 1: TuxCare Patcher (Automated)**
54+
55+
If you already have dependencies listed in your `package.json`, install the Patcher globally, then run the patcher command:
56+
57+
<CodeWithCopy>
58+
59+
```text
60+
npm install -g @els-js/tuxcare-patcher --userconfig ./.npmrc
61+
tuxcare-patch-js
62+
```
63+
64+
</CodeWithCopy>
65+
66+
The patcher will automatically update your `dependencies` and `overrides` to use the corresponding `@els-js/*` packages based on your Angular version selection below.
67+
68+
* **Option 2: Manual Update**
5269
5370
<TableTabs label="Choose Angular version: " >
5471
@@ -787,7 +804,19 @@ Replace ${TOKEN} with the token you received from [[email protected]](mailto:sal
787804

788805
## How to Upgrade to a Newer Version of TuxCare Packages
789806

790-
If you have already installed a package with a `tuxcare.1` suffix and want to upgrade to a newer release (for example, `tuxcare.3`), you need to update the version string in your `package.json`, remove installed files and clear npm cache to avoid conflicts:
807+
If you have already installed a package with a `tuxcare.1` suffix and want to upgrade to a newer release (for example, `tuxcare.3`), you have two options:
808+
809+
* **Option 1**. Run TuxCare Patcher to update all TuxCare packages in your `package.json`:
810+
811+
<CodeWithCopy>
812+
813+
```text
814+
tuxcare-patch-js --upgrade
815+
```
816+
817+
</CodeWithCopy>
818+
819+
* **Option 2**. Manually update the version string(s) in your `package.json`, then remove installed files and clear npm cache to avoid conflicts:
791820

792821
<CodeWithCopy>
793822

0 commit comments

Comments
 (0)