Files
gsalucci 898b8d74af test(e2e): add jiti devDep, derive repo root from import.meta.url
'npm run test:e2e' was failing before it even started:
the four tests import { createJiti } from 'jiti' but jiti was never
declared in package.json, so Node threw ERR_MODULE_NOT_FOUND on the
first import. Adding it to devDependencies fixes the loader.

The same tests hard-coded the original developer's path
('/home/moze/Sorgenti/pi-imgen'), so even with jiti installed they
would have failed on any other checkout. Replacing it with
dirname(dirname(dirname(fileURLToPath(import.meta.url)))) lets the
suite run from wherever the repo is cloned.
2026-08-27 15:52:04 +02:00

48 lines
1.1 KiB
JSON

{
"name": "pi-imgen",
"version": "0.1.0",
"description": "Genera locandine, loghi e immagini per eventi - pi extension (local, Apple Silicon)",
"keywords": [
"pi-package",
"pi-extension",
"image-generation",
"poster",
"typst"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://git.sal.giize.com/mozempk/pi-imgen.git"
},
"pi": {
"extensions": [
"./extensions/imgen"
]
},
"type": "module",
"dependencies": {
"sharp": "^0.34.2"
},
"peerDependencies": {
"@earendil-works/pi-ai": "*",
"@earendil-works/pi-agent-core": "*",
"@earendil-works/pi-coding-agent": "*",
"@earendil-works/pi-tui": "*",
"typebox": "*"
},
"engines": {
"node": ">=20"
},
"scripts": {
"typecheck": "tsc --noEmit -p tsconfig.json",
"test": "tests/render-fixtures.sh",
"fonts": "scripts/fetch-fonts.sh",
"test:e2e": "node tests/e2e/render.mjs && node tests/e2e/contrast.mjs && node tests/e2e/oversized.mjs && node tests/e2e/strings.mjs"
},
"devDependencies": {
"typescript": "^5.6.0",
"@types/node": "^20.14.0",
"jiti": "^2.4.0"
}
}