Skip to content

Commit

Permalink
Allow dirs ending in .wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Jan 9, 2024
1 parent cfa6c04 commit 4b6fc68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli/src/subcommands/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ pub async fn exec(mut config: Config, args: &ArgMatches) -> Result<(), anyhow::E
query_params.push(("trace_log", "true"));
}

let path_to_wasm = if path_to_project.extension().map_or(false, |ext| ext == "wasm") {
let path_to_wasm = if !path_to_project.is_dir() && path_to_project.extension().map_or(false, |ext| ext == "wasm") {
path_to_project.clone()
} else {
crate::tasks::build(path_to_project, skip_clippy, build_debug)?
Expand Down

0 comments on commit 4b6fc68

Please sign in to comment.