fix tsc completion
- set '-C' flag of _arguments - remove duplicated flags
This commit is contained in:
parent
6a282fe7fa
commit
1f058a345f
7
src/_tsc
7
src/_tsc
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue