fix(deno)

This commit is contained in:
Jacob Heider 2023-04-14 14:58:59 -04:00 committed by Jacob Heider
parent 9affec5ac0
commit b8d1df3a94
2 changed files with 3 additions and 14 deletions

View file

@ -1,13 +0,0 @@
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index a43ec84..99784be 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -123,7 +123,7 @@ fn get_installer_root() -> Result<PathBuf, io::Error> {
format!("${home_env_var} is not defined"),
)
})?;
- home_path.push(".deno");
+ home_path.push(".local");
Ok(home_path)
}

View file

@ -37,7 +37,9 @@ build:
fi
# change default bindir to ~/.local/bin per our conventions
git apply props/default_bindir.diff
sed -i.bak -e 's/home_path.push(".deno")/home_path.push(".local")/' cli/tools/installer.rs
rm cli/tools/installer.rs.bak
grep home_path cli/tools/installer.rs
cargo build --release
mkdir -p "{{ prefix }}"/bin