Files
PriceHunter/package.json
mariosemes fe56c3b17e Lazy-load puppeteer to fix tsx watch hanging on startup
Puppeteer import at top level was blocking tsx watch mode,
preventing the server from starting. Now imported dynamically
only when a JS-rendered store is actually scraped.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 22:08:09 +01:00

38 lines
1.0 KiB
JSON

{
"name": "pricehunter",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev:server": "tsx watch --clear-screen=false src/server/index.ts",
"dev:client": "cd src/client && npm run dev",
"dev": "concurrently --names server,client \"npm run dev:server\" \"npm run dev:client\"",
"build:client": "cd src/client && npm run build",
"build:server": "tsc",
"build": "npm run build:client && npm run build:server",
"start": "node dist/server/index.js",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@fastify/cors": "^10.0.1",
"@fastify/static": "^8.0.3",
"bottleneck": "^2.19.5",
"cheerio": "^1.0.0",
"dotenv": "^16.4.7",
"fastify": "^5.2.1",
"p-limit": "^6.2.0",
"puppeteer": "^24.40.0",
"sql.js": "^1.11.0",
"yaml": "^2.8.3"
},
"devDependencies": {
"@types/node": "^22.10.0",
"concurrently": "^9.1.2",
"pino-pretty": "^13.1.3",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"vitest": "^2.1.8"
}
}