{
  "name": "wordle",
  "private": true,
  "workspaces": ["client", "server", "shared", "solver"],
  "scripts": {
    "build": "npm run build:client && npm run build:bundle",
    "build:client": "cd client && npx vite build",
    "build:bundle": "rm -rf dist && mkdir -p dist/server/src/routes dist/shared/src dist/client dist/data && cp -r client/dist/* dist/client/ && cp -r server/src/* dist/server/src/ && cp -r shared/src/* dist/shared/src/ && cp data/word-bank.json data/word-bank-ru.json dist/data/ && cp dist-package.json dist/package.json && find dist/server/src -name '*.ts' -exec sed -i \"s|@wordle/shared|../../shared/src/index.js|g\" {} +",
    "start": "node --import tsx server/src/index.ts",
    "dev": "node --import tsx server/src/index.ts",
    "solve": "cd solver && npm run solve",
    "deploy": "npm run build && rsync -avz dist/ helg.com:/var/www/wordle/"
  }
}
