Skip to content

Commit 3ba8d46

Browse files
committed
chore: update name
1 parent a339a68 commit 3ba8d46

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,29 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v4
1414

15-
- name: Use Node.js
16-
uses: actions/setup-node@v4
17-
with:
18-
node-version: '20.x'
19-
registry-url: 'https://registry.npmjs.org'
15+
- name: Use Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: "20.x"
19+
registry-url: "https://registry.npmjs.org"
2020

21-
- name: Determine release tag
22-
id: release_tag
23-
run: |
24-
if [[ "${{ github.ref }}" == *"-rc"* ]] || [[ "${{ github.ref }}" == *"-RC"* ]]; then
25-
echo "tag=next" >> "$GITHUB_OUTPUT"
26-
else
27-
echo "tag=latest" >> "$GITHUB_OUTPUT"
28-
fi
21+
- name: Determine release tag
22+
id: release_tag
23+
run: |
24+
if [[ "${{ github.ref }}" == *"-rc"* ]] || [[ "${{ github.ref }}" == *"-RC"* ]]; then
25+
echo "tag=next" >> "$GITHUB_OUTPUT"
26+
else
27+
echo "tag=latest" >> "$GITHUB_OUTPUT"
28+
fi
2929
30-
- name: Install dependencies and build
31-
run: |
32-
npm install
33-
npm run build
30+
- name: Install dependencies and build
31+
run: |
32+
npm install
33+
npm run build
3434
35-
- name: Publish
36-
run: npm publish --tag ${{ steps.release_tag.outputs.tag }}
37-
env:
38-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
- name: Publish
36+
run: npm publish --tag ${{ steps.release_tag.outputs.tag }}
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ Operating system gateway for remote serverless environments. Synapse provides a
3232
## Installation
3333

3434
```bash
35-
npm install synapse
35+
npm install @appwrite.io/synapse
3636
```
3737

3838
## Usage
3939

4040
### Basic Setup
4141

4242
```typescript
43-
import { Synapse, Terminal } from "synapse";
43+
import { Synapse, Terminal } from "@appwrite.io/synapse";
4444

4545
// Initialize Synapse for WebSocket communication
4646
const synapse = new Synapse();
@@ -56,15 +56,15 @@ const terminal = new Terminal(synapse);
5656

5757
```typescript
5858
// Send commands to the terminal
59-
terminal.write("ls -la");
59+
terminal.createCommand("ls -la");
6060

6161
// Handle terminal output
6262
terminal.onData((data) => {
6363
console.log("Terminal output:", data);
6464
});
6565

6666
// Resize terminal
67-
terminal.resize(80, 24);
67+
terminal.updateSize(80, 24);
6868

6969
// Kill terminal
7070
terminal.kill();

0 commit comments

Comments
 (0)