Path: blob/main/package/scripts/vendoring/vendor.sh
6451 views
# You should not need to run this script directly.1# It is sourced by the configure.sh script.2if [[ "${QUARTO_VENDOR_BINARIES}" = "true" ]]; then3export DENO_BIN_PATH=$QUARTO_BIN_PATH/tools/$DENO_ARCH_DIR/deno4else5if [ -z "$DENO_BIN_PATH" ]; then6echo "DENO_BIN_PATH is not set. You either need to allow QUARTO_VENDOR_BINARIES or set DENO_BIN_PATH to the path of a deno binary."7exit 18fi9fi1011if [ -z "$DENO_DIR" ]; then12export DENO_DIR=$QUARTO_BIN_PATH/deno_cache13fi1415echo Revendoring quarto dependencies1617# remove deno_cache directory first18if [ -d "$DENO_DIR" ]; then19rm -rf "$DENO_DIR"20fi2122pushd "${QUARTO_SRC_PATH}"23set +e24for entrypoint in quarto.ts vendor_deps.ts ../tests/test-deps.ts ../package/scripts/deno_std/deno_std.ts; do25$DENO_BIN_PATH install --allow-all --no-config --entrypoint $entrypoint "--importmap=$QUARTO_SRC_PATH/import_map.json"26done27set -e28popd293031