Skip to content

Commit

Permalink
🦄 refactor: Replace flags with cli in Deno for copy script
Browse files Browse the repository at this point in the history
  • Loading branch information
caoccao committed Sep 3, 2024
1 parent 3b13001 commit cb21e9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* Revised internal error handling by relaying exception in `parse()`, `transform()`, `transpile()`
* Enhanced logging in rust lib
* Supported Android

## 0.11.0

Expand Down
2 changes: 0 additions & 2 deletions rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ This doc is a guide to how to build this library.

Follow the [Cross-compilation](https://rust-lang.github.io/rustup/cross-compilation.html) to add the following [supported platforms](https://doc.rust-lang.org/nightly/rustc/platform-support.html).

Note: The Android build hasn't been implemented yet.

```sh
# 64-bit MSVC (Windows 10+)
rustup target add x86_64-pc-windows-msvc
Expand Down
4 changes: 2 additions & 2 deletions scripts/ts/copy_swc4j_lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ deno run --allow-all scripts/ts/copy_swc4j_lib.ts -o macos -a arm64
deno run --allow-all scripts/ts/copy_swc4j_lib.ts -d -o macos -a arm64
*/

import * as flags from "https://deno.land/std/flags/mod.ts";
import * as cli from "https://deno.land/std/cli/mod.ts";
import * as fs from "https://deno.land/std/fs/mod.ts";
import * as path from "https://deno.land/std/path/mod.ts";

Expand Down Expand Up @@ -136,7 +136,7 @@ function copy(
return 0;
}

const args = flags.parse(Deno.args, {
const args = cli.parseArgs(Deno.args, {
alias: {
arch: "a",
debug: "d",
Expand Down

0 comments on commit cb21e9c

Please sign in to comment.