Skip to content

refactor(linter/plugins): remove oxlint/plugins export#18829

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds
Feb 4, 2026
Merged

refactor(linter/plugins): remove oxlint/plugins export#18829
graphite-app[bot] merged 1 commit intomainfrom
om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 2, 2026

Continuation of #18824, #18828, #18903.

Remove the oxlint/plugins export and the plugins.ts entry point. These are now only used in tests, where the files can be loaded from dist-pkg-plugins instead.

We don't want to encourage people to use oxlint/plugins in their plugins - they should be using @oxlint/plugins package instead to avoid their plugin having a dependency on oxlint.

Due to less shared dependencies between files, this results in 5 less files in dist directory in release build.

This also allows re-enabling the debug assertions in this code in tests.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Feb 2, 2026
Copy link
Member Author

overlookmotel commented Feb 2, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the oxlint/plugins export from the main oxlint package to encourage users to use the @oxlint/plugins package instead, avoiding unnecessary dependencies. The export is conditionally retained in debug builds for tests and conformance testing.

Changes:

  • Removed ./plugins export from both npm/oxlint/package.json and apps/oxlint/package.json
  • Made plugins.ts entry point conditional in build config, only included when DEBUG=true

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
npm/oxlint/package.json Removed ./plugins export entry to prevent users from importing from oxlint/plugins
apps/oxlint/package.json Removed ./plugins export entry from development package
apps/oxlint/tsdown.config.ts Added conditional inclusion of plugins.ts entry point based on DEBUG flag

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_deprecated_exports_from_index_entry_point branch from 750b313 to 0574159 Compare February 2, 2026 01:39
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from 8d0bbb6 to 3d65f2d Compare February 2, 2026 01:39
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_deprecated_exports_from_index_entry_point branch from 0574159 to 5504055 Compare February 2, 2026 02:15
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from 3d65f2d to 0561fa6 Compare February 2, 2026 02:15
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_deprecated_exports_from_index_entry_point branch from 5504055 to 74ad0f7 Compare February 2, 2026 02:18
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from 0561fa6 to d433098 Compare February 2, 2026 02:18
@overlookmotel overlookmotel added the A-linter-plugins Area - Linter JS plugins label Feb 2, 2026
@overlookmotel overlookmotel changed the base branch from om/02-02-refactor_linter_plugins_remove_deprecated_exports_from_index_entry_point to graphite-base/18829 February 3, 2026 10:38
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from d433098 to d62f718 Compare February 3, 2026 10:38
@overlookmotel overlookmotel changed the base branch from graphite-base/18829 to om/02-02-feat_linter_plugins_add_oxlint_plugins_npm_package February 3, 2026 10:38
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from d62f718 to b5aa5e4 Compare February 3, 2026 14:09
@overlookmotel overlookmotel force-pushed the om/02-02-feat_linter_plugins_add_oxlint_plugins_npm_package branch from 57d8045 to 9938dc4 Compare February 3, 2026 14:09
@overlookmotel overlookmotel marked this pull request as draft February 3, 2026 14:53
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from b5aa5e4 to 40dbebc Compare February 3, 2026 15:01
@graphite-app graphite-app bot changed the base branch from om/02-02-feat_linter_plugins_add_oxlint_plugins_npm_package to graphite-base/18829 February 3, 2026 15:46
@graphite-app graphite-app bot force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from 40dbebc to c9ce0d1 Compare February 3, 2026 15:55
@graphite-app graphite-app bot changed the base branch from graphite-base/18829 to main February 3, 2026 15:55
@graphite-app graphite-app bot force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from c9ce0d1 to c05bf3e Compare February 3, 2026 15:55
@overlookmotel overlookmotel changed the base branch from main to graphite-base/18829 February 3, 2026 17:44
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from c05bf3e to 51f9705 Compare February 3, 2026 17:44
@overlookmotel overlookmotel changed the base branch from graphite-base/18829 to om/02-03-build_oxlint_generate_npm_oxlint-plugins_in_release_ci_workflow February 3, 2026 17:44
@overlookmotel overlookmotel changed the title refactor(linter/plugins): remove oxlint/plugins export except in debug builds refactor(linter/plugins): remove oxlint/plugins export Feb 3, 2026
@overlookmotel overlookmotel marked this pull request as ready for review February 3, 2026 17:55
@overlookmotel overlookmotel requested a review from camc314 February 3, 2026 20:26
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Feb 4, 2026
Copy link
Contributor

camc314 commented Feb 4, 2026

Merge activity

  • Feb 4, 9:58 AM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 4, 12:42 PM UTC: camc314 added this pull request to the Graphite merge queue.
  • Feb 4, 12:52 PM UTC: The Graphite merge queue couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'Test Linux').
  • Feb 4, 1:12 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 4, 1:16 PM UTC: overlookmotel added this pull request to the Graphite merge queue.
  • Feb 4, 1:16 PM UTC: Merged by the Graphite merge queue.

@graphite-app graphite-app bot changed the base branch from om/02-03-build_oxlint_generate_npm_oxlint-plugins_in_release_ci_workflow to graphite-base/18829 February 4, 2026 10:34
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from 51f9705 to e6a714c Compare February 4, 2026 12:29
@overlookmotel overlookmotel changed the base branch from graphite-base/18829 to om/02-03-build_oxlint_generate_npm_oxlint-plugins_in_release_ci_workflow February 4, 2026 12:29
@overlookmotel overlookmotel force-pushed the om/02-03-build_oxlint_generate_npm_oxlint-plugins_in_release_ci_workflow branch from 2e128b1 to b25bd74 Compare February 4, 2026 12:32
@overlookmotel overlookmotel force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from e6a714c to 15f9d50 Compare February 4, 2026 12:32
@graphite-app graphite-app bot changed the base branch from om/02-03-build_oxlint_generate_npm_oxlint-plugins_in_release_ci_workflow to graphite-base/18829 February 4, 2026 12:38
@graphite-app graphite-app bot changed the base branch from graphite-base/18829 to main February 4, 2026 12:47
Continuation of #18824, #18828, #18903.

Remove the `oxlint/plugins` export and the `plugins.ts` entry point. These are now only used in tests, where the files can be loaded from `dist-pkg-plugins` instead.

We don't want to encourage people to use `oxlint/plugins` in their plugins - they should be using `@oxlint/plugins` package instead to avoid their plugin having a dependency on `oxlint`.

Due to less shared dependencies between files, this results in 5 less files in `dist` directory in release build.

This also allows re-enabling the debug assertions in this code in tests.
@graphite-app graphite-app bot force-pushed the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch from 15f9d50 to 9cce17e Compare February 4, 2026 12:48
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Feb 4, 2026
@overlookmotel overlookmotel added 0-merge Merge with Graphite Merge Queue labels Feb 4, 2026
@graphite-app graphite-app bot merged commit 9cce17e into main Feb 4, 2026
34 of 35 checks passed
@graphite-app graphite-app bot deleted the om/02-02-refactor_linter_plugins_remove_oxlint_plugins_export_except_in_debug_builds branch February 4, 2026 13:16
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments