From 633c3a919b3475a23cb4a063d310d0cc1fe00fb5 Mon Sep 17 00:00:00 2001 From: BertVermorgen Date: Mon, 9 Mar 2026 15:24:49 +0100 Subject: [PATCH] chore: replace npm/npx references with bun/bunx Closes #10 Co-Authored-By: Claude Sonnet 4.6 --- .claude/settings.json | 4 ++-- .github/workflows/build.yml | 4 ++-- Itenium.SkillForge/frontend/.husky/pre-commit | 2 +- Itenium.SkillForge/frontend/e2e/global-setup.ts | 4 ++-- Itenium.SkillForge/frontend/playwright.config.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index ac16bce..bc0976c 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -26,8 +26,8 @@ "Bash(git stash*)", "Bash(git merge*)", "Bash(git rebase*)", - "Bash(npx playwright*)", - "Bash(npx vitest*)", + "Bash(bunx playwright*)", + "Bash(bunx vitest*)", "Bash(ls *)", "Bash(dir *)", "Bash(pwd)", diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cf80c12..74ce7c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: - name: Setup Bun uses: oven-sh/setup-bun@v2 - - name: Authenticate to GitHub Packages (npm) + - name: Authenticate to GitHub Packages run: | echo "@itenium-forge:registry=https://npm.pkg.github.com" >> .npmrc echo "//npm.pkg.github.com/:_authToken=${{ secrets.NUGET_AUTH_TOKEN }}" >> .npmrc @@ -87,7 +87,7 @@ jobs: run: bun audit --production || true - name: Install Playwright browsers - run: npx playwright install --with-deps chromium + run: bunx playwright install --with-deps chromium - name: Run E2E tests run: bun run test:e2e diff --git a/Itenium.SkillForge/frontend/.husky/pre-commit b/Itenium.SkillForge/frontend/.husky/pre-commit index e02e92b..27aaa5d 100644 --- a/Itenium.SkillForge/frontend/.husky/pre-commit +++ b/Itenium.SkillForge/frontend/.husky/pre-commit @@ -1,4 +1,4 @@ -cd Itenium.SkillForge/frontend && npx lint-staged +cd Itenium.SkillForge/frontend && bunx lint-staged # Backend: check formatting on staged .cs files if git diff --cached --name-only | grep -q '\.cs$'; then diff --git a/Itenium.SkillForge/frontend/e2e/global-setup.ts b/Itenium.SkillForge/frontend/e2e/global-setup.ts index aa83b19..540e83a 100644 --- a/Itenium.SkillForge/frontend/e2e/global-setup.ts +++ b/Itenium.SkillForge/frontend/e2e/global-setup.ts @@ -28,11 +28,11 @@ export default async function globalSetup() { 'Option 1 - Use Docker (requires GitHub Packages auth):\n' + ' $env:NUGET_USER="your-github-username"\n' + ' $env:NUGET_TOKEN="your-github-pat-with-read:packages"\n' + - ' npm run test:e2e\n\n' + + ' bun run test:e2e\n\n' + 'Option 2 - Use locally running backend (faster for local dev):\n' + ' # Start the backend manually first, then:\n' + ' $env:BACKEND_URL="https://localhost:5001"\n' + - ' npm run test:e2e', + ' bun run test:e2e', ); } diff --git a/Itenium.SkillForge/frontend/playwright.config.ts b/Itenium.SkillForge/frontend/playwright.config.ts index 8c60f0d..0d255b5 100644 --- a/Itenium.SkillForge/frontend/playwright.config.ts +++ b/Itenium.SkillForge/frontend/playwright.config.ts @@ -21,7 +21,7 @@ export default defineConfig({ }, ], webServer: { - command: 'npm run dev -- --mode e2e', + command: 'bun run dev -- --mode e2e', url: 'http://localhost:5173', reuseExistingServer: !process.env.CI, timeout: 120000,