CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-sveltejs--adapter-auto

SvelteKit adapter that automatically detects deployment environment and installs appropriate platform-specific adapter

Overall
score

96%

Overview
Eval results
Files

rubric.jsonevals/scenario-9/

{
  "context": "This criteria evaluates how well the engineer uses @sveltejs/adapter-auto's multi-package manager support functionality to implement lockfile detection and install command generation. The focus is on proper use of directory traversal, lockfile checking patterns, and command format construction.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Lockfile detection order",
      "description": "Implementation checks for lockfiles in the correct priority order: pnpm-lock.yaml, yarn.lock, package-lock.json, bun.lockb/bun.lock, deno.lock",
      "max_score": 20
    },
    {
      "name": "Directory traversal",
      "description": "Implementation traverses up the directory tree from current working directory to filesystem root to find lockfiles, similar to how adapter-auto does it",
      "max_score": 20
    },
    {
      "name": "Default fallback",
      "description": "Implementation correctly defaults to 'npm' when no lockfile is found after traversing to root",
      "max_score": 10
    },
    {
      "name": "NPM command format",
      "description": "generateInstallCommand correctly produces 'npm install -D <package>@<version>' format for npm",
      "max_score": 10
    },
    {
      "name": "PNPM command format",
      "description": "generateInstallCommand correctly produces 'pnpm add -D <package>@<version>' format for pnpm",
      "max_score": 10
    },
    {
      "name": "Yarn command format",
      "description": "generateInstallCommand correctly produces 'yarn add -D <package>@<version>' format for yarn",
      "max_score": 10
    },
    {
      "name": "Bun command format",
      "description": "generateInstallCommand correctly produces 'bun add -D <package>@<version>' format for bun",
      "max_score": 10
    },
    {
      "name": "Deno command format",
      "description": "generateInstallCommand correctly produces 'deno install -D npm:<package>@<version>' format for deno (note the 'npm:' prefix)",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sveltejs--adapter-auto

tile.json