chore: update package.json to use yarn commands for type checking and building
Some checks failed
Build Renderer / build (push) Has been cancelled
Release / build (ubuntu-latest) (push) Has been cancelled
Release / build (windows-2022) (push) Has been cancelled

This commit is contained in:
Chubby Granny Chaser
2025-11-30 15:21:50 +00:00
parent cb01301a0d
commit e49d885b30
3 changed files with 104 additions and 106 deletions

View File

@@ -19,12 +19,12 @@
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix", "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
"typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false",
"typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false", "typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false",
"typecheck": "npm run typecheck:node && npm run typecheck:web", "typecheck": "yarn run typecheck:node && yarn run typecheck:web",
"start": "electron-vite preview", "start": "electron-vite preview",
"dev": "electron-vite dev", "dev": "electron-vite dev",
"build": "npm run typecheck && electron-vite build", "build": "yarn run typecheck && electron-vite build",
"postinstall": "electron-builder install-app-deps && node ./scripts/postinstall.cjs", "postinstall": "electron-builder install-app-deps && node ./scripts/postinstall.cjs",
"build:unpack": "npm run build && electron-builder --dir", "build:unpack": "yarn run build && electron-builder --dir",
"build:win": "electron-vite build && electron-builder --win", "build:win": "electron-vite build && electron-builder --win",
"build:mac": "electron-vite build && electron-builder --mac", "build:mac": "electron-vite build && electron-builder --mac",
"build:linux": "electron-vite build && electron-builder --linux", "build:linux": "electron-vite build && electron-builder --linux",

View File

@@ -305,9 +305,11 @@ function HeroDownloadView({
)} )}
</span> </span>
)} )}
{(!lastPacket?.isCheckingFiles || currentProgress > 0) && (
<span className="download-group__progress-percentage"> <span className="download-group__progress-percentage">
<AnimatedPercentage value={currentProgress} /> <AnimatedPercentage value={currentProgress} />
</span> </span>
)}
</div> </div>
<div className="download-group__progress-bar"> <div className="download-group__progress-bar">
<div <div

View File

@@ -178,8 +178,7 @@ export function UserLibraryGameCard({
</span> </span>
</div> </div>
{userProfile?.hasActiveSubscription && {userProfile?.hasActiveSubscription && game.achievementCount > 0 && (
game.achievementCount > 0 && (
<div className="user-library-game__stats"> <div className="user-library-game__stats">
<div className="user-library-game__stats-header"> <div className="user-library-game__stats-header">
<div className="user-library-game__stats-content"> <div className="user-library-game__stats-content">
@@ -191,8 +190,7 @@ export function UserLibraryGameCard({
> >
<TrophyIcon size={13} /> <TrophyIcon size={13} />
<span> <span>
{game.unlockedAchievementCount} /{" "} {game.unlockedAchievementCount} / {game.achievementCount}
{game.achievementCount}
</span> </span>
</div> </div>
@@ -221,9 +219,7 @@ export function UserLibraryGameCard({
<progress <progress
max={1} max={1}
value={ value={game.unlockedAchievementCount / game.achievementCount}
game.unlockedAchievementCount / game.achievementCount
}
className="user-library-game__achievements-progress" className="user-library-game__achievements-progress"
/> />
</div> </div>