diff --git a/.github/a2ui-catalog.instructions.md b/.github/a2ui-catalog.instructions.md index 82bc1207e5..a1a60f1aaf 100644 --- a/.github/a2ui-catalog.instructions.md +++ b/.github/a2ui-catalog.instructions.md @@ -7,3 +7,5 @@ When maintaining A2UI component catalogs, keep the catalog-facing contract in a Only `@a2uiCatalog` is a custom tag. Use standard TypeDoc-supported comments and tags for metadata: summaries for descriptions, `@remarks` for additional description, `@defaultValue` for schema defaults, and `@deprecated` for deprecated fields. Do not write JSON Schema in comments. Preserve existing enum order when regenerating catalog JSON, because catalog snapshots and LLM prompts can depend on deterministic option ordering. Keep built-in catalog CSS assets in `packages/genui/a2ui/styles/catalog/*.css`, not under `src/catalog`. Catalog component TSX files should import those assets through paths that stay valid after TypeScript emits `dist/catalog//index.jsx`, for example `../../../styles/catalog/Button.css`. + +When a GenUI package builds a CLI or other generated artifact that another workspace package executes during its own build, declare that package's `dist/**` (or equivalent generated directory) as Turbo `build.outputs`. Without explicit outputs, cache hits can skip restoring the built CLI and leave downstream workspace bins pointing at missing files. diff --git a/packages/genui/a2ui-catalog-extractor/turbo.json b/packages/genui/a2ui-catalog-extractor/turbo.json new file mode 100644 index 0000000000..b767a4943d --- /dev/null +++ b/packages/genui/a2ui-catalog-extractor/turbo.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://turbo.build/schema.json", + "extends": [ + "//" + ], + "tasks": { + "build": { + "dependsOn": [ + "^build" + ], + "inputs": [ + "src/**", + "bin/**", + "package.json", + "rslib.config.ts", + "tsconfig.build.json", + "tsconfig.json" + ], + "outputs": [ + "dist/**" + ] + } + } +} diff --git a/packages/react/testing-library/turbo.json b/packages/react/testing-library/turbo.json index 9778f4dd2e..dabc8fa825 100644 --- a/packages/react/testing-library/turbo.json +++ b/packages/react/testing-library/turbo.json @@ -4,6 +4,7 @@ "tasks": { "build": { "dependsOn": [ + "//#build", "@lynx-js/react-transform#build:wasm", "@lynx-js/testing-environment#build", "@lynx-js/rspeedy#build" diff --git a/packages/rspeedy/plugin-config/turbo.json b/packages/rspeedy/plugin-config/turbo.json index adff645502..9aaf3882cc 100644 --- a/packages/rspeedy/plugin-config/turbo.json +++ b/packages/rspeedy/plugin-config/turbo.json @@ -6,6 +6,7 @@ "tasks": { "build": { "dependsOn": [ + "//#build", "^build" ], "inputs": [