Update build and check scripts to use pnpm for consistency

- Changed build command in build.sh from npm to pnpm.
- Updated dependency installation in publish_setup.sh to use pnpm.
- Modified check.sh to replace npx commands with pnpm for running Svelte sync and checks.
This commit is contained in:
2025-12-27 12:26:39 -06:00
parent f98fc7c618
commit 30c7a50240
3 changed files with 5 additions and 4 deletions

View File

@@ -2,5 +2,5 @@
set -euo pipefail
echo "Building app..."
VITE_APP_VERSION=$(node -p "require('./package.json').version") npm run build
VITE_APP_VERSION=$(node -p "require('./package.json').version") pnpm run build

View File

@@ -2,8 +2,8 @@
set -euo pipefail
echo "Running Svelte sync..."
npx svelte-kit sync
pnpm svelte-kit sync
echo "Running svelte-check (fail on errors)..."
npx svelte-check --tsconfig ./tsconfig.json
pnpm svelte-check --tsconfig ./tsconfig.json

View File

@@ -6,7 +6,8 @@ sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev gcc-mingw-w64 zip
echo "Installing project dependencies..."
npm ci
npm install -g pnpm
pnpm install --frozen-lockfile
echo "Installing Wails CLI..."
go install github.com/wailsapp/wails/v2/cmd/wails@latest