mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 05:31:35 +03:00
195 lines
5.8 KiB
JSON
195 lines
5.8 KiB
JSON
{
|
|
"name": "@affine/server",
|
|
"private": true,
|
|
"version": "0.18.0",
|
|
"description": "Affine Node.js server",
|
|
"type": "module",
|
|
"bin": {
|
|
"run-test": "./scripts/run-test.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"start": "node --loader ts-node/esm/transpile-only.mjs ./src/index.ts",
|
|
"dev": "nodemon ./src/index.ts",
|
|
"test": "ava --concurrency 1 --serial",
|
|
"test:copilot": "ava \"tests/**/copilot-*.spec.ts\"",
|
|
"test:coverage": "c8 ava --concurrency 1 --serial",
|
|
"test:copilot:coverage": "c8 ava --timeout=5m \"tests/**/copilot-*.spec.ts\"",
|
|
"postinstall": "prisma generate",
|
|
"data-migration": "NODE_ENV=script node --loader ts-node/esm/transpile-only.mjs ./src/data/index.ts",
|
|
"predeploy": "yarn prisma migrate deploy && node --import ./scripts/register.js ./dist/data/index.js run"
|
|
},
|
|
"dependencies": {
|
|
"@apollo/server": "^4.11.2",
|
|
"@aws-sdk/client-s3": "^3.709.0",
|
|
"@fal-ai/serverless-client": "^0.15.0",
|
|
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.20.0",
|
|
"@google-cloud/opentelemetry-cloud-trace-exporter": "^2.4.1",
|
|
"@google-cloud/opentelemetry-resource-util": "^2.4.0",
|
|
"@nestjs/apollo": "^12.2.2",
|
|
"@nestjs/common": "^10.4.15",
|
|
"@nestjs/core": "^10.4.15",
|
|
"@nestjs/event-emitter": "^2.1.1",
|
|
"@nestjs/graphql": "^12.2.2",
|
|
"@nestjs/platform-express": "^10.4.15",
|
|
"@nestjs/platform-socket.io": "^10.4.15",
|
|
"@nestjs/schedule": "^4.1.2",
|
|
"@nestjs/throttler": "6.3.0",
|
|
"@nestjs/websockets": "^10.4.15",
|
|
"@node-rs/argon2": "^2.0.2",
|
|
"@node-rs/crc32": "^1.10.6",
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"@opentelemetry/core": "^1.29.0",
|
|
"@opentelemetry/exporter-prometheus": "^0.56.0",
|
|
"@opentelemetry/exporter-zipkin": "^1.29.0",
|
|
"@opentelemetry/host-metrics": "^0.35.4",
|
|
"@opentelemetry/instrumentation": "^0.56.0",
|
|
"@opentelemetry/instrumentation-graphql": "^0.46.0",
|
|
"@opentelemetry/instrumentation-http": "^0.56.0",
|
|
"@opentelemetry/instrumentation-ioredis": "^0.46.0",
|
|
"@opentelemetry/instrumentation-nestjs-core": "^0.43.0",
|
|
"@opentelemetry/instrumentation-socket.io": "^0.45.0",
|
|
"@opentelemetry/resources": "^1.29.0",
|
|
"@opentelemetry/sdk-metrics": "^1.29.0",
|
|
"@opentelemetry/sdk-node": "^0.56.0",
|
|
"@opentelemetry/sdk-trace-node": "^1.29.0",
|
|
"@opentelemetry/semantic-conventions": "^1.28.0",
|
|
"@prisma/client": "^5.22.0",
|
|
"@prisma/instrumentation": "^5.22.0",
|
|
"@socket.io/redis-adapter": "^8.3.0",
|
|
"cookie-parser": "^1.4.7",
|
|
"dotenv": "^16.4.7",
|
|
"express": "^4.21.2",
|
|
"fast-xml-parser": "^4.5.0",
|
|
"get-stream": "^9.0.1",
|
|
"graphql": "^16.9.0",
|
|
"graphql-scalars": "^1.24.0",
|
|
"graphql-upload": "^17.0.0",
|
|
"html-validate": "^8.27.0",
|
|
"ioredis": "^5.4.1",
|
|
"is-mobile": "^5.0.0",
|
|
"keyv": "^5.2.2",
|
|
"lodash-es": "^4.17.21",
|
|
"mixpanel": "^0.18.0",
|
|
"mustache": "^4.2.0",
|
|
"nanoid": "^5.0.9",
|
|
"nest-commander": "^3.15.0",
|
|
"nestjs-throttler-storage-redis": "^0.5.1",
|
|
"nodemailer": "^6.9.16",
|
|
"on-headers": "^1.0.2",
|
|
"openai": "^4.76.2",
|
|
"piscina": "^5.0.0-alpha.0",
|
|
"prisma": "^5.22.0",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.1",
|
|
"ses": "^1.10.0",
|
|
"socket.io": "^4.8.1",
|
|
"stripe": "^17.4.0",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.7.2",
|
|
"yjs": "patch:yjs@npm%3A13.6.18#~/.yarn/patches/yjs-npm-13.6.18-ad0d5f7c43.patch",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"devDependencies": {
|
|
"@affine-test/kit": "workspace:*",
|
|
"@affine/server-native": "workspace:*",
|
|
"@nestjs/testing": "^10.4.15",
|
|
"@types/cookie-parser": "^1.4.8",
|
|
"@types/express": "^4.17.21",
|
|
"@types/graphql-upload": "^17.0.0",
|
|
"@types/keyv": "^4.2.0",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@types/mixpanel": "^2.14.9",
|
|
"@types/mustache": "^4.2.5",
|
|
"@types/node": "^20.17.10",
|
|
"@types/nodemailer": "^6.4.17",
|
|
"@types/on-headers": "^1.0.3",
|
|
"@types/sinon": "^17.0.3",
|
|
"@types/supertest": "^6.0.2",
|
|
"ava": "^6.2.0",
|
|
"c8": "^10.1.3",
|
|
"nodemon": "^3.1.7",
|
|
"sinon": "^19.0.2",
|
|
"supertest": "^7.0.0"
|
|
},
|
|
"ava": {
|
|
"timeout": "1m",
|
|
"extensions": {
|
|
"ts": "module"
|
|
},
|
|
"workerThreads": false,
|
|
"nodeArguments": [
|
|
"--trace-sigint",
|
|
"--loader",
|
|
"ts-node/esm/transpile-only.mjs",
|
|
"--es-module-specifier-resolution=node"
|
|
],
|
|
"watchMode": {
|
|
"ignoreChanges": [
|
|
"static/**",
|
|
"**/*.gen.*"
|
|
]
|
|
},
|
|
"files": [
|
|
"**/__tests__/**/*.spec.ts",
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"require": [
|
|
"./src/prelude.ts"
|
|
],
|
|
"environmentVariables": {
|
|
"TS_NODE_PROJECT": "./tests/tsconfig.json",
|
|
"NODE_ENV": "test",
|
|
"MAILER_HOST": "0.0.0.0",
|
|
"MAILER_PORT": "1025",
|
|
"MAILER_USER": "noreply@toeverything.info",
|
|
"MAILER_PASSWORD": "affine",
|
|
"MAILER_SENDER": "noreply@toeverything.info",
|
|
"FEATURES_EARLY_ACCESS_PREVIEW": "false",
|
|
"DEPLOYMENT_TYPE": "affine"
|
|
}
|
|
},
|
|
"nodemonConfig": {
|
|
"exec": "node",
|
|
"script": "./src/index.ts",
|
|
"nodeArgs": [
|
|
"--loader",
|
|
"ts-node/esm.mjs",
|
|
"--es-module-specifier-resolution=node"
|
|
],
|
|
"ignore": [
|
|
"**/__tests__/**",
|
|
"**/dist/**",
|
|
"*.gen.*"
|
|
],
|
|
"env": {
|
|
"NODE_ENV": "development",
|
|
"AFFINE_SERVER_EXTERNAL_URL": "http://localhost:8080",
|
|
"TS_NODE_TRANSPILE_ONLY": true,
|
|
"TS_NODE_PROJECT": "./tsconfig.json",
|
|
"DEBUG": "affine:*",
|
|
"FORCE_COLOR": true,
|
|
"DEBUG_COLORS": true
|
|
},
|
|
"delay": 1000
|
|
},
|
|
"c8": {
|
|
"reporter": [
|
|
"text",
|
|
"lcov"
|
|
],
|
|
"report-dir": ".coverage",
|
|
"exclude": [
|
|
"scripts",
|
|
"node_modules",
|
|
"**/*.spec.ts",
|
|
"**/*.e2e.ts"
|
|
]
|
|
},
|
|
"stableVersion": "0.5.3",
|
|
"installConfig": {
|
|
"hoistingLimits": "workspaces"
|
|
}
|
|
}
|