Skip to content

Commit e204ea2

Browse files
committed
refactor: rename wokwi-client-js package to @wokwi/client
1 parent 72a5ddb commit e204ea2

28 files changed

+49
-49
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ wokwi-part-tests/
1111

1212
# Ignore packed tarballs
1313
wokwi-cli-*.tgz
14-
wokwi-client-js-*.tgz
14+
wokwi-client-*.tgz

DEVELOPMENT.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pnpm exec playwright install
3131

3232
The repository contains two main packages:
3333
- `wokwi-cli`: The command-line interface for Wokwi.
34-
- `wokwi-client-js`: The JavaScript client library used to interact with Wokwi from a browser iframe.
34+
- `@wokwi/client`: The JavaScript client library used to interact with Wokwi from a browser iframe.
3535

3636
When you run `pnpm` commands from the repository root, the monorepo configuration determines which packages the command runs in. For example, `pnpm build` runs the build across packages, while `pnpm lint` runs `eslint .` for the whole repository.
3737

@@ -156,13 +156,13 @@ The `wokwi-cli` package includes binary executables for multiple platforms. To p
156156
pnpm publish
157157
```
158158

159-
### Publishing wokwi-client-js
159+
### Publishing @wokwi/client
160160

161-
The `wokwi-client-js` package is a JavaScript library without binaries. To publish:
161+
The `@wokwi/client` package is a JavaScript library without binaries. To publish:
162162

163163
1. Navigate to the package directory:
164164
```bash
165-
cd packages/wokwi-client-js
165+
cd packages/client
166166
```
167167

168168
2. Clean previous builds:
@@ -190,8 +190,8 @@ The `wokwi-client-js` package is a JavaScript library without binaries. To publi
190190
To publish both packages in sequence:
191191

192192
```bash
193-
# Publish wokwi-client-js first (it's a dependency of wokwi-cli)
194-
cd packages/wokwi-client-js
193+
# Publish @wokwi/client first (it's a dependency of wokwi-cli)
194+
cd packages/client
195195
pnpm clean && pnpm build && pnpm publish
196196

197197
# Then publish wokwi-cli

packages/wokwi-client-js/package.json renamed to packages/client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "wokwi-client-js",
2+
"name": "@wokwi/client",
33
"version": "0.18.3",
44
"description": "Wokwi Client JS Library",
55
"main": "dist/index.js",
@@ -12,7 +12,7 @@
1212
},
1313
"./browser": {
1414
"types": "./dist/index.d.ts",
15-
"import": "./dist/wokwi-client-js.browser.js"
15+
"import": "./dist/wokwi-client.browser.js"
1616
},
1717
"./transport/MessagePortTransport.js": {
1818
"types": "./dist/transport/MessagePortTransport.d.ts",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)