Skip to content

Commit

Permalink
feat: Install dependencies before git init
Browse files Browse the repository at this point in the history
  • Loading branch information
ottomated committed Mar 4, 2023
1 parent 370e263 commit 588d277
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "create-o7-app"
version = "0.1.4"
version = "0.1.5"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
10 changes: 5 additions & 5 deletions src/create/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ pub fn create(input: UserInput) -> Result<()> {
create_package_json(&input)?;
log_step_end(start);

let install_deps_res = install_deps(&input);
if let Err(e) = &install_deps_res {
log_step_error(e);
}

let create_repo_res = create_repo(&input);
let git_error = match &create_repo_res {
Ok(_) => None,
Expand All @@ -45,11 +50,6 @@ pub fn create(input: UserInput) -> Result<()> {
}
};

let install_deps_res = install_deps(&input);
if let Err(e) = &install_deps_res {
log_step_error(e);
}

next_steps::print(&input, git_error, install_deps_res.is_ok());

Ok(())
Expand Down

0 comments on commit 588d277

Please sign in to comment.