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
+55 -49
View File
@@ -1,51 +1,57 @@
{ {
"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": {
"start": "tsx src/server.ts", "start": "tsx src/server.ts",
"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": { },
"type": "git", "repository": {
"url": "git+https://github.com/ghoshRitesh12/aniwatch-api.git" "type": "git",
}, "url": "git+https://github.com/ghoshRitesh12/aniwatch-api.git"
"bugs": { },
"url": "https://github.com/ghoshRitesh12/aniwatch-api/issues" "bugs": {
}, "url": "https://github.com/ghoshRitesh12/aniwatch-api/issues"
"homepage": "https://github.com/ghoshRitesh12/aniwatch-api#readme", },
"keywords": [ "homepage": "https://github.com/ghoshRitesh12/aniwatch-api#readme",
"anime", "keywords": [
"weeb", "anime",
"hianime", "weeb",
"aniwatch", "scraper",
"scraper" "zoro.to",
], "aniwatch.to",
"author": "https://github.com/ghoshRitesh12", "hianime.to",
"license": "MIT", "hianimez.to"
"dependencies": { ],
"@hono/node-server": "^1.13.7", "author": "https://github.com/ghoshRitesh12",
"aniwatch": "^2.18.3", "license": "MIT",
"dotenv": "^16.4.7", "dependencies": {
"hono": "^4.6.15", "@hono/node-server": "^1.14.1",
"hono-rate-limiter": "^0.4.2", "aniwatch": "^2.21.2",
"ioredis": "^5.4.2" "dotenv": "^16.5.0",
}, "envalid": "^8.0.0",
"devDependencies": { "hono": "^4.7.9",
"@types/node": "^22.10.3", "hono-rate-limiter": "^0.4.2",
"husky": "^9.1.7", "ioredis": "^5.6.1",
"prettier": "^3.4.2", "pino": "^9.6.0",
"tsx": "^4.19.2", "tsx": "^4.19.4"
"typescript": "^5.7.2", },
"vitest": "^2.1.8" "devDependencies": {
} "@types/node": "^22.15.17",
"husky": "^9.1.7",
"pino-pretty": "^13.0.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3",
"vitest": "^3.1.3"
}
} }