Skip to content

Add Bun support - #2181

Draft
Andarist wants to merge 5 commits into
mainfrom
bun-tool
Draft

Andarist wants to merge 5 commits into
mainfrom
bun-tool

Conversation

@Andarist

Copy link
Copy Markdown
Member

No description provided.

@changeset-bot

changeset-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d0f9d83

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@changesets/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security

socket-security Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedbun@​1.3.14911007990100

View full report

root.path,
isWindows ? `${command}.cmd` : command,
);
const shim = isWindows

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

idea: we could depend on nushell for the end to end tests instead of relying on whatever shell is installed on the system

i've been using nushell as my login shell for the last 6 years and can highly recommend it for cross-platform use

Comment on lines +148 to +166
if (!interactive) {
const detectWebAuth = () => {
if (
observedStdout.includes(webAuthPrompt) ||
observedStderr.includes(webAuthPrompt)
) {
webAuthDetected = true;
publishProcess.kill();
}
};
publishProcess.process?.stdout?.on("data", (chunk: Buffer | string) => {
observedStdout += chunk.toString();
detectWebAuth();
});
publishProcess.process?.stderr?.on("data", (chunk: Buffer | string) => {
observedStderr += chunk.toString();
detectWebAuth();
});
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what is happening here? is this to handle a 2fa flow that they do not do well?

code: statusCode ? `E${statusCode}` : undefined,
message: output.trim() || undefined,
};
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

any chance to add these to the publish snapshot repo? it would make it easier to understand the parsing

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