build: use node instead of bun

This commit is contained in:
2025-11-18 15:47:38 +03:00
parent 3d078900a1
commit 07b7289fdc
7 changed files with 11012 additions and 1673 deletions

View File

@@ -7,7 +7,7 @@ CURRENT_DIR="$(dirname "$0")"
echo "Current dir: ${CURRENT_DIR}"
composer --version
bun --version
node --version
php -v
SRC_PATH="$1"
@@ -31,16 +31,16 @@ fi
echo "Build Telecart SPA Frontend..."
cd "${SRC_PATH}/frontend/spa"
bun install
bun run build
npm install
npm run build
echo "Move manifest file"
cp "${SRC_PATH}/module/oc_telegram_shop/upload/image/catalog/tgshopspa/.vite/manifest.json" "${SRC_PATH}/module/oc_telegram_shop/upload/image/catalog/tgshopspa/manifest.json"
echo "Build Admin Frontend"
cd "${SRC_PATH}/frontend/admin"
bun install
bun run build
npm install
npm run build
echo "Move manifest file"
cp "${SRC_PATH}/module/oc_telegram_shop/upload/admin/view/javascript/telecart/.vite/manifest.json" \