backend: Add uid package and update build scripts

This commit is contained in:
Carlos Santos 2025-03-11 16:16:36 +01:00
parent 0b4d4acf5a
commit 18cec419d1
2 changed files with 4 additions and 2 deletions

View File

@ -27,6 +27,7 @@
"reflect-metadata": "^0.2.2", "reflect-metadata": "^0.2.2",
"swagger-jsdoc": "^6.2.8", "swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.1", "swagger-ui-express": "^5.0.1",
"uid": "^2.0.2",
"winston": "3.14.2", "winston": "3.14.2",
"yamljs": "^0.3.0", "yamljs": "^0.3.0",
"zod": "^3.24.2" "zod": "^3.24.2"
@ -2561,7 +2562,6 @@
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz",
"integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==", "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==",
"dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=8" "node": ">=8"
@ -12099,7 +12099,6 @@
"version": "2.0.2", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz", "resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz",
"integrity": "sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==", "integrity": "sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==",
"dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@lukeed/csprng": "^1.0.0" "@lukeed/csprng": "^1.0.0"

View File

@ -28,10 +28,12 @@
], ],
"scripts": { "scripts": {
"build:prod": "tsc", "build:prod": "tsc",
"postbuild:prod": "cp -r openapi dist/openapi",
"start:prod": "node dist/src/server.js", "start:prod": "node dist/src/server.js",
"start:dev": "nodemon", "start:dev": "nodemon",
"package:build": "npm run build:prod && npm pack", "package:build": "npm run build:prod && npm pack",
"lib:sync-pro": "npm run package:build && cp openvidu-meet-server-*.tgz ../../openvidu-meet-pro/backend", "lib:sync-pro": "npm run package:build && cp openvidu-meet-server-*.tgz ../../openvidu-meet-pro/backend",
"types:sync": "npm run sync-ce --prefix ../types",
"test:embedded-auth-api": "node --experimental-vm-modules node_modules/.bin/jest --forceExit tests/api/embedded/participants.test.ts", "test:embedded-auth-api": "node --experimental-vm-modules node_modules/.bin/jest --forceExit tests/api/embedded/participants.test.ts",
"test:integration-webhooks": "node --experimental-vm-modules node_modules/.bin/jest --forceExit tests/services/openvidu-webhook.service.test.ts", "test:integration-webhooks": "node --experimental-vm-modules node_modules/.bin/jest --forceExit tests/services/openvidu-webhook.service.test.ts",
"lint:fix": "eslint src --fix", "lint:fix": "eslint src --fix",
@ -56,6 +58,7 @@
"reflect-metadata": "^0.2.2", "reflect-metadata": "^0.2.2",
"swagger-jsdoc": "^6.2.8", "swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.1", "swagger-ui-express": "^5.0.1",
"uid": "^2.0.2",
"winston": "3.14.2", "winston": "3.14.2",
"yamljs": "^0.3.0", "yamljs": "^0.3.0",
"zod": "^3.24.2" "zod": "^3.24.2"