Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/package/scripts/vendoring/vendor.sh
6451 views
1
# You should not need to run this script directly.
2
# It is sourced by the configure.sh script.
3
if [[ "${QUARTO_VENDOR_BINARIES}" = "true" ]]; then
4
export DENO_BIN_PATH=$QUARTO_BIN_PATH/tools/$DENO_ARCH_DIR/deno
5
else
6
if [ -z "$DENO_BIN_PATH" ]; then
7
echo "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."
8
exit 1
9
fi
10
fi
11
12
if [ -z "$DENO_DIR" ]; then
13
export DENO_DIR=$QUARTO_BIN_PATH/deno_cache
14
fi
15
16
echo Revendoring quarto dependencies
17
18
# remove deno_cache directory first
19
if [ -d "$DENO_DIR" ]; then
20
rm -rf "$DENO_DIR"
21
fi
22
23
pushd "${QUARTO_SRC_PATH}"
24
set +e
25
for entrypoint in quarto.ts vendor_deps.ts ../tests/test-deps.ts ../package/scripts/deno_std/deno_std.ts; do
26
$DENO_BIN_PATH install --allow-all --no-config --entrypoint $entrypoint "--importmap=$QUARTO_SRC_PATH/import_map.json"
27
done
28
set -e
29
popd
30
31