mirror of
https://github.com/minescope/mineping.git
synced 2025-07-17 02:06:05 +03:00
We use JSDoc for documentation, but these annotations were not being validated. This meant that type information could become outdated or incorrect without any warning. This commit introduces the TypeScript compiler (`tsc`) as a static analysis tool to leverage our existing JSDoc comments. To support this, JSDoc annotations across the codebase have been improved for accuracy. Additionally, the `varint` module now uses a custom `VarIntError` class for better type inference and error handling. A new `typecheck` script has been added to `package.json` to run this validation.
37 lines
736 B
JSON
37 lines
736 B
JSON
{
|
|
"name": "@minescope/mineping",
|
|
"version": "1.7.0-beta.1",
|
|
"description": "Ping both Minecraft Bedrock and Java servers.",
|
|
"main": "index.js",
|
|
"type": "module",
|
|
"types": "types/index.d.ts",
|
|
"scripts": {
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/minescope/mineping.git"
|
|
},
|
|
"license": "MIT",
|
|
"keywords": [],
|
|
"author": {
|
|
"name": "Timofey Gelazoniya",
|
|
"email": "timofey@z4n.me",
|
|
"url": "https://zeldon.ru"
|
|
},
|
|
"engines": {
|
|
"node": ">=14"
|
|
},
|
|
"dependencies": {
|
|
"debug": "^4.4.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/debug": "^4.1.12",
|
|
"@types/node": "^24.0.3",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^3.2.3"
|
|
}
|
|
}
|