, noDev ? false
, unpackPhase ? "true"
, buildPhase ? "true"
+ , doRemoveVendor ? true
, ...}@args:
let
export HOME=$TMPDIR
+ ${if doRemoveVendor then ''
# Remove the provided vendor folder if it exists
rm -Rf vendor
-
+ '' else ""}
# If there is no composer.lock file, compose a dummy file.
# Otherwise, composer attempts to download the package.json file from
# the registry which we do not want.