Skip to main content
Glama
README.md1.06 kB
# @changesets/pre [![npm package](https://img.shields.io/npm/v/@changesets/pre)](https://npmjs.com/package/@changesets/pre) [![View changelog](https://img.shields.io/badge/Explore%20Changelog-brightgreen)](./CHANGELOG.md) Enter and exit pre mode in a Changesets repo. ## Usage ```ts 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. ## Types ```ts import { 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 Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ajaystream/hubspot-mcp-custom'

If you have feedback or need assistance with the MCP directory API, please join our Discord server