amaro 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/index.js +153 -104
- package/package.json +5 -5
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -25,6 +25,29 @@ const { code } = amaro.transformSync("const foo: string = 'bar';");
|
|
|
25
25
|
console.log(code); // "const foo = 'bar';"
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
### How to update SWC
|
|
29
|
+
|
|
30
|
+
To update the SWC version, run:
|
|
31
|
+
|
|
32
|
+
```shell
|
|
33
|
+
./tools/update-swc.sh
|
|
34
|
+
git add deps
|
|
35
|
+
git commit -m "chore: update swc to vX.Y.Z"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Once you have updated the rust source code we must build the wasm.
|
|
39
|
+
To build the wasm it is necessary to have Docker installed.
|
|
40
|
+
|
|
41
|
+
```shell
|
|
42
|
+
node ./tools/build-wasm.js
|
|
43
|
+
git add lib
|
|
44
|
+
git commit -m "chore: build wasm from swc vX.Y.Z"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### TypeScript Version
|
|
48
|
+
|
|
49
|
+
The supported TypeScript version is 5.5.4.
|
|
50
|
+
|
|
28
51
|
## License (MIT)
|
|
29
52
|
|
|
30
53
|
See [`LICENSE.md`](./LICENSE.md).
|