Skip to content

Repository is presenting Gatsby issues with Yarn 1 + pnp, Yarn 2, pnpm with "complex" structure of workspace for site and themes (using shadowing)

Notifications You must be signed in to change notification settings

TheGuit/gatsby-example-pm-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing package managers with Gatsby monorepo using workspace themes

Using workspaces to manage themes in Gatsby and have some inheritance between them. This simple Gatsby project contains 1 worktree made of 3 workspaces :

  • site (site information)
  • themes/gatsby-theme-parent
  • themes/gatsby-theme-child

For gatsby-friendly users, we're "shadowing" (override here) the page index.js from gatsby-theme-parent into gatsby-theme-child. We also use a graphql query fragment exported in gatsby-theme-parent in our child theme.

Dependencies space disk usage

  • yarn1-without-pnp => folder node_modules 458M
  • yarn1-with-pnp => folder .pnp 71M
  • yarn2-with-pnp => folder .yarn 204M
  • pnpm => folder node_modules 415M + folder .pnpm-store 23M

About

Repository is presenting Gatsby issues with Yarn 1 + pnp, Yarn 2, pnpm with "complex" structure of workspace for site and themes (using shadowing)

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published