fix: Provide calOrigin for organization embeds (#12380)

This commit is contained in:
Hariom Balhara
2023-11-27 10:38:27 -07:00
committed by GitHub
parent ada0ef242b
commit c9b50ffb78
7 changed files with 459 additions and 166 deletions
+3 -4
View File
@@ -104,10 +104,9 @@ function generateFiles() {
* If a file has index.ts or index.tsx, it can be imported after removing the index.ts* part
*/
function getModulePath(path: string, moduleName: string) {
return (
`./${path.replace(/\\/g, "/")}/` +
moduleName.replace(/\/index\.ts|\/index\.tsx/, "").replace(/\.tsx$|\.ts$/, "")
);
return `./${path.replace(/\\/g, "/")}/${moduleName
.replace(/\/index\.ts|\/index\.tsx/, "")
.replace(/\.tsx$|\.ts$/, "")}`;
}
type ImportConfig =