From 66424032a2c78c6010c0a1a1b22a26d081166660 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 19 Feb 2024 10:28:41 -0500 Subject: feat(unstable/lint): no-slow-types for JSR packages (#22430) 1. Renames zap/fast-check to instead be a `no-slow-types` lint rule. 1. This lint rule is automatically run when doing `deno lint` for packages (deno.json files with a name, version, and exports field) 1. This lint rules still occurs on publish. It can be skipped by running with `--no-slow-types` --- cli/args/flags.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 3b6810a95..0ce521296 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -301,7 +301,7 @@ pub struct VendorFlags { pub struct PublishFlags { pub token: Option, pub dry_run: bool, - pub no_zap: bool, + pub allow_slow_types: bool, } #[derive(Clone, Debug, Eq, PartialEq)] @@ -2389,9 +2389,9 @@ fn publish_subcommand() -> Command { .action(ArgAction::SetTrue), ) .arg( - Arg::new("no-zap") - .long("no-zap") - .help("Skip Zap compatibility validation") + Arg::new("allow-slow-types") + .long("allow-slow-types") + .help("Allow publishing with slow types") .action(ArgAction::SetTrue), ) }) @@ -3828,7 +3828,7 @@ fn publish_parse(flags: &mut Flags, matches: &mut ArgMatches) { flags.subcommand = DenoSubcommand::Publish(PublishFlags { token: matches.remove_one("token"), dry_run: matches.get_flag("dry-run"), - no_zap: matches.get_flag("no-zap"), + allow_slow_types: matches.get_flag("allow-slow-types"), }); } -- cgit v1.2.3