summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-02-19 10:28:41 -0500
committerGitHub <noreply@github.com>2024-02-19 15:28:41 +0000
commit66424032a2c78c6010c0a1a1b22a26d081166660 (patch)
tree610e95beba5685ef1ba322375bf31a3fd6c5a187 /cli/args/flags.rs
parent2b279ad630651e973d5a31586f58809f005bc925 (diff)
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`
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs10
1 files changed, 5 insertions, 5 deletions
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<String>,
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"),
});
}