Skip to content

Commit

Permalink
deps: update amaro to 0.0.5
Browse files Browse the repository at this point in the history
PR-URL: #54199
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
Reviewed-By: Zeyu "Alex" Yang <[email protected]>
Reviewed-By: Jake Yuesong Li <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
  • Loading branch information
nodejs-github-bot authored and marco-ippolito committed Aug 5, 2024
1 parent c20e841 commit 2c1e908
Show file tree
Hide file tree
Showing 4 changed files with 177 additions and 108 deletions.
23 changes: 23 additions & 0 deletions deps/amaro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,29 @@ const { code } = amaro.transformSync("const foo: string = 'bar';");
console.log(code); // "const foo = 'bar';"
```

### How to update SWC

To update the SWC version, run:

```shell
./tools/update-swc.sh
git add deps
git commit -m "chore: update swc to vX.Y.Z"
```

Once you have updated the rust source code we must build the wasm.
To build the wasm it is necessary to have Docker installed.

```shell
node ./tools/build-wasm.js
git add lib
git commit -m "chore: build wasm from swc vX.Y.Z"
```

### TypeScript Version

The supported TypeScript version is 5.5.4.

## License (MIT)

See [`LICENSE.md`](./LICENSE.md).
255 changes: 152 additions & 103 deletions deps/amaro/dist/index.js

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions deps/amaro/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amaro",
"version": "0.0.4",
"version": "0.0.5",
"description": "Node.js TypeScript wrapper",
"license": "MIT",
"type": "commonjs",
Expand Down Expand Up @@ -31,8 +31,5 @@
"rimraf": "^6.0.1",
"typescript": "^5.5.3"
},
"exports": {
"./package.json": "./package.json"
},
"files": ["dist", "LICENSE.md"]
}
2 changes: 1 addition & 1 deletion src/amaro_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// Refer to tools/dep_updaters/update-amaro.sh
#ifndef SRC_AMARO_VERSION_H_
#define SRC_AMARO_VERSION_H_
#define AMARO_VERSION "0.0.4"
#define AMARO_VERSION "0.0.5"
#endif // SRC_AMARO_VERSION_H_

0 comments on commit 2c1e908

Please sign in to comment.