Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changesets Configuration for Monorepo with Single Package Versioning #169

Closed
josephfusco opened this issue Jun 6, 2024 · 1 comment
Closed
Assignees

Comments

@josephfusco
Copy link
Member

josephfusco commented Jun 6, 2024

Context

The repository is structured as a monorepo with multiple packages under the plugins directory.
The root package.json includes a workspaces field to leverage monorepo benefits for development.

Issue

  • The goal is to use Changesets to manage versioning and releases only for the root package (package.json) and not for the individual workspace packages.
  • Configuring Changesets to ignore all workspace packages results in failures because Changesets requires at least one package to manage.
  • Explicitly ignoring every package or using glob patterns to ignore them all causes the process to fail.

Attempted Workarounds

  • A dummy package (dummy-package) was created to satisfy Changesets' requirement for at least one package.
  • The dummy package has a package.json with a clear description of its purpose.
  • The dummy package was picked up however I want to only bump the version of the root package.
@josephfusco josephfusco self-assigned this Jun 6, 2024
@josephfusco josephfusco changed the title Changeset without workspaces but with workspaces Changesets Configuration for Monorepo with Single Package Versioning Jun 6, 2024
@josephfusco
Copy link
Member Author

Closing this as handling plugins via webpack is working well here #172.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant