Skip to content

Commit c17e79c

Browse files
authored
Merge pull request #1074 from layer5io/leecalcote/rename-package
Chore: rename package repo
2 parents 39546bd + 3c1a5a5 commit c17e79c

File tree

5 files changed

+21
-19
lines changed

5 files changed

+21
-19
lines changed

.github/workflows/bump-meshery-version.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
cache-dependency-path: '**/package-lock.json'
4040
- name: Make changes to pull request
4141
working-directory: ui
42-
run: npm install @layer5/sistent@${{needs.versions-check.outputs.current}}
42+
run: npm install @sistent/sistent@${{needs.versions-check.outputs.current}}
4343
- name: Create Pull Request
4444
id: cpr
4545
uses: peter-evans/create-pull-request@v7
@@ -78,7 +78,7 @@ jobs:
7878
cache-dependency-path: '**/package-lock.json'
7979
- name: Make changes to pull request
8080
working-directory: meshmap
81-
run: npm install @layer5/sistent@${{needs.versions-check.outputs.current}}
81+
run: npm install @sistent/sistent@${{needs.versions-check.outputs.current}}
8282
- name: Create Pull Request
8383
id: cpr
8484
uses: peter-evans/create-pull-request@v7
@@ -116,7 +116,7 @@ jobs:
116116
cache: "npm"
117117
cache-dependency-path: '**/package-lock.json'
118118
- name: Make changes to pull request
119-
run: npm install @layer5/sistent@${{needs.versions-check.outputs.current}} --legacy-peer-deps
119+
run: npm install @sistent/sistent@${{needs.versions-check.outputs.current}} --legacy-peer-deps
120120
- name: Create Pull Request
121121
id: cpr
122122
uses: peter-evans/create-pull-request@v7
@@ -155,7 +155,7 @@ jobs:
155155
cache-dependency-path: '**/package-lock.json'
156156
- name: Make changes to pull request
157157
working-directory: ui
158-
run: npm install @layer5/sistent@${{needs.versions-check.outputs.current}}
158+
run: npm install @sistent/sistent@${{needs.versions-check.outputs.current}}
159159
- name: Create Pull Request
160160
id: cpr
161161
uses: peter-evans/create-pull-request@v7

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ npm install <path-to-sistent-on-local-machine>
9494
This will update your Sistent dependency to:
9595
9696
```
97-
"@layer5/sistent" : "file:../../sistent"
97+
"@sistent/sistent" : "file:../../sistent"
9898
```
9999
100100
2. Build your local Sistent fork
@@ -117,12 +117,13 @@ Now, your project should reflect changes from your local Sistent fork.
117117
If you want to remove the local Sistent fork from your project, run:
118118
119119
```
120-
npm uninstall @layer5/sistent
120+
npm uninstall @sistent/sistent
121121
```
122122
123123
This will remove the local Sistent package from your project. You will have to reinstall the official package using this command:
124+
124125
```
125-
npm install @layer5/sistent
126+
npm install @sistent/sistent
126127
```
127128
128129
#### Method 2: Using `npm link`
@@ -140,7 +141,7 @@ This creates a global symlink which points to the local Sistent fork.
140141
2. Link the local Sistent fork to your project
141142
142143
```
143-
npm link @layer5/sistent
144+
npm link @sistent/sistent
144145
```
145146
146147
3.Build your local Sistent fork
@@ -168,24 +169,25 @@ To verify that the correct link has been created, run this command:
168169
npm ls -g
169170

170171
# Expected output:
171-
# ├── @layer5/sistent@0.14.11 -> ./../../../../<path-to-local-sistent-fork>
172+
# ├── @sistent/sistent@0.14.11 -> ./../../../../<path-to-local-sistent-fork>
172173
```
173174
174175
To verify that the created link is correctly used in your project, run this command in the directory where you linked the Sistent fork:
175176
176177
```
177-
ls -l node_modules/@layer5/sistent
178+
ls -l node_modules/@sistent/sistent
178179

179180
# Expected output:
180-
# node_modules/@layer5/sistent -> ../../../../../sistent
181+
# node_modules/@sistent/sistent -> ../../../../../sistent
181182
```
182183
183184
To revert back to the official package, first unlink the package, then install the official package using the following commands:
184185
185186
```
186-
npm unlink @layer5/sistent
187-
npm install @layer5/sistent
187+
npm unlink @sistent/sistent
188+
npm install @sistent/sistent
188189
```
190+
189191
> [!NOTE]
190192
> Avoid using `type any` in your code. Always specify explicit types to ensure type safety and maintainability.
191193

src/custom/ErrorBoundary/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The `ErrorBoundary` component is designed to catch errors that occur within its
99
Wrap your component with the `ErrorBoundary`:
1010

1111
```tsx
12-
import { ErrorBoundary } from '@layer5/sistent';
12+
import { ErrorBoundary } from '@sistent/sistent';
1313

1414
const MyComponent = () => {
1515
// Your component logic
@@ -43,7 +43,7 @@ const MyComponent = () => {
4343
Wrap your component using `withErrorBoundary`:
4444

4545
```tsx
46-
import { withErrorBoundary } from '@layer5/sistent';
46+
import { withErrorBoundary } from '@sistent/sistent';
4747

4848
const MyComponent = withErrorBoundary(() => {
4949
return {
@@ -61,7 +61,7 @@ const MyComponent = withErrorBoundary(() => {
6161
Wrap your component using withSuppressedErrorBoundary:
6262

6363
```tsx
64-
import { withSuppressedErrorBoundary } from '@layer5/sistent';
64+
import { withSuppressedErrorBoundary } from '@sistent/sistent';
6565

6666
const MyComponent = withSuppressedErrorBoundary(() => {
6767
return {

src/custom/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The `SearchBar` component is a reusable search bar. This component provides a us
7676

7777
```javascript
7878
import React, { useState } from 'react';
79-
import SearchBar from '@layer5/sistent/components';
79+
import SearchBar from '@sistent/sistent/components';
8080

8181
function App() {
8282
const [searchText, setSearchText] = useState('');

src/schemas/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ RJSF Schemas, based on the React JSON Schema Form library, define the structure,
1212
Include the required schema in your React component by importing it. For example:
1313

1414
```javascript
15-
import MyFormSchema from '@layer5/sistent';
15+
import MyFormSchema from '@sistent/sistent';
1616
```
1717

1818
1. **Rendering Forms:**
1919
Integrate the schema into your component to render the form dynamically. Use already created generic RJSF components or use RJSF Form component directly.
2020

2121
```javascript
22-
import { sampleSchema, sampleUiSchema } from '@layer5/sistent';
22+
import { sampleSchema, sampleUiSchema } from '@sistent/sistent';
2323
<Form schema={sampleSchema} uiSchema={sampleUiSchema} onSubmit={handleFormSubmission} />;
2424
```
2525

0 commit comments

Comments
 (0)