{ "$schema": "https://turbo.build/schema.json", "globalDependencies": ["tsconfig.base.json", "eslint.config.mjs", ".pnpmfile.cjs"], "tasks": { "build": { "dependsOn": ["^build"], "inputs": ["$TURBO_DEFAULT$", "!README.md", "!CHANGELOG.md"], "outputs": ["dist/**", "build/**"], "outputLogs": "errors-only" }, "typecheck": { "dependsOn": ["^build", "^typecheck", "build"], "inputs": ["$TURBO_DEFAULT$", "!README.md", "!CHANGELOG.md"], "outputs": [], "outputLogs": "errors-only" }, "@rozenite/agent-sdk#typecheck": { "dependsOn": [ "^build", "^typecheck", "build", "@rozenite/controls-plugin#build", "@rozenite/feature-flags-plugin#build", "@rozenite/file-system-plugin#build", "@rozenite/network-activity-plugin#build", "@rozenite/react-navigation-plugin#build", "@rozenite/redux-devtools-plugin#build", "@rozenite/zustand-plugin#build", "@rozenite/storage-plugin#build", "@rozenite/tanstack-query-plugin#build" ], "inputs": ["$TURBO_DEFAULT$", "!README.md", "!CHANGELOG.md"], "outputs": [], "outputLogs": "errors-only" }, // The site embeds a Storybook build of `@rozenite/ui` at /storybook. That // build used to be chained inside the website's own `build` script, which // put it outside Turborepo: it could not be cached or skipped, so editing // one .mdx file rebuilt the whole Storybook, and its output was hidden // inside the parent task's `errors-only` logs. Declaring it as a real task // here makes it cache on its own inputs, so a docs-only change restores it // instead of rebuilding it. // // The plugin directory page reads npm and GitHub while the site builds, so // this task is never cached: its output depends on live data that is not a // task input, and a cached degraded build must not satisfy a strict one. // Strict env mode strips every variable not declared here, which is how the // directory once shipped mock data without failing, so the variables it // reads are passed through (not hashed). GITHUB_ACTIONS is listed although // Turborepo already passes GITHUB_* through, so the deploy warnings do not // depend on that default. The token is not named // GITHUB_TOKEN: Turborepo passes every GITHUB_* variable to every task, and // release.yml sets a write-scoped GITHUB_TOKEN for the job that builds this // site. "@rozenite/docs#build": { "dependsOn": ["^build", "ui-storybook#build-storybook"], "inputs": ["$TURBO_DEFAULT$", "!README.md", "!CHANGELOG.md"], "outputs": ["dist/**", "build/**"], "outputLogs": "errors-only", "cache": false, "passThroughEnv": [ "PLUGIN_DIRECTORY_GITHUB_TOKEN", "PLUGIN_DIRECTORY_STRICT", "GITHUB_ACTIONS" ] }, // The site has no typecheck of its own, but the generic task would still // pull in the uncached, networked site build above. "@rozenite/docs#typecheck": { "dependsOn": [], "outputs": [] }, // The docs tests cover pure validation code and need neither the site build // (uncached, and it calls npm and GitHub) nor any other package's output. "@rozenite/docs#test": { "dependsOn": [], "inputs": ["$TURBO_DEFAULT$", "!README.md", "!CHANGELOG.md"], "outputs": [], "outputLogs": "new-only" }, "ui-storybook#build-storybook": { "dependsOn": ["^build"], "inputs": ["$TURBO_DEFAULT$", "!README.md", "!CHANGELOG.md"], "outputs": ["storybook-static/**"], "outputLogs": "errors-only" }, "lint": { "inputs": ["$TURBO_DEFAULT$", "!README.md", "!CHANGELOG.md"], "outputs": [], "outputLogs": "new-only" }, "@rozenite/playground#lint": { "dependsOn": ["^build"], "inputs": ["$TURBO_DEFAULT$", "!README.md", "!CHANGELOG.md"], "outputs": [], "outputLogs": "new-only" }, "test": { "dependsOn": ["^build", "build"], "inputs": ["$TURBO_DEFAULT$", "!README.md", "!CHANGELOG.md"], "outputs": [], "outputLogs": "new-only" }, "dev": { "cache": false, "persistent": true }, "start": { "cache": false, "persistent": true } } }