refactor(linter/plugins): remove oxlint/plugins export#18829
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
There was a problem hiding this comment.
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
./pluginsexport from bothnpm/oxlint/package.jsonandapps/oxlint/package.json - Made
plugins.tsentry point conditional in build config, only included whenDEBUG=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.
750b313 to
0574159
Compare
8d0bbb6 to
3d65f2d
Compare
0574159 to
5504055
Compare
3d65f2d to
0561fa6
Compare
5504055 to
74ad0f7
Compare
0561fa6 to
d433098
Compare
74ad0f7 to
57d8045
Compare
d433098 to
d62f718
Compare
d62f718 to
b5aa5e4
Compare
57d8045 to
9938dc4
Compare
b5aa5e4 to
40dbebc
Compare
40dbebc to
c9ce0d1
Compare
c9ce0d1 to
c05bf3e
Compare
c05bf3e to
51f9705
Compare
oxlint/plugins export except in debug buildsoxlint/plugins export
Merge activity
|
51f9705 to
e6a714c
Compare
d4a54e0 to
2e128b1
Compare
2e128b1 to
b25bd74
Compare
e6a714c to
15f9d50
Compare
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.
15f9d50 to
9cce17e
Compare

Continuation of #18824, #18828, #18903.
Remove the
oxlint/pluginsexport and theplugins.tsentry point. These are now only used in tests, where the files can be loaded fromdist-pkg-pluginsinstead.We don't want to encourage people to use
oxlint/pluginsin their plugins - they should be using@oxlint/pluginspackage instead to avoid their plugin having a dependency onoxlint.Due to less shared dependencies between files, this results in 5 less files in
distdirectory in release build.This also allows re-enabling the debug assertions in this code in tests.