Skip to content

Conversation

@interim17
Copy link
Contributor

Problem

Housekeeping. Moving things into this structure:

/gatsby
   constants.js
   /schema
      .gql files
  /utils
     .resolvers etc.

I tried moving gastby-node and gatsby-config in there and exporting those files from the root but it seemed annoying.
Gatsby expects those at the project root so I just left them there for now,

@interim17 interim17 marked this pull request as ready for review January 23, 2026 23:14
@interim17 interim17 requested a review from Copilot January 23, 2026 23:15
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR reorganizes the Gatsby-related file structure by consolidating files into a clearer directory hierarchy under /gatsby, with subdirectories for /utils, /schema, and a constants.js file. The primary purpose is housekeeping to improve code organization and maintainability.

Changes:

  • Moved constants from gatsbyutils/constants to gatsby/constants
  • Moved resolver utilities from gatsbyutils/ to gatsby/utils/
  • Updated import paths throughout the codebase to reflect the new structure

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
gatsby/utils/test/gatsby-resolver-utils.test.js Updated import path for constants to match new directory structure
gatsby/utils/gatsby-resolver-utils.js Updated require path for constants to match new directory structure
gatsby-node.js Updated require paths for resolver utils and constants to match new directory structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants