Skip to content

type create --format page silently skips page file generation #142

@angeloashmore

Description

@angeloashmore

When prismic type create --format page is run and the target page file already exists (e.g. app/page.tsx from create-next-app scaffolding), the CLI silently skips generating the page file. There's no output indicating that a file was skipped or that the feature exists at all.

In an agent test session, the agent didn't know type create --format page generates page files. It manually wrote app/page.tsx from scratch. Even if the file would have been skipped due to the existing default, the agent should have been aware of the feature so it could have deleted the default file first or known what the generated file would contain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions