mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-08-19 04:27:02 +08:00
v0.3.8
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
include_files=()
|
||||
for f in "$@"; do
|
||||
include_files+=("${f#$PWD/}")
|
||||
done
|
||||
node_modules/.bin/tsc --noEmit -p . | (
|
||||
status=0
|
||||
show_continuation=false
|
||||
while IFS='' read -r line; do
|
||||
case "$line" in
|
||||
(' '*)
|
||||
if $show_continuation; then
|
||||
echo "$line" >&2
|
||||
fi
|
||||
;;
|
||||
(*)
|
||||
file="${line%%(*}"
|
||||
if [[ " ${include_files[@]} " =~ " ${file} " ]]; then
|
||||
show_continuation=true
|
||||
echo "$line" >&2
|
||||
status=1
|
||||
else
|
||||
show_continuation=false
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
exit $status
|
||||
)
|
||||
Reference in New Issue
Block a user