Skip to content

Changeset fails on ignore pattern when there's no matches #1794

@RobertGemmaJr

Description

@RobertGemmaJr

Prisma now generates their own nested subfolders which includes a package.json file. It's created via a prisma generate which we do on postinstall. Since they're automatically they are gitignored.

The issue is that we need the ignore locally but the changeset bot never runs an install so it never matches the ignore glob. Here's my config:

Config

{
  "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
  "changelog": "@changesets/cli/changelog",
  "commit": false,
  "privatePackages": {
    "version": true,
    "tag": true
  },
  "fixed": [],
  "linked": [],
  "access": "restricted",
  "baseBranch": "main",
  "updateInternalDependencies": "patch",
  "ignore": ["prisma-client-*"]
}

Error

Image

Proposed Solution

The path(s) in the ignore config should NOT fail if they do not find a match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions