@stattic/common
v0.0.10
Published
Shared TypeScript contracts and utilities for Stattic packages.
Readme
@stattic/common
Shared TypeScript contracts and utilities used by Stattic first-party packages.
Most users should install the CLI or framework integrations instead:
curl -fsSL https://stattic.net/install.sh | bashUse this package directly only when you are building against Stattic contracts or need the same validation helpers used by the CLI and dashboard.
Install
npm install @stattic/commonExports
import { spacePatchSchema } from "@stattic/common/contracts/spaces";
import { detectSpaFromPaths } from "@stattic/common/utils/publish-detection";The public exports are grouped by concern:
@stattic/common/contracts/*for shared API and CLI schemas.@stattic/common/utils/*for small helpers used across Stattic packages.@stattic/common/docs/*for agent-facing setup text used by Stattic surfaces.
This package is public so the Stattic CLI and plugins can install cleanly from npm. It is still an implementation package: prefer documented CLI and API surfaces unless you need these exact contracts.
