Skip to content

v2.84.0: @sanity/pkg-utils support

Choose a tag to compare

@BartWaardenburg BartWaardenburg released this 28 May 11:42
· 408 commits to main since this release
v2.84.0
1fe7ae6

@sanity/pkg-utils support

Projects built with @sanity/pkg-utils no longer need to hand-list their build configs in entry.

A new pkg-utils plugin keeps package.config.{ts,js,mts,mjs,cts,cjs} and package.bundle.{ts,js,mts,mjs,cts,cjs} reachable automatically, at the repo root and in every workspace package. The tool discovers these files by filename rather than importing them from source, so they previously surfaced as unused-file and had to be listed manually.

The plugin activates only on an exact @sanity/pkg-utils dependency, so a plain @sanity/client consumer with a stray package.config.ts keeps reporting it. It also credits @sanity/pkg-utils as a tooling dependency. The credit is scoped to the two build-config filenames, so an unreferenced ordinary source file still reports.

pkg-utils monorepos can drop the package.config.ts / package.bundle.ts lines from their entry config entirely.

Full Changelog: v2.83.0...v2.84.0