File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 33
33
fi
34
34
QUARTO_SRC_PATH=" $QUARTO_ROOT /src"
35
35
DEV_PATH=$QUARTO_SRC_PATH /quarto.ts
36
- QUARTO_IMPORT_MAP_ARG=--importmap=$QUARTO_SRC_PATH /import_map.json
37
36
38
37
if [ -f " $DEV_PATH " ]; then
38
+ QUARTO_DEV_MODE=true
39
+ QUARTO_IMPORT_MAP_ARG=--importmap=$QUARTO_SRC_PATH /import_map.json
39
40
if [ " $1 " == " --version" ] || [ " $1 " == " -v" ]; then
40
41
if [ " $QUARTO_FORCE_VERSION " != " " ]; then
41
42
echo $QUARTO_FORCE_VERSION
@@ -88,7 +89,6 @@ if [ -f "$DEV_PATH" ]; then
88
89
fi
89
90
90
91
else
91
-
92
92
QUARTO_ACTION=run
93
93
QUARTO_TARGET=${SCRIPT_PATH} /quarto.js
94
94
export QUARTO_BIN_PATH=$SCRIPT_PATH
@@ -192,5 +192,9 @@ if [ "$QUARTO_TS_PROFILE" != "" ]; then
192
192
QUARTO_DENO_EXTRA_OPTIONS=" --inspect-brk ${QUARTO_DENO_EXTRA_OPTIONS} "
193
193
QUARTO_TS_PROFILE=true " ${QUARTO_DENO} " ${QUARTO_ACTION} ${QUARTO_DENO_OPTIONS} ${QUARTO_DENO_EXTRA_OPTIONS} " ${QUARTO_IMPORT_MAP_ARG} " " ${QUARTO_TARGET} " " $@ "
194
194
else
195
- " ${QUARTO_DENO} " ${QUARTO_ACTION} ${QUARTO_DENO_OPTIONS} ${QUARTO_DENO_EXTRA_OPTIONS} " ${QUARTO_IMPORT_MAP_ARG} " " ${QUARTO_TARGET} " " $@ "
195
+ if [ " $QUARTO_DEV_MODE " == true ]; then
196
+ " ${QUARTO_DENO} " ${QUARTO_ACTION} ${QUARTO_DENO_OPTIONS} ${QUARTO_DENO_EXTRA_OPTIONS} " ${QUARTO_IMPORT_MAP_ARG} " " ${QUARTO_TARGET} " " $@ "
197
+ else
198
+ " ${QUARTO_DENO} " ${QUARTO_ACTION} ${QUARTO_DENO_OPTIONS} ${QUARTO_DENO_EXTRA_OPTIONS} " ${QUARTO_TARGET} " " $@ "
199
+ fi
196
200
fi
You can’t perform that action at this time.
0 commit comments