diff --git a/.gitignore b/.gitignore index a7c99ac..d79a1d5 100644 --- a/.gitignore +++ b/.gitignore @@ -36,7 +36,7 @@ speed-measure-plugin*.json npm-debug.log yarn-error.log testem.log -/typings +./**/typings # System Files .DS_Store diff --git a/backend/nodemon.json b/backend/nodemon.json index 4037c8b..31d5d3e 100644 --- a/backend/nodemon.json +++ b/backend/nodemon.json @@ -2,11 +2,11 @@ "env": { "NODE_ENV": "development" }, - "watch": ["openapi/openvidu-meet-api.yaml", "src", "../types/src"], + "watch": ["openapi/openvidu-meet-api.yaml", "src", "../typings/src"], "ext": "js,json,ts", "ignore": ["node_modules", "dist", "src/typings", "public"], "exec": "node --experimental-specifier-resolution=node --loader ts-node/esm ./src/server.ts", "events": { - "restart": "npm run types:sync" + "restart": "npm run typings:sync" } } diff --git a/backend/package.json b/backend/package.json index 0938000..3f1098e 100644 --- a/backend/package.json +++ b/backend/package.json @@ -33,7 +33,7 @@ "start:dev": "nodemon", "package:build": "npm run build:prod && npm pack", "lib:sync-pro": "npm run package:build && cp openvidu-meet-server-*.tgz ../../openvidu-meet-pro/backend", - "types:sync": "npm run sync-ce --prefix ../types", + "typings:sync": "npm run sync-ce --prefix ../typings", "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", "lint:fix": "eslint src --fix", diff --git a/frontend/package.json b/frontend/package.json index d903d99..61a922b 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,7 +6,7 @@ "start:dev": "npx ng serve --configuration development --port=5080 --host=0.0.0.0", "build:dev": "npx ng build --configuration development --watch", "build:prod": "func() { ./node_modules/@angular/cli/bin/ng.js build --configuration production --base-href=\"${1:-/}\"; }; func", - "types:sync": "npm run sync-ce --prefix ../types", + "typings:sync": "npm run sync-ce --prefix ../typings", "sync:backend": "npx ng build --configuration production --output-path ../backend/dist/public/", "e2e:run-all": "npx mocha --recursive --timeout 30000 ./tests/e2e/**/*.test.ts", "e2e:run-routes": "npx mocha --recursive --timeout 30000 ./tests/e2e/routes.test.ts", diff --git a/openvidu-meet.code-workspace b/openvidu-meet.code-workspace index e1373cd..5493da0 100644 --- a/openvidu-meet.code-workspace +++ b/openvidu-meet.code-workspace @@ -4,8 +4,8 @@ "path": "." }, { - "name": "types", - "path": "types" + "name": "typings", + "path": "typings" }, { "name": "backend", diff --git a/types/README.md b/typings/README.md similarity index 100% rename from types/README.md rename to typings/README.md diff --git a/types/package-lock.json b/typings/package-lock.json similarity index 100% rename from types/package-lock.json rename to typings/package-lock.json diff --git a/types/package.json b/typings/package.json similarity index 100% rename from types/package.json rename to typings/package.json diff --git a/types/src/global-preferences.ts b/typings/src/global-preferences.ts similarity index 100% rename from types/src/global-preferences.ts rename to typings/src/global-preferences.ts diff --git a/types/src/index.ts b/typings/src/index.ts similarity index 100% rename from types/src/index.ts rename to typings/src/index.ts diff --git a/types/src/participant.ts b/typings/src/participant.ts similarity index 100% rename from types/src/participant.ts rename to typings/src/participant.ts diff --git a/types/src/permissions/livekit-permissions.ts b/typings/src/permissions/livekit-permissions.ts similarity index 100% rename from types/src/permissions/livekit-permissions.ts rename to typings/src/permissions/livekit-permissions.ts diff --git a/types/src/permissions/openvidu-permissions.ts b/typings/src/permissions/openvidu-permissions.ts similarity index 100% rename from types/src/permissions/openvidu-permissions.ts rename to typings/src/permissions/openvidu-permissions.ts diff --git a/types/src/room-preferences.ts b/typings/src/room-preferences.ts similarity index 100% rename from types/src/room-preferences.ts rename to typings/src/room-preferences.ts diff --git a/types/src/room.ts b/typings/src/room.ts similarity index 100% rename from types/src/room.ts rename to typings/src/room.ts diff --git a/types/src/token.ts b/typings/src/token.ts similarity index 100% rename from types/src/token.ts rename to typings/src/token.ts diff --git a/types/sync-types.sh b/typings/sync-types.sh similarity index 97% rename from types/sync-types.sh rename to typings/sync-types.sh index 112f1da..bb01db4 100755 --- a/types/sync-types.sh +++ b/typings/sync-types.sh @@ -1,7 +1,7 @@ #!/bin/sh HEADER_KEY="THIS HEADER IS AUTOGENERATED. DO NOT MODIFY MANUALLY." -HEADER="/** $HEADER_KEY For any changes, please update the '/openvidu-meet/types' directory. */" +HEADER="/** $HEADER_KEY For any changes, please update the '/openvidu-meet/typings' directory. */" SOURCE_DIR="src" FRONTEND_DIR="../frontend/projects/shared-meet-components/src/lib/typings/ce" diff --git a/types/tsconfig.json b/typings/tsconfig.json similarity index 100% rename from types/tsconfig.json rename to typings/tsconfig.json