turbo.json
Rama main · réplica de lectura del repositorio original.
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"//#fmt": {
"cache": false
},
"build": {
"dependsOn": [
"^build"
],
"inputs": [
"src/**",
"build.mjs",
"tsconfig.json",
"tsdown.config.*",
"tsup.config.ts",
"package.json"
],
"outputs": [
"dist/**"
],
"env": [
"FAST_BUILD",
"SKIP_NAPI_BUILD",
"SKIP_WASM_BUILD"
]
},
// Second native build pass for rivetkit-napi / rivetkit-wasm. Their
// `build` pass embeds an empty bundle. This pass re-runs the native build
// (nothing depends on it), so it does not create a cycle. Scoped to the two
// embedding packages so it is not scheduled for the rest of the workspace.
// build, --filter, downstream rebuild) relinks the binary with an empty
// build via `pnpm -w build`, or re-run `... build:force` after a partial
"@rivetkit/rivetkit-napi#build:embed": {
"dependsOn": ["build"],
"cache": false,
"env": ["FAST_BUILD", "SKIP_NAPI_BUILD"]
},
"@rivetkit/rivetkit-wasm#build:embed": {
"dependsOn": ["build"],
"cache": false,
"env": ["SKIP_WASM_BUILD"]
},
"check-types": {
"inputs": [
"src/**",
"tests/**",
"tsconfig.json",
"tsup.config.ts",
"package.json"
],
"dependsOn": [
"^build"
]
},
"dev": {
// Both builds & checks types for this repo and all dependencies
//
// Build after checking types since check types will return errors faster
"dependsOn": [
"^check-types",
"check-types",
"build"
]
},
"fmt": {
"cache": false,
"inputs": [
"**/*.{ts,tsx,js,jsx,json,md}"
],
"outputs": []
},
"db:generate": {
"cache": false,
"inputs": [
"src/schema.ts",
"drizzle.config.ts"
],
"outputs": [
"drizzle/**/*.sql"
]
},
"db:migrate": {
"dependsOn": [
"db:generate"
],
"cache": false
},
"test": {
"inputs": [
"src/**",
"tests/**",
"package.json"
],
"dependsOn": [
"^build",
"check-types"
]
}
}
}