package
Utils to make a Changesets repo enter and exit pre mode
npm install @changesets/preGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Enter and exit pre mode in a Changesets repo.
import { enterPre, exitPre } from "@changesets/pre";
await enterPre(cwd, tag);
let preState = await readPreState(cwd);
// version packages with @changesets/cli or get a release plan and apply it
await exitPre(cwd);This package is used by internally by Changesets to enter and exit pre mode along with reading the pre state for the publish and version commands, you should only need it if you're using @changesets/assemble-release-plan, implementing Changesets or want to enter or exit pre mode programmatically.
import type { PreState } from "@changesets/types";
export function enterPre(cwd: string, tag: string): Promise<void>;
export function exitPre(cwd: string): Promise<void>;
export function readPreState(cwd: string): Promise<PreState>;Latest published Aug 11, 2026
latest
next
andarist
mateuszburzynski@gmail.com
Estimated unpacked size across 9 packages.
899.1 kB
Includes dependencies.
3 direct dependencies.