sanity-pkg-utils

Installation
SKILL.md

@sanity/pkg-utils

Use pkg for conventional Sanity library packages whose authored package.json#exports describe what to build. @sanity/pkg-utils composes tsdown with @sanity/tsdown-config, adds browserslist-derived targets and Sanity package conventions, and reconciles generated exports.

For direct tsdown.config.ts builds, install and use the sanity-tsdown-config skill instead. Use the separate tsdown skill for generic tsdown options.

Install and run

@sanity/pkg-utils 13.x requires Node.js ^22.18.0 || ^24.11.0 || >=26.0.0.

pnpm add -D @sanity/pkg-utils

Prefer the short pkg binary in scripts; pkg-utils is an alias:

Installs
7
GitHub Stars
28
First Seen
2 days ago
sanity-pkg-utils — sanity-io/pkg-utils