Skip to content

Commit

Permalink
[shopsys] fixed project-base on packagist (#2872)
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmannmartin committed Oct 13, 2023
1 parent d83c7ee commit dde3307
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/check-composer-json.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

if [ -h "composer.json" ]; then
echo 'Please run composer install in the app/ subfolder.'
exit 1
fi
6 changes: 6 additions & 0 deletions app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@
"guzzlehttp/psr7": "<=1.8.3, >=2.0.0, <=2.1.0"
},
"scripts": {
"pre-install-cmd": [
"./check-composer-json.sh"
],
"pre-update-cmd": [
"./check-composer-json.sh"
],
"post-install-cmd": [
"App\\Environment::checkEnvironment",
"@auto-scripts"
Expand Down
1 change: 1 addition & 0 deletions check-composer-json.sh
1 change: 1 addition & 0 deletions composer.json

0 comments on commit dde3307

Please sign in to comment.