Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update amaro to 0.0.6 #54199

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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).
257 changes: 153 additions & 104 deletions deps/amaro/dist/index.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 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.6",
"description": "Node.js TypeScript wrapper",
"license": "MIT",
"type": "commonjs",
Expand All @@ -17,11 +17,14 @@
"clean": "rimraf dist",
"lint": "biome lint --write",
"format": "biome format --write",
"ci": "biome ci",
"ci:fix": "biome check --write",
"prepack": "npm run build",
"postpack": "npm run clean",
"build": "rspack build",
"typecheck": "tsc --noEmit",
"test": "node --test ./test"
"test": "node --test --experimental-test-snapshots **/*.test.js",
"test:regenerate": "node --test --experimental-test-snapshots --test-update-snapshots **/*.test.js"
},
"devDependencies": {
"@biomejs/biome": "1.8.3",
Expand All @@ -31,8 +34,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.6"
#endif // SRC_AMARO_VERSION_H_
Loading