mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-05 06:17:55 +03:00
build-themes
-> build
to fix building themes on save
This commit is contained in:
parent
9e8e227b46
commit
5b2dd8e4d0
@ -26,7 +26,7 @@ fn main() {
|
|||||||
.expect("failed to run npm");
|
.expect("failed to run npm");
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
panic!(
|
panic!(
|
||||||
"build-themes script failed {}",
|
"build script failed {}",
|
||||||
String::from_utf8_lossy(&output.stderr)
|
String::from_utf8_lossy(&output.stderr)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -441,7 +441,7 @@ async fn watch_themes(
|
|||||||
while (events.next().await).is_some() {
|
while (events.next().await).is_some() {
|
||||||
let output = Command::new("npm")
|
let output = Command::new("npm")
|
||||||
.current_dir("styles")
|
.current_dir("styles")
|
||||||
.args(["run", "build-themes"])
|
.args(["run", "build"])
|
||||||
.output()
|
.output()
|
||||||
.await
|
.await
|
||||||
.log_err()?;
|
.log_err()?;
|
||||||
@ -449,7 +449,7 @@ async fn watch_themes(
|
|||||||
cx.update(|cx| theme_selector::ThemeSelector::reload(themes.clone(), cx))
|
cx.update(|cx| theme_selector::ThemeSelector::reload(themes.clone(), cx))
|
||||||
} else {
|
} else {
|
||||||
eprintln!(
|
eprintln!(
|
||||||
"build-themes script failed {}",
|
"build script failed {}",
|
||||||
String::from_utf8_lossy(&output.stderr)
|
String::from_utf8_lossy(&output.stderr)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user