Skip to content

Commit 6538717

Browse files
committed
fix fat-cli compilation, add pre-commit check
1 parent de066d7 commit 6538717

File tree

3 files changed

+50
-71
lines changed

3 files changed

+50
-71
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ repos:
4444
- id: cargo-check
4545
args:
4646
- "--locked"
47+
- id: cargo-check
48+
args:
49+
- "--locked"
50+
- "--package=meta-cli"
51+
- "--features=typegate"
4752
- id: clippy
4853
args:
4954
- "--locked"

Cargo.lock

Lines changed: 35 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

meta-cli/src/cli/typegate.rs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ pub fn command(_cmd: Typegate, _gen_args: ConfigArgs) -> Result<()> {
4141
BASE_URL.to_owned() + crate::build::COMMIT_HASH + "/typegate/import_map.json"
4242
});
4343

44-
runtime.block_on(typegate_engine::launch_typegate_deno(
45-
// typegate_core::resolve_url_or_path(
46-
// "",
47-
// &std::env::current_dir()?.join("./typegate/src/main.ts"),
48-
// )?,
49-
typegate_engine::resolve_url(&main_url)?,
50-
Some(import_map_url),
51-
))?;
44+
runtime
45+
.block_on(typegate_engine::launch_typegate_deno(
46+
// typegate_core::resolve_url_or_path(
47+
// "",
48+
// &std::env::current_dir()?.join("./typegate/src/main.ts"),
49+
// )?,
50+
typegate_engine::resolve_url(&main_url)?,
51+
Some(import_map_url),
52+
))
53+
.map_err(anyhow_to_eyre!())?;
5254
Ok(())
5355
}
5456
}

0 commit comments

Comments
 (0)