Skip to content

Commit

Permalink
chore(deps): hoist sanity workspace package
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Feb 20, 2024
1 parent 0693a24 commit b57830c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
; Note: this is needed to avoid build error when building CommonJS (CJS) bundles.
; When bundling `sanity/presentation` for CJS, the `sanity` package is bundled with it,
; and since @sanity/presentation is an external module, this causes the bundler to look for `sanity` package when bundling,
; which again requires sanity to be a dependency of itself.
; Having `sanity` as a dependency of `sanity` works fine with pnpm, but turborepo will fail hard if it
; encounters a package that depends on itself.
; Once we drop CJS support, we'll likely be able to remove the following line.

public-hoist-pattern[]=sanity

0 comments on commit b57830c

Please sign in to comment.