-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): hoist sanity workspace package
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |