Skip to content

changesets-pre 2.0.0

Install from the command line:
Learn more about npm packages
$ npm install @fond-of/changesets-pre@2.0.0
Install via package.json:
"@fond-of/changesets-pre": "2.0.0"

About this version

@fond-of/changesets-pre

View changelog

Enter and exit pre mode in a Changesets repo.

Usage

import { enterPre, exitPre } from "@fond-of/changesets-pre";

await enterPre(cwd, tag);

let preState = await readPreState(cwd);

// version packages with @fond-of/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 @fond-of/changesets-assemble-release-plan, implementing Changesets or want to enter or exit pre mode programmatically.

Types

import { PreState } from "@fond-of/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>;

Details


Assets

  • changesets-pre-2.0.0.tgz

Download activity

  • Total downloads 16
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all