Skip to content

feat: add support for Node.js built-in commands#10

Closed
insign wants to merge 1 commit intomainfrom
add-builtin-command-support-16642547342770374483
Closed

feat: add support for Node.js built-in commands#10
insign wants to merge 1 commit intomainfrom
add-builtin-command-support-16642547342770374483

Conversation

@insign
Copy link
Copy Markdown
Contributor

@insign insign commented Feb 13, 2026

This PR adds support for executing built-in commands (like install, test, start) for Node.js runners (npm, yarn, pnpm, bun) even when they are not explicitly defined in package.json scripts.

Previously, run install would fail if install was not in scripts, as it would try to execute npm run install. Now, it correctly detects install as a built-in command and executes npm install.

If a script with the same name exists (e.g., "test": "echo custom test"), it takes priority and is executed via npm run test.

This improves the user experience by making run work seamlessly with standard package manager commands without requiring explicit script definitions.


PR created automatically by Jules for task 16642547342770374483 started by @insign

- Added `CommandSupport::BuiltIn` to distinguish between scripts and built-in commands.
- Updated `NodeValidator` to recognize common npm/yarn/pnpm/bun built-in commands (install, test, start, etc.) even if not present in `scripts`.
- Updated `select_runner` to accept runners with built-in command support.
- Updated `build_command` to execute built-in commands directly (e.g., `npm install`) instead of via `run` (e.g., `npm run install`), while preserving `run` behavior for scripts and unknown commands.
- Added tests to verify built-in command execution and script priority.
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@insign insign closed this Feb 16, 2026
@insign insign deleted the add-builtin-command-support-16642547342770374483 branch February 16, 2026 23:14
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.

1 participant