{ "name": "@tdrive/tdrive-backend", "version": "1.0.0", "description": "Tdrive backend", "scripts": { "build": "npm run build:clean && npm run build:ts && npm run build:copy-assets", "build:ts": "tsc", "build:clean": "rimraf ./dist", "build:copy-assets": "npm run build:copy-config && npm run build:copy-templates", "build:copy-config": "cp -R config dist", "build:copy-templates": "cpy src/**/*.eta dist/", "build:watch": "npm run build:clean && npm run build:copy-assets && tsc-watch --project . --noClear --outDir ./dist", "cli": "__tdcli() { set -o pipefail ; bin/twake-cli \"$@\" | pino-pretty ; } ; __tdcli", "dev": "tsc-watch --project . --noClear --outDir ./dist --onSuccess \"nodemon ./dist/server.js\" | pino-pretty", "dev:cli": "tsc-watch --project . --noClear --outDir ./dist --onSuccess \"nodemon ./dist/cli/index.js workspace user\" | pino-pretty", "dev:cli-dry": "tsc-watch --project . --noClear --outDir ./dist --onSuccess \"nodemon ./dist/cli/index.js console merge --dry\" | pino-pretty", "dev:debug": "tsc-watch --project . --noClear --outDir ./dist --onSuccess \"nodemon --inspect=0.0.0.0 ./dist/server.js\" | pino-pretty", "lint": "eslint . --ext .ts --quiet --fix", "lint:no-fix": "eslint . --ext .ts", "lint:prettier": "prettier --check --config .prettierrc 'src/**/*.ts'", "serve": "node --unhandled-rejections=warn --max-http-header-size=30000 dist/server.js", "serve:watch": "nodemon dist/server.js | pino-pretty", "serve:debug": "nodemon --inspect dist/server.js | pino-pretty", "start": "npm run serve", "test": "jest --forceExit --coverage --detectOpenHandles --runInBand --verbose false | pino-pretty", "test:local": "jest --forceExit --detectOpenHandles --runInBand mock.spec.ts", "test:watch": "npm run test -- --watchAll --verbose false | pino-pretty", "test:unit": "jest test/unit --forceExit --coverage --detectOpenHandles --maxWorkers=1 --testTimeout=30000 --verbose false > coverage/coverage-report.txt", "test:unit:watch": "npm run test:unit -- --watchAll --verbose false | pino-pretty", "test:merge:json": "npx istanbul report --dir coverage/merged --include 'coverage/**/coverage-final.json' json-summary", "test:merge:text": "npx istanbul report --dir coverage/merged --include 'coverage/**/coverage-final.json' text > coverage/merged/coverage-report.txt", "test:all": "jest test --forceExit --coverage --detectOpenHandles --testTimeout=600000 --verbose false", "kill": "kill $(lsof -t -i:3000) | exit 0" }, "jest": { "preset": "ts-jest", "collectCoverage": true, "coverageReporters": [ "json", "html", "clover", "json-summary", "text" ], "verbose": true, "testEnvironment": "node" }, "repository": { "type": "git", "url": "git+https://github.com/linagora/twake-drive.git" }, "author": "Tdrive", "license": "ISC", "bugs": { "url": "https://github.com/linagora/twake-drive/issues" }, "homepage": "https://github.com/linagora/twake-drive#readme", "bin": { "tdrive-cli": "bin/tdrive-cli" }, "devDependencies": { "@types/amqp-connection-manager": "^2.0.10", "@types/analytics-node": "^3.1.5", "@types/archiver": "^5.3.1", "@types/bcrypt": "^5.0.0", "@types/cli-table": "^0.3.0", "@types/config": "0.0.36", "@types/eslint": "^7.2.3", "@types/fluent-ffmpeg": "^2.1.20", "@types/html-to-text": "^8.1.1", "@types/jest": "^29.5.12", "@types/lodash": "^4.14.165", "@types/node": "^18.11", "@types/node-cron": "^3.0.0", "@types/node-fetch": "^2.5.12", "@types/node-uuid": "^0.0.28", "@types/nodemailer": "^6.4.14", "@types/pdf-image": "^2.0.1", "@types/pg-pool": "^2.0.6", "@types/pino": "^7.0.5", "@types/pump": "^1.1.1", "@types/random-useragent": "^0.3.1", "@types/socket.io-client": "^1.4.36", "@types/unzipper": "^0.10.9", "@types/uuid": "^8.3.0", "@types/ws": "^7.2.7", "@typescript-eslint/eslint-plugin": "^5.59.9", "@typescript-eslint/parser": "^5.59.9", "cpy-cli": "^4.2.0", "eslint": "^8.42.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-unused-imports": "^2.0.0", "form-auto-content": "^2.2.0", "jest": "^29.7.0", "jest-mock-extended": "^3.0.4", "nodemon": "^3.1.0", "pino-pretty": "^10.0.0", "prettier": "^2.1.2", "rimraf": "^3.0.2", "ts-jest": "^29.1.2", "ts-node": "^10.9.2", "ts-node-dev": "^2.0.0", "tsc-watch": "^4.2.9", "tsconfig-paths": "^4.2.0", "typescript": "^5.4.5" }, "dependencies": { "@elastic/elasticsearch": "7", "@fastify/caching": "^8.3.0", "@fastify/cookie": "^9.3.1", "@fastify/cors": "^9.0.1", "@fastify/formbody": "^7.4.0", "@fastify/jwt": "^8.0.0", "@fastify/multipart": "^8.2.0", "@fastify/sensible": "^5.6.0", "@fastify/static": "^7.0.3", "@fastify/swagger": "^8.14.0", "@ffprobe-installer/ffprobe": "^1.4.1", "@opensearch-project/opensearch": "^2.4.0", "@segment/analytics-node": "^2.1.2", "@sentry/node": "^6.19.7", "@sentry/tracing": "^6.19.7", "@socket.io/redis-adapter": "^7.2.0", "@types/http-proxy": "^1.17.14", "@types/i18n": "^0.13.12", "@types/pdf-parse": "^1.1.4", "@types/sharp": "^0.29.5", "amqp-connection-manager": "^3.7.0", "amqplib": "^0.8.0", "archiver": "^5.3.1", "axios": "^1.6.8", "bcrypt": "^5.0.1", "class-transformer": "^0.3.1", "cli-table": "^0.3.6", "config": "^3.3.2", "deep-object-diff": "^1.1.0", "emoji-name-map": "^1.2.9", "eta": "^2.2.0", "fastify": "^4.27.0", "fastify-cors": "^4.1.0", "fastify-plugin": "^4.5.1", "fastify-socket.io": "^5.0.0", "fluent-ffmpeg": "^2.1.2", "fold-to-ascii": "^5.0.0", "free-email-domains": "1.0.26", "generate-password": "^1.6.0", "html-to-text": "^8.2.1", "i18n": "^0.15.1", "jsonwebtoken": "^9.0.0", "jwks-rsa": "^3.0.1", "lodash": "^4.17.21", "loupe": "^3.1.0", "minio": "^7.1.3", "moment": "^2.29.4", "mongodb": "^5.9.2", "multistream": "^4.1.0", "njwt": "^2.0.0", "node-abort-controller": "^3.1.1", "node-cache": "^5.1.2", "node-cron": "^3.0.0", "node-fetch": "^2.6.7", "nodemailer": "^6.9.7", "openid-client": "^5.4.0", "ora": "^5.4.0", "pdf-parse": "^1.1.1", "pdf2pic": "^2.1.4", "pg": "^8.11.3", "pg-pool": "^3.6.1", "pino": "^9.5.0", "probe-image-size": "^7.2.3", "pump": "^3.0.0", "random-useragent": "^0.5.0", "redis": "3", "reflect-metadata": "^0.1.13", "rxjs": "^6.6.3", "sharp": "^0.33.3", "short-uuid": "^4.2.2", "socket.io": "^4.6.2", "socket.io-client": "^4.7.5", "unoconv-promise": "^1.0.8", "unzipper": "^0.11.6", "uuid": "^8.3.2", "uuid-time": "^1.0.0", "yargs": "^16.2.0" } }