### Bug description

quarto-cli: latest pre-release (1.4.51 at the time I'm writing this bug description)

O/S: Arch Linux (I'm maintainer of `rstudio-desktop` and `quarto-cli` AUR packages)

Build script src/webui/quarto-preview/build.ts assumes we're inside the git repo. If it runs against the source code from release archive, `git ls-files` returns `fatal: not a git repository (or any of the parent directories): .git` , however the error message gets suppressed. Effectively there is no notification if the mentioned module is not built.

Quick'n'dirty solution to me was to force rebuild quarto-preview:
[quarto-cli-pre-release/force_build_quarto_preview_js.diff](https://github.com/trap000d/aur/blob/master/quarto-cli-pre-release/force_build_quarto_preview_js.diff)

P.S. I've spotted it only because noticed the warning message in RStudio (2023.03.0.386) console: "Can't find quarto-preview.js"

Output of `quarto check`:
```
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.0.1: OK
      Dart Sass version 1.62.0: OK
      NOTE: Deno version 1.33.0 is too old. Please upgrade to 1.33.1 or later.
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.51
      Path: /usr/lib/quarto-cli/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.3
      Path: /usr/bin/python3
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.3.0
      Path: /usr/lib64/R
      LibPaths:
        - /home/trap000d/R/x86_64-pc-linux-gnu-library/4.3
        - /usr/lib/R/library
      knitr: (None)
      rmarkdown: (None)

      The rmarkdown package is not available in this R installation.
      Install with install.packages("rmarkdown")
```

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
jjallaire
2023-05-10T23:21:08Z
trap000d
bug triaged-to
closed
quarto-view.js won't be build from release
https://github.com/quarto-dev/quarto-cli/issues/5492