Skip to content

Commit ea6f819

Browse files
feat(deps): upgrade upstream dependencies (#536)
Automated daily upgrade of upstream dependencies: - rolldown (latest tag) - rolldown-vite (latest tag) - vitest (latest npm version) - tsdown (latest npm version) Build status: success <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Primarily a dependency/tooling upgrade, but it changes the CLI’s `oxlint` binary resolution logic and bumps multiple core build/test tools, which could affect linting execution and build/test behavior across platforms. > > **Overview** > **Updates upstream tooling versions** (notably bundled `vite` beta, `rolldown-vite` pin, and various build/lint/test deps including `oxfmt`/`oxlint`/`oxlint-tsgolint`), with corresponding `pnpm-lock.yaml` refresh. > > **Fixes `vite-plus lint` binary resolution** by deriving the `oxlint` executable path from `resolve('oxlint')` (package root) instead of `resolve('oxlint/bin/oxlint')`, accommodating package `exports` restrictions. > > **Refreshes CLI help snapshots** to reflect the updated formatter options (adds `biome` as a migration source). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 8059653. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 61f1397 commit ea6f819

6 files changed

Lines changed: 636 additions & 559 deletions

File tree

packages/cli/snap-tests/command-helper/snap.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Usage: [-c=PATH] [PATH]...
7878
Mode Options:
7979
--init Initialize `.oxfmtrc.json` with default values
8080
--migrate=SOURCE Migrate configuration to `.oxfmtrc.json` from specified source
81-
Available sources: prettier
81+
Available sources: prettier, biome
8282
--lsp Start language server protocol (LSP) server
8383
--stdin-filepath=PATH Specify the file name to use to infer which parser to use
8484

packages/cli/src/resolve-lint.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,14 @@ export async function lint(): Promise<{
3232
binPath: string;
3333
envs: Record<string, string>;
3434
}> {
35-
// Resolve the oxlint binary directly (it's a native executable)
36-
const binPath = resolve('oxlint/bin/oxlint');
35+
// Resolve the oxlint package path first, then navigate to the bin file.
36+
// The bin/oxlint subpath is not exported in package.json exports, so we
37+
// resolve the main entry point and derive the bin path from it.
38+
// resolve('oxlint') returns .../oxlint/dist/index.js, so we need to go up
39+
// two directories (past 'dist') to reach the package root.
40+
const oxlintMainPath = resolve('oxlint');
41+
const oxlintPackageRoot = dirname(dirname(oxlintMainPath));
42+
const binPath = join(oxlintPackageRoot, 'bin', 'oxlint');
3743
let oxlintTsgolintPath = resolve('oxlint-tsgolint/bin/tsgolint');
3844
if (process.platform === 'win32') {
3945
// If on Windows, resolve the tsgolint binary from the local node_modules

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
"node": "^20.19.0 || >=22.12.0"
198198
},
199199
"bundledVersions": {
200-
"vite": "8.0.0-beta.11",
200+
"vite": "8.0.0-beta.12",
201201
"rolldown": "1.0.0-rc.2",
202202
"tsdown": "0.20.1"
203203
}

packages/tools/.upstream-versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"rolldown-vite": {
88
"repo": "https://github.com/vitejs/vite.git",
99
"branch": "main",
10-
"hash": "b68900bf6090b65d35bba3b759a55fa51e99fee5"
10+
"hash": "f124ed846fff2dca679d3b0dd2b27b029ed4ec5c"
1111
}
1212
}

0 commit comments

Comments
 (0)