Skip to content

[BUG] Add plugin doesn't add content to generated schema file #427

Description

@LongLiveCHIEF

Describe the bug
Using the add option to modify the schema.generated.graphqls file fails to add the desired content
to the file.

To Reproduce

// codegen.ts
{
  generates: {
    'src/schema': defineConfig({
      add: {
        './schema.generated.graphql': { content: '/* eslint-disable */' },
      },
    })
  }
}

Expected behavior
Expected /* eslint-disable */ to be inserted at top of generated file

Screenshots
If applicable, add screenshots to help explain your problem.

Versions

  • OS: MacOS M4
  • OS Version: Tahoe 26.2
  • @eddeee888/gcg-typescript-resolver-files

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions