Skip to content

Commit e6c863e

Browse files
MarkoVcodeclaude
andcommitted
fix: Build openapi-docs package before web build in release scripts
- Added build:openapi-docs step to both bash and batch release scripts - This ensures @usebruno/openapi-docs is built before the web application - Fixes "Module not found: Can't resolve '@usebruno/openapi-docs'" error - Updated step numbering in comments 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 316552a commit e6c863e

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

scripts/build-brunon-release.bat

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,22 @@ if %errorlevel% equ 0 (
2727
echo Warning: Not on a tagged commit. Version will use package.json value only.
2828
)
2929

30-
REM Step 1: Apply BrunoN branding to UI files
30+
REM Step 1: Build required packages
31+
echo Building required packages...
32+
call npm run build:openapi-docs
33+
if %errorlevel% neq 0 exit /b %errorlevel%
34+
35+
REM Step 2: Apply BrunoN branding to UI files
3136
echo Applying BrunoN branding...
3237
node scripts/apply-brunon-branding.js
3338
if %errorlevel% neq 0 exit /b %errorlevel%
3439

35-
REM Step 2: Build web application
40+
REM Step 3: Build web application
3641
echo Building web application...
3742
call npm run build:web
3843
if %errorlevel% neq 0 exit /b %errorlevel%
3944

40-
REM Step 3: Prepare Electron web assets
45+
REM Step 4: Prepare Electron web assets
4146
echo Preparing Electron web assets...
4247

4348
REM Remove old build directories
@@ -59,7 +64,7 @@ for /r packages\bruno-electron\web %%f in (*.map) do del "%%f"
5964

6065
echo Web assets prepared
6166

62-
REM Step 4: Build Electron distributables
67+
REM Step 5: Build Electron distributables
6368
echo Building Electron package for %PLATFORM%...
6469

6570
if "%PLATFORM%"=="snap" (

scripts/build-brunon-release.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,19 @@ else
2727
echo "Warning: Not on a tagged commit. Version will use package.json value only."
2828
fi
2929

30-
# Step 1: Apply BrunoN branding to UI files
30+
# Step 1: Build required packages
31+
echo "Building required packages..."
32+
npm run build:openapi-docs
33+
34+
# Step 2: Apply BrunoN branding to UI files
3135
echo "Applying BrunoN branding..."
3236
node scripts/apply-brunon-branding.js
3337

34-
# Step 2: Build web application
38+
# Step 3: Build web application
3539
echo "Building web application..."
3640
npm run build:web
3741

38-
# Step 3: Prepare Electron web assets
42+
# Step 4: Prepare Electron web assets
3943
echo "Preparing Electron web assets..."
4044

4145
# Remove old build directories
@@ -64,7 +68,7 @@ find packages/bruno-electron/web -name '*.map' -type f -delete
6468

6569
echo "Web assets prepared"
6670

67-
# Step 4: Build Electron distributables
71+
# Step 5: Build Electron distributables
6872
echo "Building Electron package for $PLATFORM..."
6973

7074
case "$PLATFORM" in

0 commit comments

Comments
 (0)