Skip to content

Commit 2c1e908

Browse files
nodejs-github-botmarco-ippolito
authored andcommitted
deps: update amaro to 0.0.5
PR-URL: #54199 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent c20e841 commit 2c1e908

File tree

4 files changed

+177
-108
lines changed

4 files changed

+177
-108
lines changed

deps/amaro/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,29 @@ const { code } = amaro.transformSync("const foo: string = 'bar';");
2525
console.log(code); // "const foo = 'bar';"
2626
```
2727

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+
2851
## License (MIT)
2952

3053
See [`LICENSE.md`](./LICENSE.md).

deps/amaro/dist/index.js

+152-103
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deps/amaro/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amaro",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "Node.js TypeScript wrapper",
55
"license": "MIT",
66
"type": "commonjs",
@@ -31,8 +31,5 @@
3131
"rimraf": "^6.0.1",
3232
"typescript": "^5.5.3"
3333
},
34-
"exports": {
35-
"./package.json": "./package.json"
36-
},
3734
"files": ["dist", "LICENSE.md"]
3835
}

src/amaro_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// Refer to tools/dep_updaters/update-amaro.sh
33
#ifndef SRC_AMARO_VERSION_H_
44
#define SRC_AMARO_VERSION_H_
5-
#define AMARO_VERSION "0.0.4"
5+
#define AMARO_VERSION "0.0.5"
66
#endif // SRC_AMARO_VERSION_H_

0 commit comments

Comments
 (0)