* Updated package.json to specify the entry point for the development script and added morgan as a dependency. * Introduced HttpServer class for handling HTTP requests with Express and integrated logging. * Added new assertion methods in the Assert class for better type validation. * Created IRoutes interface to define route handling structure. * Added optional and nullable type definitions for improved type safety. * Implemented initial server setup in src/index.ts.
40 lines
1006 B
JSON
40 lines
1006 B
JSON
{
|
|
"name": "@techniker-me/websocket-server",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"preinstall": "npm prune",
|
|
"format": "prettier --write .",
|
|
"prelint": "npm install",
|
|
"lint": "eslint --max-warnings 0 .",
|
|
"prelint:fix": "npm run format",
|
|
"lint:fix": "eslint --fix .",
|
|
"dev": "tsx watch --clear-screen=false src/index.ts",
|
|
"typecheck": "tsc"
|
|
},
|
|
"author": "Alexander Zinn",
|
|
"license": "ISC",
|
|
"description": "",
|
|
"devDependencies": {
|
|
"@eslint/css": "0.11.1",
|
|
"@eslint/js": "9.36.0",
|
|
"@eslint/json": "0.13.2",
|
|
"@eslint/markdown": "7.3.0",
|
|
"@types/morgan": "1.9.10",
|
|
"@types/node": "24.5.2",
|
|
"eslint": "9.36.0",
|
|
"globals": "16.4.0",
|
|
"jiti": "2.6.0",
|
|
"nodemon": "3.1.10",
|
|
"prettier": "3.6.2",
|
|
"tsx": "4.20.6",
|
|
"typescript": "5.9.2",
|
|
"typescript-eslint": "8.44.1"
|
|
},
|
|
"dependencies": {
|
|
"@techniker-me/logger": "0.0.15",
|
|
"@techniker-me/tools": "2025.0.16",
|
|
"morgan": "1.10.1"
|
|
}
|
|
}
|