fix tsc completion

- set '-C' flag of _arguments
- remove duplicated flags
This commit is contained in:
Shohei YOSHIDA 2026-03-08 22:55:10 +09:00
parent 6a282fe7fa
commit 1f058a345f
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 5 additions and 2 deletions

View File

@ -34,6 +34,9 @@
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
typeset -A opt_args
local context state line
local -a module_types=( local -a module_types=(
none commonjs amd umd system es6/es2015 es2020 es2022 esnext node16 node18 nodenext preserve none commonjs amd umd system es6/es2015 es2020 es2022 esnext node16 node18 nodenext preserve
) )
@ -197,7 +200,7 @@ local -a opts=(
if (( $+opt_args[--build] )); then if (( $+opt_args[--build] )); then
opts+=( opts+=(
'(-v --verbose)'{-v,--verbose}"[Enable verbose logging]" '(-v --verbose)'{-v,--verbose}"[Enable verbose logging]"
'(-d --dry)'{-d,--dry}'[Show what would be built]' '--dry[Show what would be built]'
'(-f --force)'{-f,--force}'[Build all projects, including those that appear to be up to date]' '(-f --force)'{-f,--force}'[Build all projects, including those that appear to be up to date]'
'--clean[Delete the outputs of all projects]' '--clean[Delete the outputs of all projects]'
'--stopBuildOnErrors[Skip building downstream projects on error in upstream project]' '--stopBuildOnErrors[Skip building downstream projects on error in upstream project]'
@ -208,7 +211,7 @@ else
) )
fi fi
_arguments $opts && return 0 _arguments -C $opts && return 0
# Local Variables: # Local Variables:
# mode: Shell-Script # mode: Shell-Script