Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

vite.config.ts

20 lines640 Bytes

1import { defineConfig } from "vite-plus";
2​
3// Astro reads astro.config.mjs. This file only configures `vp run` tasks.
4export default defineConfig({
5 run: {
6 tasks: {
7 build: {
8 command:
9 "node scripts/stage-install-scripts.mjs && astro build && node scripts/copy-docs.mjs",
10 dependsOn: ["@t3tools/docs#build"],
11 },
12 // `astro check` regenerates .astro/*.d.ts and then reads them, which
13 // keeps a task out of the cache. Its real inputs are tracked as usual.
14 typecheck: {
15 command: "astro check",
16 cache: { input: [{ auto: true }, "!.astro/**"] },
17 },
18 },
19 },
20});