mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-19 20:41:54 +03:00
fix: php: handle deps without composer.json
Without composer.json in the root of a package, composer will ignore the dependency, this is issue if for example npm dependencies are managed via composer. (yiisoft/yii2 2.0.46)
This commit is contained in:
parent
156d7e0f50
commit
44a77955c1
@ -176,6 +176,12 @@
|
||||
echo {\"name\":\"${name}\"} > composer.json
|
||||
fi
|
||||
|
||||
# create composer.json if does not exist
|
||||
if [ ! -f composer.json ]
|
||||
then
|
||||
echo {\"name\":\"${name}\"} > composer.json
|
||||
fi
|
||||
|
||||
# remove composer.lock if exists
|
||||
rm -f composer.lock
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user