package.json

{
  "name": "atlantis",
  "devDependencies": {
    "concurrently": "^9.2.1",
    "husky": "^9.1.7"
  },
  "packageManager": "bun@1.2.16",
  "private": true,
  "scripts": {
    "prepare": "husky",
    "dev": "concurrently -n web,landing -c 'blue,magenta' \"bun run dev:web\" \"bun run dev:landing\"",
    "dev:web": "bun run --cwd apps/web dev",
    "dev:landing": "bun run --cwd apps/landing dev",
    "build:web": "bun run --cwd apps/web build",
    "check:web": "bun run --cwd apps/web check",
    "lint": "bun run --cwd apps/web lint",
    "typecheck": "bun run --cwd apps/web typecheck",
    "format": "bunx prettier --write .",
    "format:check": "bunx prettier --check .",
    "test:": "bun run test:web && bun run test:db",
    "test:all": "bun run test:web && bun run test:db && bun run test:e2e",
    "test:web": "bun run --cwd apps/web test",
    "test:db": "./scripts/run-with-nix-if-available.sh uv run --extra test pytest tests/python",
    "test:e2e": "./scripts/run-with-nix-if-available.sh env PLAYWRIGHT_WEB_SERVER=1 bun run --cwd apps/web test:e2e",
    "test:e2e:headed": "./scripts/run-with-nix-if-available.sh env PLAYWRIGHT_WEB_SERVER=1 bun run --cwd apps/web test:e2e:headed",
    "check:db": "sh -c 'if command -v python >/dev/null 2>&1; then exec python -m compileall tools/netflow-db; else exec python3 -m compileall tools/netflow-db; fi'"
  },
  "workspaces": [
    "apps/*"
  ]
}