3bee04f331
- Created tsconfig.json with strict mode enabled - Added comprehensive type definitions in types.ts - Migrated protocol.mjs to protocol.ts with const assertions - Migrated index.mjs to index.ts with full type annotations - Updated package.json with TypeScript build script and type exports - Added @types/express and @types/ws devDependencies - Created comprehensive test suite with 28 tests covering: - Type safety and strict null checks - Protocol constants with literal types - Build configuration validation - Module exports and imports - Data structure validation - Type safety enforcement - All tests passing, build succeeds with no errors - Zero implicit any types, full type safety Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
36 lines
776 B
JSON
36 lines
776 B
JSON
{
|
|
"name": "@uncaged/dashboard-server",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"bun": "./src/index.ts",
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./protocol": {
|
|
"types": "./dist/protocol.d.ts",
|
|
"import": "./dist/protocol.js"
|
|
}
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.shazhou.work/uncaged/worker-dashboard.git",
|
|
"directory": "packages/server"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"test": "vitest run --passWithNoTests",
|
|
"test:ci": "vitest run --passWithNoTests"
|
|
},
|
|
"dependencies": {
|
|
"express": "^5.1.0",
|
|
"ws": "^8.18.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^5.0.0",
|
|
"@types/ws": "^8.5.13"
|
|
}
|
|
}
|