npm->pnpm (#2929)
Some checks are pending
E2E Tests / e2e (push) Waiting to run
Tests and checks on push / run-checks-and-tests (push) Waiting to run
Updates translation progress / update-translation-progress-issue (push) Waiting to run

This commit is contained in:
Kalle
2026-03-31 20:38:22 +03:00
committed by GitHub
parent 9b1960bbde
commit bd688d637c
27 changed files with 10782 additions and 15837 deletions

View File

@@ -2,7 +2,7 @@
/**
* Backfill Tournament Tiers Script
*
* Run with: npx tsx scripts/backfill-tournament-tiers.ts
* Run with: pnpm exec tsx scripts/backfill-tournament-tiers.ts
*
* Retroactively calculates and sets tiers for all finalized tournaments,
* then populates series tier history based on those tiers.

View File

@@ -57,7 +57,7 @@ for (const dbPath of DB_FILES) {
if (hasErrors) {
console.error(
"\nRun `npm run test:e2e:generate-seeds` to regenerate test databases.",
"\nRun `pnpm run test:e2e:generate-seeds` to regenerate test databases.",
);
process.exit(1);
} else {

View File

@@ -1,4 +1,4 @@
// for testing use the command `npx tsx ./scripts/create-league-divisions.ts 6 'https://gist.githubusercontent.com/sendou-ink/38aa4d5d8426035ce178c09598ae627f/raw/17be9bb53a9f017c2097d0624f365d1c5a029f01/league.csv'`
// for testing use the command `pnpm exec tsx ./scripts/create-league-divisions.ts 6 'https://gist.githubusercontent.com/sendou-ink/38aa4d5d8426035ce178c09598ae627f/raw/17be9bb53a9f017c2097d0624f365d1c5a029f01/league.csv'`
import "dotenv/config";
import { z } from "zod";

View File

@@ -42,7 +42,7 @@ async function generatePreSeededDatabases() {
fs.copyFileSync(baseDbPath, outputPath);
execSync(
`npx vite-node scripts/seed-single-variation.ts -- ${variation} ${outputPath}`,
`pnpm exec vite-node scripts/seed-single-variation.ts -- ${variation} ${outputPath}`,
{ stdio: "inherit" },
);

View File

@@ -2,7 +2,7 @@
/**
* Tournament Tiering Experiment Script
*
* Run with: npx tsx scripts/tournament-tiers-experiment.ts
* Run with: pnpm exec tsx scripts/tournament-tiers-experiment.ts
*
* Calculates tournament tiers based on top teams' average SeedingSkill.
* Tweak the THRESHOLDS object to experiment with different tier distributions.

View File

@@ -1,4 +1,4 @@
// usage: npx tsx ./scripts/unlock-league-matches.ts <parentTournamentId>
// usage: pnpm exec tsx ./scripts/unlock-league-matches.ts <parentTournamentId>
import "dotenv/config";
import { sql } from "~/db/sql";
import invariant from "~/utils/invariant";