Nonsense Parser Microframework

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

    0.1.8 • Public • Published

    @changesets/write

    Writes a changeset to a file.

    import write from "@changesets/write";
    
    const changeset = {
      summary: "A description of a minor change",
      releases: [
        { name: "@changesets/something", type: "minor" },
        { name: "@changesets/something-else", type: "patch" }
      ]
    };
    
    const uniqueId = await write(changeset, cwd);
    console.log(uniqueId); // orange-foxes-waggle

    For example, it can convert:

    {
      "summary": "A description of a minor change",
      "releases": [
        { "name": "@changesets/something", "type": "minor" },
        { "name": "@changesets/something-else", "type": "patch" }
      ]
    }

    to

    ---
    "@changesets/something": minor
    "@changesets/something-else": patch
    ---
    
    A description of a minor change

    This package will take care of generating a unique id for the changeset.

    Keywords

    none

    Install

    npm i @changesets/write

    DownloadsWeekly Downloads

    122,739

    Version

    0.1.8

    License

    MIT

    Unpacked Size

    15 kB

    Total Files

    11

    Last publish

    Collaborators

    • noviny
    • mitchellhamilton
    • changesets-release-bot