mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
This reverts commit 4172c3f0bd.
This commit is contained in:
@@ -14,9 +14,10 @@ source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
|
||||
source "$(grep -sm1 "^$f " "$0.exe.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
|
||||
{ echo>&2 "ERROR: cannot find $f"; exit 1; }; f=; set -e
|
||||
# --- end runfiles.bash initialization v2 ---
|
||||
set -eu
|
||||
set -e
|
||||
runfiles_export_envvars
|
||||
FLATC=$(rlocation com_github_google_flatbuffers/flatc)
|
||||
ESBUILD=$(rlocation npm/node_modules/esbuild/bin/esbuild)
|
||||
TS_FILE=$(${FLATC} $@ | grep "Entry point.*generated" | grep -o "bazel-out.*ts")
|
||||
export PATH="$(rlocation nodejs_linux_amd64/bin/nodejs/bin):${PATH}"
|
||||
${ESBUILD_BIN} ${TS_FILE} --format=cjs --bundle --outfile="${OUTPUT_FILE}" --external:flatbuffers --log-level=warning
|
||||
export PATH=$(rlocation nodejs_linux_amd64/bin/nodejs/bin)
|
||||
${ESBUILD} ${TS_FILE} --format=cjs --bundle --outfile="${OUTPUT_FILE}" --external:flatbuffers --log-level=warning
|
||||
|
||||
Reference in New Issue
Block a user