mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 23:27:55 -05:00
npm->pnpm (#2929)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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" },
|
||||
);
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user