Skip to content

Publish config schema with @changesets/cli #2244

Description

@Netail

To get some json config linting & hinting you need set a $schema. This schema is published in the @changesets/config package, which is not directly installed by the consumer (making it hard to pinpoint the location, which often changes with pnpm catalogs), so consumers are best off by using https://unpkg.com/@changesets/config@4.0.0/schema.json. However, as the URL references to a version of the @changesets/config package, it also requires bumping once in a while. Which can be easily forgotten. Or mismatch from the version installed

Would it be an option to publish the schema with the cli package, so people can reference the schema using: "$schema": "./node_modules/@changesets/cli/schema.json". That way it's always tied to the version locally installed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions