Skip to content

Commit ab776f7

Browse files
committed
[readme] Clarify how to use bundler with apoxy-js
1 parent 340dae4 commit ab776f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The easiest way to set this up would be to use esbuild. The following is a quick
2929
```bash
3030
# Make a new JS project
3131
npm init -y
32-
npm install esbuild @extism/js-pdk --save-dev
32+
npm install esbuild --save-dev
3333
mkdir src
3434
mkdir dist
3535
```
@@ -73,11 +73,11 @@ Add a `build` script to your `package.json`:
7373

7474
```json
7575
{
76-
"name": "extism-plugin",
76+
"name": "your-plugin",
7777
// ...
7878
"scripts": {
7979
// ...
80-
"build": "node esbuild.js && extism-js dist/index.js -i src/index.d.ts -o dist/plugin.wasm"
80+
"build": "node esbuild.js && apoxy-js dist/index.js -o dist/plugin.wasm"
8181
},
8282
// ...
8383
}
@@ -106,6 +106,6 @@ make
106106

107107
To test the built compiler (ensure you have Extism installed):
108108
```bash
109-
./target/release/extism-js bundle.js -i bundle.d.ts -o out.wasm
109+
./target/release/apoxy-js bundle.js -o out.wasm
110110
# => "{\"count\":4}"
111111
```

0 commit comments

Comments
 (0)