Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cargo-pgml-components/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 packages/cargo-pgml-components/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-pgml-components"
version = "0.1.23"
version = "0.1.24"
edition = "2021"
authors = ["PostgresML <team@postgresml.org>"]
license = "MIT"
Expand Down
15 changes: 10 additions & 5 deletions packages/cargo-pgml-components/src/frontend/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ pub fn debug() {
}

pub fn watch() {
rebuild();

let mut debouncer = unwrap_or_exit!(new_debouncer(
Duration::from_secs(1),
None,
Expand All @@ -156,9 +158,7 @@ pub fn watch() {
}

if detected {
print("changes detected, rebuilding...");
rebuild();
info("done");
}
}

Expand Down Expand Up @@ -211,7 +211,12 @@ pub fn lint(check: bool) {
}

fn rebuild() {
unwrap_or_exit!(execute_command(
Command::new("cargo").arg("pgml-components").arg("bundle")
));
print("changes detected, rebuilding...");
match execute_command(Command::new("cargo").arg("pgml-components").arg("bundle")) {
Ok(_) => info("ok"),
Err(err) => {
error("error");
error!("{}", err);
}
}
}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy