A plugin for GraphQL Code Generator that adds custom content to generated output files. It is part of the GraphQL Code Generator ecosystem (v0.18.x, now legacy; replaced by v2+ with `@graphql-codegen/add`). This plugin appends or prepends arbitrary code snippets to generated files, useful for adding imports, utilities, or type extensions. It is often used in conjunction with other plugins to enhance generated TypeScript typings for client and server sides. The package is in maintenance mode; users should migrate to the v2 package (`@graphql-codegen/add`).
npm install graphql-codegen-addNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example graphql-codegen.yml configuration showing how to use the add plugin to prepend a comment to generated TypeScript typings.
Replace in package.json: 'graphql-codegen-add' with '@graphql-codegen/add' and update imports/config accordingly.
Ensure content is a string in graphql-codegen.yml.
Run: npm install graphql-codegen-add
Ensure you are using graphql-codegen v0.18.x, or migrate to @graphql-codegen/add for v2+.
No dependency data recorded yet.