Nimble Porridge Muncher

    @changesets/pre
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.13 • Public • Published

    @changesets/pre

    View changelog

    Enter and exit pre mode in a Changesets repo.

    Usage

    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

    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>;

    Keywords

    none

    Install

    npm i @changesets/pre

    DownloadsWeekly Downloads

    217,829

    Version

    1.0.13

    License

    MIT

    Unpacked Size

    23.6 kB

    Total Files

    11

    Last publish

    Collaborators

    • emmatown
    • noviny
    • changesets-release-bot