Skip to content

chore: make package template a proper Yarn workspace - #10087

Draft
Mrtenz wants to merge 1 commit into
mainfrom
mrtenz/template-workspace
Draft

chore: make package template a proper Yarn workspace#10087
Mrtenz wants to merge 1 commit into
mainfrom
mrtenz/template-workspace

Conversation

@Mrtenz

@Mrtenz Mrtenz commented Sep 3, 2026

Copy link
Copy Markdown
Member

Explanation

The scripts/create-package/package-template directory was not previously listed as a Yarn workspace, which meant Yarn constraints were not checked against it. This made it easy for the template to drift out of alignment with the monorepo's other packages over time.

This PR adds the template to the workspaces list and gives it a real package name (@metamask/package-template) so that constraints can run against it. Fields that vary per package (description, directory name) remain as placeholders. Constraints are relaxed in two places where the template legitimately differs from real packages: the homepage uses a placeholder directory name, and the code owner check is skipped.

References

N/A

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Adds `scripts/create-package/package-template` to the monorepo's
workspaces list so that Yarn constraints are enforced against it,
making it easier to keep the template aligned with other packages.

The template's package name is set to `@metamask/package-template`
(a real resolvable name), with placeholders only for fields that
vary per package. Constraints are relaxed where needed: the homepage
uses a placeholder directory name, and the codeowner check is skipped
for the template.
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

Successfully merging this pull request may close these issues.

1 participant