Skip to content

Feat(jssg): better validation #1620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Update publish.rs
  • Loading branch information
AugustinMauroy committed Jul 22, 2025
commit a5a65214224f700fe0496a6f701611d0de249ab9
19 changes: 1 addition & 18 deletions crates/cli/src/commands/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use tempfile::TempDir;
use walkdir::WalkDir;

use crate::auth::TokenStorage;
use codemod_telemetry::send_event::{BaseEvent, TelemetrySender};
use crate::commands::workflow::validate::validate_codemod_manifest_structure;

#[derive(Args, Debug)]
Expand Down Expand Up @@ -122,7 +121,7 @@ struct PublishedPackage {
published_at: String,
}

pub async fn handler(args: &Command, telemetry: &dyn TelemetrySender) -> Result<()> {
pub async fn handler(args: &Command) -> Result<()> {
let package_path = args
.path
.as_ref()
Expand Down Expand Up @@ -201,22 +200,6 @@ pub async fn handler(args: &Command, telemetry: &dyn TelemetrySender) -> Result<
return Err(anyhow!("Failed to publish package"));
}

let cli_version = env!("CARGO_PKG_VERSION");

let _ = telemetry
.send_event(
BaseEvent {
kind: "codemodPublished".to_string(),
properties: HashMap::from([
("codemodName".to_string(), manifest.name.clone()),
("version".to_string(), manifest.version.clone()),
("cliVersion".to_string(), cli_version.to_string()),
]),
},
None,
)
.await;

println!("✅ Package published successfully!");
println!("📦 {}", format_codemod_name(&response.package));
println!("🏷️ Version: {}", response.package.version);
Expand Down
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