mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 15:31:58 +02:00
Create directory on build prefixed version
This commit is contained in:
parent
cc4e119219
commit
59e9c91b61
@ -5,6 +5,7 @@ set -x
|
||||
|
||||
# cleanup build
|
||||
rm -rf build/
|
||||
mkdir build
|
||||
|
||||
# prefix current code to /build directory (see "scoper.inc.php" for settings)
|
||||
vendor/bin/php-scoper add-prefix --no-interaction
|
||||
@ -41,7 +42,6 @@ sed -i 's/\\App\\\\Kernel/App\\Kernel/g' build/src/Bridge/Symfony/DefaultAnalyze
|
||||
# RectorPrefixed\Symfony\Component\HttpKernel\Kernel => Symfony\Component\HttpKernel\Kernel
|
||||
(find build/src/Bridge/Symfony/ -type f | xargs sed -i 's/RectorPrefixed\\Symfony\\Component/Symfony\\Component/g')
|
||||
|
||||
# ?todo
|
||||
cp composer.json build/composer.json
|
||||
|
||||
# rebuild composer dump so the new prefixed namespaces are autoloaded
|
||||
|
Loading…
x
Reference in New Issue
Block a user