Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ dist-ssr
.out
.output
packages/docs/.vitepress/cache/
packages/operations/src/codegen/
3 changes: 2 additions & 1 deletion packages/operations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"description": "",
"main": "./src/index.ts",
"scripts": {
"build": "graphql-codegen"
"build": "graphql-codegen",
"postinstall": "pnpm build"
Copy link

Copilot AI Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using postinstall to run codegen can cause issues in CI/CD environments and when consumers install this package. Consider using a prepare script instead, which runs on pnpm install for local development but not when the package is installed as a dependency. Alternatively, add explicit documentation that developers must run pnpm build manually after cloning, and ensure CI/CD pipelines include this step.

Suggested change
"postinstall": "pnpm build"
"prepare": "pnpm build"

Copilot uses AI. Check for mistakes.
},
"peerDependencies": {
"@apollo/client": "^4.0.0",
Expand Down
58 changes: 0 additions & 58 deletions packages/operations/src/codegen/gql.ts

This file was deleted.

247 changes: 0 additions & 247 deletions packages/operations/src/codegen/graphql.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/operations/src/codegen/index.ts

This file was deleted.

Loading