Skip to content

Commit

Permalink
fix(cli): assets path on Windows (#997)
Browse files Browse the repository at this point in the history
* fix(cli): assets path on Windows

* fix: clippy
  • Loading branch information
QuiiBz committed Jun 27, 2023
1 parent ce39768 commit cfe19e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-pens-scream.md
@@ -0,0 +1,5 @@
---
'@lagon/cli': patch
---

Fix assets path delimiter on Windows
4 changes: 2 additions & 2 deletions crates/cli/src/utils/deployments.rs
Expand Up @@ -306,7 +306,7 @@ pub fn bundle_function(
.unwrap()
.to_str()
.unwrap()
.to_string()
.replace('\\', "/")
+ ".js",
client_output,
);
Expand Down Expand Up @@ -338,7 +338,7 @@ pub fn bundle_function(
.unwrap()
.to_str()
.unwrap()
.to_string();
.replace('\\', "/");
let file_content = fs::read(path)?;

final_assets.insert(diff, file_content);
Expand Down

0 comments on commit cfe19e6

Please sign in to comment.