feat: add envalid, pino & format scripts

This commit is contained in:
Ritesh Ghosh
2025-05-11 13:03:42 +05:30
parent 935e59fcac
commit 21ca35904b
+23 -17
View File
@@ -1,7 +1,7 @@
{ {
"name": "aniwatch-api", "name": "aniwatch-api",
"version": "2.12.0", "version": "2.12.0",
"description": "Node.js API for obtaining anime information from hianime.to", "description": "Node.js API for obtaining anime information from hianimez.to",
"main": "src/server.ts", "main": "src/server.ts",
"type": "module", "type": "module",
"scripts": { "scripts": {
@@ -9,11 +9,12 @@
"dev": "tsx watch src/server.ts", "dev": "tsx watch src/server.ts",
"build": "tsc -p tsconfig.json", "build": "tsc -p tsconfig.json",
"vercel-build": "echo \"Hello\"", "vercel-build": "echo \"Hello\"",
"prepare": "husky install", "prepare": "node .husky/install.mjs",
"test": "vitest run --config vitest.config.ts", "test": "vitest run --config vitest.config.ts",
"healthcheck": "curl -f http://localhost:4000/health", "healthcheck": "curl -f http://localhost:4000/health",
"lint": "prettier --cache --write .", "lint": "tsc",
"lint:ci": "prettier --cache --check ." "format": "prettier --cache --write .",
"format:check": "prettier --cache --check ."
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -26,26 +27,31 @@
"keywords": [ "keywords": [
"anime", "anime",
"weeb", "weeb",
"hianime", "scraper",
"aniwatch", "zoro.to",
"scraper" "aniwatch.to",
"hianime.to",
"hianimez.to"
], ],
"author": "https://github.com/ghoshRitesh12", "author": "https://github.com/ghoshRitesh12",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@hono/node-server": "^1.13.7", "@hono/node-server": "^1.14.1",
"aniwatch": "^2.18.3", "aniwatch": "^2.21.2",
"dotenv": "^16.4.7", "dotenv": "^16.5.0",
"hono": "^4.6.15", "envalid": "^8.0.0",
"hono": "^4.7.9",
"hono-rate-limiter": "^0.4.2", "hono-rate-limiter": "^0.4.2",
"ioredis": "^5.4.2" "ioredis": "^5.6.1",
"pino": "^9.6.0",
"tsx": "^4.19.4"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^22.10.3", "@types/node": "^22.15.17",
"husky": "^9.1.7", "husky": "^9.1.7",
"prettier": "^3.4.2", "pino-pretty": "^13.0.0",
"tsx": "^4.19.2", "prettier": "^3.5.3",
"typescript": "^5.7.2", "typescript": "^5.8.3",
"vitest": "^2.1.8" "vitest": "^3.1.3"
} }
} }