@tramvai/swc-integration 5.50.0 → 5.53.78

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 CHANGED
@@ -32,9 +32,11 @@ Refer to docs of [`@tramvai/cli`](references/cli/experiments.md#transpilation)
32
32
  [Swc doc](https://swc.rs/docs/plugin/ecmascript/getting-started)
33
33
 
34
34
  1. Install [Rust](https://www.rust-lang.org/tools/install)
35
- 2. Run command `rustup target add wasm32-wasi` to install required toolchain to build wasm targets.
35
+ 2. Run command `rustup target add wasm32-wasip1` to install required toolchain to build wasm targets.
36
36
  3. Install clippy as additional tool for code check - `rustup component add clippy`
37
37
 
38
+ Alternative: use docker image with rust and run `./scripts/docker-run.sh`.
39
+
38
40
  ### Build
39
41
 
40
42
  - To build in dev mode i.e. for testing locally run `cargo build-wasi`
@@ -64,7 +66,7 @@ Refer to docs of [`@tramvai/cli`](references/cli/experiments.md#transpilation)
64
66
  1. Make changes to the source code
65
67
  2. Make sure the tests are passing with `cargo test`
66
68
  3. Commit a release version of swc plugins, you can do it either:
67
- - by building it locally with command `cargo build-wasi --release`. But this requires specific os and rust versions, and therefore should be done inside docker container, using image `rust:1.70.0`
69
+ - by building it locally with command `cargo build-wasi --release`. But this requires specific os and rust versions, and therefore should be done inside docker container, using image `rust:1.88.0`
68
70
  - pushing your code changes and creating merge request. Merge request will fail because it'll detect changes in built files but it'll provide these built files through gitlab artifacts for job `swc-integration build check`. You can download this artifact and commit files from it to your branch.
69
71
 
70
72
  #### Upgrade swc version
package/package.json CHANGED
@@ -1,15 +1,20 @@
1
1
  {
2
2
  "name": "@tramvai/swc-integration",
3
- "version": "5.50.0",
3
+ "version": "5.53.78",
4
4
  "description": "Tramvai integration with swc toolset",
5
5
  "files": [
6
- "target/wasm32-wasi/release/*.wasm"
6
+ "target/wasm32-wasip1/release/*.wasm"
7
7
  ],
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+ssh://git@github.com/tramvaijs/tramvai.git"
12
12
  },
13
+ "scripts": {
14
+ "build:wasm": "./scripts/build-wasm.sh",
15
+ "docker:run": "./scripts/docker-run.sh",
16
+ "docker:build": "npm run docker:run ./scripts/build-wasm.sh"
17
+ },
13
18
  "dependencies": {
14
19
  "@swc/core": "1.3.100",
15
20
  "@swc/helpers": "0.5.1",