Move composer.json to the root

This commit is contained in:
Simon Perdrisat 2025-08-29 21:52:47 +00:00
parent cfafd413c2
commit 5768556299
4 changed files with 7 additions and 5 deletions

View File

@ -1,11 +1,11 @@
#!/bin/bash
docker run --rm --interactive --tty --volume ./includes:/app composer update --ignore-platform-req=ext-bcmath
docker run --rm --interactive --tty --volume $(pwd):/app composer update --ignore-platform-req=ext-bcmath
# Clean up vendor directory
if [ -d includes/vendor/sprain/swiss-qr-bill/example ]; then
rm -rf includes/vendor/sprain/swiss-qr-bill/example
# Nettoyage du dossier vendor
if [ -d vendor/sprain/swiss-qr-bill/example ]; then
rm -rf vendor/sprain/swiss-qr-bill/example
fi
cd ..

View File

@ -1,4 +1,6 @@
{
"name": "sinabe/dolibarr-swissqr",
"description": "Dolibarr SwissQR",
"config": {
"platform": {
"php": "8.1.0"

View File

@ -25,7 +25,7 @@
*/
use Sprain\SwissQrBill as QrBill;
require_once DOL_DOCUMENT_ROOT.'/custom/swissqr/includes/vendor/autoload.php';
require_once DOL_DOCUMENT_ROOT.'/custom/swissqr/vendor/autoload.php';
require_once DOL_DOCUMENT_ROOT.'/core/modules/facture/modules_facture.php';
require_once DOL_DOCUMENT_ROOT.'/core/modules/facture/doc/pdf_sponge.modules.php';