c2a046d6f7
`.agents/scripts/visual-regression.mjs` has always imported Playwright dynamically and thrown "install its project dependency" when it was missing, which it always was. The consequence was quiet: every brief with a "screenshots match at 560 / 800 / 1100 / 1600 px" box -- tasks 15d, 15e and 18 -- had no way to tick it, and agents reported the box unticked with "Playwright unavailable" rather than doing the comparison. The browsers were already cached in ~/.cache/ms-playwright; only the node package was absent. Verified a headless screenshot works after install. pnpm-lock.yaml changes here as a side effect of `pnpm add -D`, never by hand. No package-lock.json, yarn.lock or bun.lock. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"name": "ai-for-dummies",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "astro dev",
|
|
"build": "astro build",
|
|
"preview": "astro preview",
|
|
"check": "astro check",
|
|
"lint": "eslint . --max-warnings=0 && stylelint --allow-empty-input 'src/**/*.css' --max-warnings=0",
|
|
"format": "prettier --write .",
|
|
"verify": "node scripts/verify.mjs && node scripts/audit-ui.mjs && node .agents/scripts/check-tokens.mjs",
|
|
"gate": "./.agents/scripts/gate.sh",
|
|
"snapshot": "node .agents/scripts/snapshot-route.mjs",
|
|
"serve": "python3 -m http.server 4173",
|
|
"prepare": "husky"
|
|
},
|
|
"devDependencies": {
|
|
"@astrojs/check": "0.9.4",
|
|
"@eslint/js": "^9",
|
|
"@typescript-eslint/parser": "^8",
|
|
"astro": "5.5.0",
|
|
"eslint": "^9",
|
|
"eslint-plugin-astro": "^1",
|
|
"husky": "^9",
|
|
"lint-staged": "^16",
|
|
"playwright": "^1.62.1",
|
|
"prettier": "^3",
|
|
"prettier-plugin-astro": "^0.14",
|
|
"stylelint": "^16",
|
|
"stylelint-config-standard": "^39",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"packageManager": "pnpm@11.25.0",
|
|
"engines": {
|
|
"node": ">=22.13",
|
|
"pnpm": ">=11"
|
|
}
|
|
}
|