instituteweb/composer-scripts

Fixes slashe issues on Windows when executing composer scripts (like 'bin/example').

1.1.0 2017-02-21 15:09 UTC

This package is auto-updated.

Last update: 2024-10-14 18:55:40 UTC


README

On Windows you get errors when you try to execute this in script section:

"bin/example"

Because Windows expects backslashes instead of slashes. When using ImprovedScriptExecution the paths are adjusted if host system is Windows.

Usage Example:

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