Skip to content

feat(lint): add ./lint export and use it for oxlint config generation#710

Merged
Brooooooklyn merged 5 commits intomainfrom
docs/cli-exports-management
Mar 6, 2026
Merged

feat(lint): add ./lint export and use it for oxlint config generation#710
Brooooooklyn merged 5 commits intomainfrom
docs/cli-exports-management

Conversation

@Brooooooklyn
Copy link
Copy Markdown
Member

@Brooooooklyn Brooooooklyn commented Mar 6, 2026

docs(cli): rewrite package.json exports management section in BUNDLING.md

Replaces the inaccurate three-layer pipeline description with a correct
two-category breakdown (manual vs automated). The previous version
incorrectly claimed sync-remote-deps.ts managed CLI package.json exports
and referenced ./rolldown/* entries that don't exist in this package.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

feat(lint): add ./lint export and use it for oxlint config generation

  • Add ./lint subpath export to CLI package.json
  • Create src/lint.ts to re-export defineConfig from the lint module
  • Update Rust config generator to import from vite-plus/lint instead
    of oxlint

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com


Note

Medium Risk
Changes package export surface and the CLI’s generated lint config import path, which could break lint config resolution if the new subpath export or build output is misconfigured. Snap-test harness changes also alter module resolution behavior in tests.

Overview
Adds a new public subpath export vite-plus/lint that re-exports oxlint’s defineConfig (and related types), and updates the Rust CLI config generator to emit temp lint configs that import from vite-plus/lint instead of oxlint.

Updates snap-test infrastructure to create a real node_modules in the temp workspace and symlink the vite-plus package itself so vite-plus/* imports resolve during tests, and refreshes global CLI snapshots accordingly.

Rewrites packages/cli/BUNDLING.md to clarify package.json exports as manual vs automated (with ./test/* handled by the sync step) and documents the new ./lint export.

Written by Cursor Bugbot for commit f9329cf. This will update automatically on new commits. Configure here.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 6, 2026

Deploy Preview for viteplus-staging canceled.

Name Link
🔨 Latest commit f9329cf
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-staging/deploys/69aaa0944298ff0008dbe2d1

Copy link
Copy Markdown
Member Author

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

@Brooooooklyn Brooooooklyn requested review from cpojer and fengmk2 March 6, 2026 08:01
@Brooooooklyn Brooooooklyn force-pushed the docs/cli-exports-management branch from 6a27245 to 9bc4541 Compare March 6, 2026 08:44
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@Brooooooklyn Brooooooklyn force-pushed the docs/cli-exports-management branch 2 times, most recently from 09f8d92 to 5ee2ee8 Compare March 6, 2026 09:14
Brooooooklyn and others added 5 commits March 6, 2026 09:38
…G.md

Replaces the inaccurate three-layer pipeline description with a correct
two-category breakdown (manual vs automated). The previous version
incorrectly claimed sync-remote-deps.ts managed CLI package.json exports
and referenced ./rolldown/* entries that don't exist in this package.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add `./lint` subpath export to CLI package.json
- Create `src/lint.ts` to re-export `defineConfig` from the lint module
- Update Rust config generator to import from `vite-plus/lint` instead
  of `oxlint`

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The snap test harness symlinks `packages/cli/node_modules` into the temp
directory, but `vite-plus` itself isn't in that directory (it only exists
in the workspace root `node_modules`). Create a real `node_modules` dir
with individual symlinks plus a `vite-plus` entry pointing to the CLI
package, so `vite-plus/*` subpath imports resolve in generated files
like `.vite-plus-lint.tmp.mts`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Brooooooklyn Brooooooklyn force-pushed the docs/cli-exports-management branch from 5ee2ee8 to f9329cf Compare March 6, 2026 09:38
Copy link
Copy Markdown
Member Author

Brooooooklyn commented Mar 6, 2026

Merge activity

  • Mar 6, 9:38 AM UTC: Graphite rebased this pull request as part of a merge.
  • Mar 6, 9:55 AM UTC: @Brooooooklyn merged this pull request with Graphite.

@Brooooooklyn Brooooooklyn merged commit 8c5823f into main Mar 6, 2026
23 checks passed
@Brooooooklyn Brooooooklyn deleted the docs/cli-exports-management branch March 6, 2026 09:55
graphite-app bot pushed a commit that referenced this pull request Mar 31, 2026
Historically, it appears to have been added in #710.

However, since this code no longer exists, there are no practical use cases for it. Furthermore, its use is not recommended for general users.
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.

2 participants