From ba9281cf77d3680bc8c072f9a0973cec9d778ccd Mon Sep 17 00:00:00 2001 From: Aman Agarwal Date: Fri, 12 Aug 2022 21:10:50 +0530 Subject: [PATCH] fix: rts version file moved to src (#15963) --- app/client/cypress/tsconfig.json | 2 +- app/rts/src/server.ts | 2 +- app/rts/src/sockets/events.ts | 2 +- app/rts/src/{constants/version.ts => version.js} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename app/rts/src/{constants/version.ts => version.js} (100%) diff --git a/app/client/cypress/tsconfig.json b/app/client/cypress/tsconfig.json index f1deb7f4eb..1f987bb084 100644 --- a/app/client/cypress/tsconfig.json +++ b/app/client/cypress/tsconfig.json @@ -35,5 +35,5 @@ "noFallthroughCasesInSwitch": true, "types": ["cypress", "node", "cypress-real-events"] }, - "include": ["/**/*.ts"] + "include": ["/**/*.ts", "../../rts/src/version.js"] } diff --git a/app/rts/src/server.ts b/app/rts/src/server.ts index 90a1cb36db..9c35c2ce30 100644 --- a/app/rts/src/server.ts +++ b/app/rts/src/server.ts @@ -3,7 +3,7 @@ import path from "path"; import express from "express"; import { Server } from "socket.io"; import log, { LogLevelDesc } from "loglevel"; -import { VERSION as buildVersion } from "./constants/version"; // release version of the api +import { VERSION as buildVersion } from "./version"; // release version of the api import { initializeSockets } from "./sockets"; const RTS_BASE_PATH = "/rts"; diff --git a/app/rts/src/sockets/events.ts b/app/rts/src/sockets/events.ts index 61a24a31fa..032c22301d 100644 --- a/app/rts/src/sockets/events.ts +++ b/app/rts/src/sockets/events.ts @@ -8,7 +8,7 @@ import { PAGE_ROOM_PREFIX, ROOT_NAMESPACE, } from "../constants/socket"; -import { VERSION as buildVersion } from "../constants/version"; +import { VERSION as buildVersion } from "../version"; import { subscribeToEditEvents, onAppSocketConnected, diff --git a/app/rts/src/constants/version.ts b/app/rts/src/version.js similarity index 100% rename from app/rts/src/constants/version.ts rename to app/rts/src/version.js