diff --git a/.changeset/changelog.cjs b/.changeset/changelog.cjs new file mode 100644 index 0000000..875d87c --- /dev/null +++ b/.changeset/changelog.cjs @@ -0,0 +1,22 @@ +const github = require("@changesets/changelog-github").default; + +// GitHub renders bare scoped package names as @mentions unless they are code. +const SCOPED = + /(?=+*-]*[\w*])?|(? (i % 2 ? part : part.replace(SCOPED, (name) => `\`${name}\``))) + .join(""); +} + +module.exports = { + async getReleaseLine(...args) { + return codeScopes(await github.getReleaseLine(...args)); + }, + async getDependencyReleaseLine(...args) { + return codeScopes(await github.getDependencyReleaseLine(...args)); + }, +}; diff --git a/.changeset/config.json b/.changeset/config.json index 48a14ed..fb3ad5d 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,6 +1,6 @@ { "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json", - "changelog": ["@changesets/changelog-github", { "repo": "withvariablelab/theme-toggle" }], + "changelog": ["./changelog.cjs", { "repo": "withvariablelab/theme-toggle" }], "commit": true, "fixed": [], "linked": [],