9 files_json="${files_json}\"$f\", "
11 files_json="$files_json]"
13 our_tsconfig=".tsconfig.${out##*/}.json"
20 sed <"$tsconfig" >"$our_tsconfig" '/^ *"files":/ s#:.*#:'"$files_json"'#'
22 x tsc --outfile "$out.1.tmp" -p "$our_tsconfig" 2>&1 \
23 | perl -pe 's/\((\d+),(\d+)\):/:$1:$2:/' >&2
24 test "${PIPESTATUS[*]}" = "0 0"
26 sed <"$out.1.tmp" '/^[a-z]/,$d' > "$out".tmp
27 echo "// autogenerated from $@" >>"$out".tmp
28 sed <"$1" '/^[a-z]/,$d' >>"$out".tmp
29 sed -n <"$out.1.tmp" '/^[a-z]/,$p' >> "$out".tmp
31 mv -f "$out".tmp "$out"