Skip to content

Commit de0c24a

Browse files
committed
- change replacement of Updater.php to use post-install-cmd to ensure it happens every time composer install is run
1 parent 246368d commit de0c24a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@
7575
"build-test": "@docker-build -t",
7676
"build-plugin": [
7777
"composer install --no-dev",
78-
"rm ./vendor/appsero/client/src/Updater.php",
79-
"cp ./build/Updater.php ./vendor/appsero/client/src/",
8078
"composer run-script zip",
8179
"composer install"
8280
],
@@ -95,6 +93,10 @@
9593
"phpstan": [
9694
"phpstan analyze --ansi --memory-limit=1G"
9795
],
96+
"post-install-cmd": [
97+
"rm ./vendor/appsero/client/src/Updater.php",
98+
"cp ./build/Updater.php ./vendor/appsero/client/src/"
99+
],
98100
"zip": [
99101
"mkdir -p plugin-build/wpgraphql-acf",
100102
"rsync -rc --exclude-from=.distignore --exclude=plugin-build . plugin-build/wpgraphql-acf/ --delete --delete-excluded -v",

0 commit comments

Comments
 (0)