instituteweb/composer-scripts

修复在Windows上执行composer脚本(如'bin/example')时遇到的斜杠问题。

1.1.0 2017-02-21 15:09 UTC

This package is auto-updated.

Last update: 2024-09-14 18:42:20 UTC


README

在Windows上,当你尝试在脚本部分执行此操作时会收到错误

"bin/example"

因为Windows期望反斜杠而不是斜杠。当使用ImprovedScriptExecution时,如果主机系统是Windows,则会调整路径。

使用示例

 "scripts": {
     "post-autoload-dump": [
         "\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
         "bin/example --help"
     ]
 }