Many routes were in the server.ts file, now they are in their own files in the handlers folder. The server.ts file is now AppServer that handles the routes. We split as well the tests.
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "server-y-provider",
|
|
"version": "1.10.0",
|
|
"description": "Y.js provider for docs",
|
|
"repository": "https://github.com/numerique-gouv/impress",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json && tsc-alias",
|
|
"dev": "cross-env COLLABORATION_LOGGING=true && nodemon --config nodemon.json",
|
|
"start": "node ./dist/start-server.js",
|
|
"lint": "eslint . --ext .ts",
|
|
"test": "jest"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"dependencies": {
|
|
"@blocknote/server-util": "0.21.0",
|
|
"@hocuspocus/server": "2.15.0",
|
|
"@sentry/node": "8.45.1",
|
|
"@sentry/profiling-node": "8.45.1",
|
|
"express": "4.21.2",
|
|
"express-ws": "5.0.2",
|
|
"y-protocols": "1.0.6",
|
|
"yjs": "13.6.20"
|
|
},
|
|
"devDependencies": {
|
|
"@hocuspocus/provider": "2.15.0",
|
|
"@types/express": "5.0.0",
|
|
"@types/express-ws": "3.0.5",
|
|
"@types/jest": "29.5.14",
|
|
"@types/node": "*",
|
|
"@types/supertest": "6.0.2",
|
|
"@types/ws": "8.5.13",
|
|
"eslint-config-impress": "*",
|
|
"cross-env": "*",
|
|
"jest": "29.7.0",
|
|
"nodemon": "3.1.9",
|
|
"supertest": "7.0.0",
|
|
"ts-jest": "29.2.5",
|
|
"ts-node": "10.9.2",
|
|
"tsc-alias": "1.8.10",
|
|
"typescript": "*",
|
|
"ws": "8.18.0"
|
|
}
|
|
}
|