From c895f03853fe04af5e8f70cdec941760711ae3c7 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Sun, 29 Mar 2026 16:16:07 +0900 Subject: [PATCH 1/2] chore(oxc-unshadowed-visitor): setup release flow --- .github/pr-labeler.yml | 4 ++++ README.md | 4 +++- packages/oxc-unshadowed-visitor/CHANGELOG.md | 0 scripts/release.ts | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 packages/oxc-unshadowed-visitor/CHANGELOG.md diff --git a/.github/pr-labeler.yml b/.github/pr-labeler.yml index 149f125..cb9233a 100644 --- a/.github/pr-labeler.yml +++ b/.github/pr-labeler.yml @@ -9,3 +9,7 @@ 'plugin: jsx-remove-attributes': - changed-files: - any-glob-to-any-file: 'packages/jsx-remove-attributes/**' + +'package: oxc-unshadowed-visitor': + - changed-files: + - any-glob-to-any-file: 'packages/oxc-unshadowed-visitor/**' diff --git a/README.md b/README.md index 9a39e59..5267fb8 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Official Rolldown plugins ### Other Packages -- [`oxc-unshadowed-visitor`](https://github.com/rolldown/plugins/tree/main/packages/oxc-unshadowed-visitor): scope-aware AST visitor that tracks references to specified names, filtering out those shadowed by local bindings +- [`oxc-unshadowed-visitor`](https://github.com/rolldown/plugins/tree/main/packages/oxc-unshadowed-visitor) ([![NPM version][badge-npm-version-oxc-unshadowed-visitor]][url-npm-oxc-unshadowed-visitor]): scope-aware AST visitor that tracks references to specified names, filtering out those shadowed by local bindings ## License @@ -36,6 +36,8 @@ Official Rolldown plugins [badge-npm-version-babel]: https://img.shields.io/npm/v/@rolldown/plugin-babel/latest?color=brightgreen [badge-npm-version-emotion]: https://img.shields.io/npm/v/@rolldown/plugin-emotion/latest?color=brightgreen [badge-npm-version-jsx-remove-attributes]: https://img.shields.io/npm/v/@rolldown/plugin-jsx-remove-attributes/latest?color=brightgreen +[badge-npm-version-oxc-unshadowed-visitor]: https://img.shields.io/npm/v/oxc-unshadowed-visitor/latest?color=brightgreen [url-npm-babel]: https://npmx.dev/package/@rolldown/plugin-babel/v/latest [url-npm-emotion]: https://npmx.dev/package/@rolldown/plugin-emotion/v/latest [url-npm-jsx-remove-attributes]: https://npmx.dev/package/@rolldown/plugin-jsx-remove-attributes/v/latest +[url-npm-oxc-unshadowed-visitor]: https://npmx.dev/package/oxc-unshadowed-visitor/v/latest diff --git a/packages/oxc-unshadowed-visitor/CHANGELOG.md b/packages/oxc-unshadowed-visitor/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/scripts/release.ts b/scripts/release.ts index 1ac8b67..03cefdf 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -7,7 +7,7 @@ process.chdir(path.join(import.meta.dirname, '..')) await release({ repo: 'rolldown/plugins', - packages: ['plugin-babel', 'plugin-emotion', 'plugin-jsx-remove-attributes'], + packages: ['plugin-babel', 'plugin-emotion', 'plugin-jsx-remove-attributes', 'oxc-unshadowed-visitor'], toTag: (pkg, version) => `${pkg}@${version}`, logChangelog: (pkg) => logRecentCommits(pkg, getPkgDir(pkg)), getPkgDir, From 8f953971aeb8645e910c7f3f7ed6055133146e12 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Sun, 29 Mar 2026 16:18:15 +0900 Subject: [PATCH 2/2] chore: format --- scripts/release.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/release.ts b/scripts/release.ts index 03cefdf..741ccbe 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -7,7 +7,12 @@ process.chdir(path.join(import.meta.dirname, '..')) await release({ repo: 'rolldown/plugins', - packages: ['plugin-babel', 'plugin-emotion', 'plugin-jsx-remove-attributes', 'oxc-unshadowed-visitor'], + packages: [ + 'plugin-babel', + 'plugin-emotion', + 'plugin-jsx-remove-attributes', + 'oxc-unshadowed-visitor', + ], toTag: (pkg, version) => `${pkg}@${version}`, logChangelog: (pkg) => logRecentCommits(pkg, getPkgDir(pkg)), getPkgDir,