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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user