Files
EivissaEnvirnmentalWatch/package.json
T
itziarZG f61cde82f9
ci / build-and-test (push) Canceled after 0s
build: refresh pnpm lockfile and pin build approvals
Coolify builds were failing with ERR_PNPM_OUTDATED_LOCKFILE because
the devDependencies added in recent commits (eslint, playwright,
@astrojs/check, tsx, sharp, etc.) had been installed with npm locally
and the pnpm-lock.yaml in the repo was stale.

- Regenerate pnpm-lock.yaml from current package.json.
- Promote sharp to a direct devDependency (scripts/build-og-image.ts
  imports it; pnpm cannot resolve transitive packages outside the
  importer graph).
- Pin esbuild and sharp as allowed build scripts in pnpm-workspace.yaml
  so pnpm 11's default deny policy does not skip their native postinstall
  on a clean install. Both are required: esbuild for the Vite/Astro
  binary, sharp for the OG image rasterizer.
- Add a pnpm engine pin (>=9) so installs that target the new schema
  fail fast instead of silently downgrading.

Verified locally: pnpm install (clean), pnpm run prebuild (regenerates
OG images, astro check, eslint), pnpm run build and pnpm run test:e2e
all pass (20/20).
2026-07-26 22:20:38 +02:00

49 lines
1.3 KiB
JSON

{
"name": "ibiza-environmental-watch",
"type": "module",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">=22.12.0",
"pnpm": ">=9"
},
"scripts": {
"dev": "astro dev",
"prebuild": "tsx scripts/build-og-image.ts && astro check && eslint .",
"build": "astro build",
"preview": "astro preview",
"check": "astro check",
"check:watch": "astro check --watch",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"pretest:e2e": "astro check && astro build",
"test:e2e": "playwright test",
"test:e2e:install": "playwright install --with-deps chromium"
},
"dependencies": {
"@astrojs/preact": "^6.0.1",
"@astrojs/rss": "^4.0.19",
"@astrojs/sitemap": "^3.7.3",
"astro": "^7.1.3",
"leaflet": "^1.9.4",
"pg": "^8.13.0",
"preact": "^10.24.3"
},
"devDependencies": {
"@astrojs/check": "^0.9.4",
"@axe-core/playwright": "^4.12.1",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.62.0",
"@types/leaflet": "^1.9.12",
"@types/pg": "^8.11.10",
"axe-core": "^4.12.1",
"eslint": "^9.39.5",
"eslint-plugin-astro": "^3.0.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"sharp": "^0.34.0",
"tsx": "^4.23.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.65.0"
}
}