File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ The easiest way to set this up would be to use esbuild. The following is a quick
29
29
``` bash
30
30
# Make a new JS project
31
31
npm init -y
32
- npm install esbuild @extism/js-pdk --save-dev
32
+ npm install esbuild --save-dev
33
33
mkdir src
34
34
mkdir dist
35
35
```
@@ -73,11 +73,11 @@ Add a `build` script to your `package.json`:
73
73
74
74
``` json
75
75
{
76
- "name" : " extism -plugin" ,
76
+ "name" : " your -plugin" ,
77
77
// ...
78
78
"scripts" : {
79
79
// ...
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"
81
81
},
82
82
// ...
83
83
}
106
106
107
107
To test the built compiler (ensure you have Extism installed):
108
108
``` 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
110
110
# => "{\"count\":4}"
111
111
```
You can’t perform that action at this time.
0 commit comments