fix(generators): emit cms barrel in feature template
The feature generator emitted no `src/integrations/cms/index.ts`, but `gen job` and `gen event consume` both `assertAnchors` on that file's `<gen:job-tasks>` anchor — so they failed on any freshly-scaffolded feature. Add a `cms/index.ts.hbs` template carrying the anchor, wire the add action into the generator, and export `./cms` from the package.json template to match all five existing features.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// Payload CMS integration barrel for @repo/{{kebabCase name}}.
|
||||
// Re-export this feature's collections and globals here as you add them
|
||||
// under ./collections and ./globals. See packages/navigation/src/integrations/cms
|
||||
// for the canonical shape. The `<gen:job-tasks>` anchor below is required by
|
||||
// `pnpm turbo gen job` and `pnpm turbo gen event` — do not remove it.
|
||||
export {};
|
||||
// <gen:job-tasks>
|
||||
Reference in New Issue
Block a user