chore: replace pnpm with bun across the project

This commit is contained in:
2026-02-26 13:41:13 -06:00
parent e9e3451c2d
commit f86ab35b32
7 changed files with 34 additions and 6336 deletions
+10 -10
View File
@@ -2,7 +2,7 @@
## Project Overview
**ttscm-ui** is an Electron desktop application built with **SvelteKit**, TypeScript, and Vite. It connects to the Optima API for credential and company management. The app uses standard SvelteKit routing for single-page navigation and pnpm for package management with patches applied to SvelteKit.
**ttscm-ui** is an Electron desktop application built with **SvelteKit**, TypeScript, and Vite. It connects to the Optima API for credential and company management. The app uses standard SvelteKit routing for single-page navigation and bun for package management with patches applied to SvelteKit.
## Architecture Layers
@@ -76,31 +76,31 @@ Export as a named object, then import/aggregate in `src/lib/index.ts`.
### Installation & Setup
```bash
pnpm install
bun install
```
Uses pnpm with SvelteKit patches (see `patches/` directory).
Uses bun with SvelteKit patches (see `patches/` directory).
### Running in Development
```bash
pnpm run start
bun start
```
Electron Forge + Vite handles dev server and hot module replacement (HMR). Dev tools open automatically. Main window loads `/login` first.
### Building & Packaging
- **Build for production**: `pnpm run package` → outputs to `out/` directory
- **Create distributable**: `pnpm run make` → creates installers (configure in `forge.config.ts`)
- **Check types & lint**: `pnpm run check` (runs svelte-kit sync + svelte-check)
- **Build for production**: `bun run package` → outputs to `out/` directory
- **Create distributable**: `bun run make` → creates installers (configure in `forge.config.ts`)
- **Check types & lint**: `bun run check` (runs svelte-kit sync + svelte-check)
### Testing
#### Unit Tests (Vitest)
```bash
pnpm run test:unit
bun run test:unit
```
- Client tests: `src/**/*.svelte.{test,spec}.{js,ts}` (jsdom environment)
@@ -110,7 +110,7 @@ pnpm run test:unit
#### E2E Tests (Playwright)
```bash
pnpm run test:e2e
bun run test:e2e
```
- Tests in `e2e/` directory
@@ -119,7 +119,7 @@ pnpm run test:e2e
#### Run All Tests
```bash
pnpm run test
bun run test
```
Runs unit tests first, then e2e.