Skip to content
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

feat(unstable): --unstable-* flags are only available in runtime subcommands #23063

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bartlomieju
Copy link
Member

This commit makes --unstable-* flags only available in the runtime subcommands.

Previously --unstable-* flags were available globally, polluting help output for every single
subcommand, even ones that did not use them.

This is most likely a Deno 2 change as it will break some of the existing CLI invocations - TBD.

We might want to enable it now with DENO_FUTURE=1 env var.

@bartlomieju bartlomieju added this to the 1.42 milestone Mar 24, 2024
Comment on lines +3926 to +3931
// TODO(bartlomieju): these flags might actually be used in non-runtime subcommands
flags.unstable_config.bare_node_builtins =
matches.get_flag("unstable-bare-node-builtins");
flags.unstable_config.byonm = matches.get_flag("unstable-byonm");
flags.unstable_config.sloppy_imports =
matches.get_flag("unstable-sloppy-imports");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't wrong, failing tests:

    check::test_unstable_sloppy_imports_dts_files
    publish::bare_node_builtins
    publish::bare_node_builtins_warning_no_warnings
    publish::sloppy_imports
    publish::sloppy_imports_no_warnings
    watcher::lint_all_files_on_each_change_test

Will need to split it into unstable_runtime_args and unstable_cli_flags - the latter should be applied to most of the subcommands (but not all!)

@bartlomieju bartlomieju removed this from the 1.42 milestone Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant