Skip to content

Refactor composer scripts to remove explicit vendor path - #62

Open
fadrian06 wants to merge 1 commit into
leafsphp:v5.xfrom
fadrian06:simplify-scripts
Open

fadrian06 wants to merge 1 commit into
leafsphp:v5.xfrom
fadrian06:simplify-scripts

Conversation

@fadrian06

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce? (pls check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe below

Description

This pull request updates the composer.json file to simplify how project scripts are executed. The change removes the explicit @php vendor/bin/ path from all script commands, replacing it with just the command name. This makes the scripts easier to run and more portable, assuming the alchemy executable is available in the system path.

  • Script command simplification:
    • Updated all script commands in composer.json to use the alchemy command directly instead of prefixing with @php vendor/bin/.

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Remove the redundant "@php vendor/bin/" prefix from script definitions.
Composer automatically includes the vendor binary directory in the
PATH, making the explicit path unnecessary and the config cleaner.
Copilot AI lite review requested due to automatic review settings September 11, 2026 02:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

馃煝 Approval recommended

No unresolved issues were identified, and existing commands are preserved.

Pull request overview

Refactors composer.json scripts to invoke alchemy directly instead of using explicit @php vendor/bin/ paths.

Changes:

  • Simplifies Alchemy script commands.
  • Preserves existing script names and targets.
File summaries
File Summary
composer.json Simplifies Composer script command definitions.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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