Skip to content

check

Terminal window
nx check my-app

Runs astro check. The check target depends on sync, so the generated types are up to date, and it is cached.

The workspace needs @astrojs/check and typescript. When @astrojs/check is missing, the executor stops and prints the install command for your package manager.

Option Type Default Description
watch boolean false Keeps running and checks again after every change.
tsconfig string none Path of the tsconfig.json to use.
root string none Project directory. Nx knows it, so you rarely set this.
config string none Path of the Astro config file. Without it Astro finds astro.config.* itself.
verbose boolean false Verbose output.
additionalArgs array none More command-line arguments for Astro.
autoInstall boolean false Installs @astrojs/check when it is missing.
nx-astro 3.2.0 · MIT Developed by