dependabot-composer 0.170.2 → 0.171.3

Sign up to get free protection for your applications and to get access to all the features.
data/helpers/v2/build CHANGED
@@ -2,14 +2,25 @@
2
2
 
3
3
  set -e
4
4
 
5
- install_dir=$1
6
- if [ -z "$install_dir" ]; then
7
- echo "usage: $0 INSTALL_DIR"
5
+ if [ -z $DEPENDABOT_NATIVE_HELPERS_PATH ]; then
6
+ echo "Unable to build, DEPENDABOT_NATIVE_HELPERS_PATH is not set"
8
7
  exit 1
9
8
  fi
10
9
 
10
+ install_dir="$DEPENDABOT_NATIVE_HELPERS_PATH/composer/v2"
11
+ mkdir -p $install_dir
12
+
11
13
  helpers_dir="$(dirname "${BASH_SOURCE[0]}")"
12
- cd "$helpers_dir"
14
+ cp -r \
15
+ "$helpers_dir/bin" \
16
+ "$helpers_dir/src" \
17
+ "$helpers_dir/.php-cs-fixer.php" \
18
+ "$helpers_dir/composer.json" \
19
+ "$helpers_dir/composer.lock" \
20
+ "$helpers_dir/phpstan.neon" \
21
+ "$install_dir"
22
+
23
+ cd "$install_dir"
13
24
 
14
25
  composer validate --no-check-publish
15
26
  composer install
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "require-dev": {
8
8
  "friendsofphp/php-cs-fixer": "^3.0",
9
- "phpstan/phpstan": "~1.3.1"
9
+ "phpstan/phpstan": "~1.4.2"
10
10
  },
11
11
  "autoload": {
12
12
  "psr-4": {