diff options
Diffstat (limited to 'xtask/src/dist.rs')
-rw-r--r-- | xtask/src/dist.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index e1126602a..821ba041b 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs | |||
@@ -3,7 +3,7 @@ use std::path::PathBuf; | |||
3 | use anyhow::Result; | 3 | use anyhow::Result; |
4 | 4 | ||
5 | use crate::{ | 5 | use crate::{ |
6 | not_bash::{fs2, pushd, pwd, rm_rf, run}, | 6 | not_bash::{fs2, pushd, rm_rf, run}, |
7 | project_root, | 7 | project_root, |
8 | }; | 8 | }; |
9 | 9 | ||
@@ -22,7 +22,7 @@ pub fn run_dist(nightly: bool) -> Result<()> { | |||
22 | fn dist_client(nightly: bool) -> Result<()> { | 22 | fn dist_client(nightly: bool) -> Result<()> { |
23 | let _d = pushd("./editors/code"); | 23 | let _d = pushd("./editors/code"); |
24 | 24 | ||
25 | let package_json_path = pwd().join("package.json"); | 25 | let package_json_path = PathBuf::from("./package.json"); |
26 | let original_package_json = fs2::read_to_string(&package_json_path)?; | 26 | let original_package_json = fs2::read_to_string(&package_json_path)?; |
27 | let _restore = | 27 | let _restore = |
28 | Restore { path: package_json_path.clone(), contents: original_package_json.clone() }; | 28 | Restore { path: package_json_path.clone(), contents: original_package_json.clone() }; |