fix: translation bundler logic (#22459)

* fix logic in translationBundler

* remove tsnode
This commit is contained in:
Benny Joo
2025-07-14 02:09:23 +00:00
committed by GitHub
parent dfe997dce2
commit 66397a6626
3 changed files with 2 additions and 42 deletions
-1
View File
@@ -108,7 +108,6 @@
"prettier": "^2.8.6",
"prismock": "^1.33.4",
"resize-observer-polyfill": "^1.5.1",
"ts-node": "^10.9.2",
"tsc-absolute": "^1.0.0",
"typescript": "^5.7.2",
"vitest": "^2.1.1",
+2 -2
View File
@@ -5,7 +5,7 @@ import path from "path";
import { CALCOM_VERSION } from "@calcom/lib/constants";
function findMonorepoRoot(): string {
let currentDir = __dirname;
let currentDir = process.cwd();
while (currentDir !== path.dirname(currentDir)) {
try {
const packageJsonPath = path.join(currentDir, "package.json");
@@ -20,7 +20,7 @@ function findMonorepoRoot(): string {
currentDir = path.dirname(currentDir);
}
throw new Error("Could not find monorepo root - repository structure may be corrupted");
return process.cwd();
}
const LOCALES_PATH = path.join(findMonorepoRoot(), "packages/lib/server/locales");
-39
View File
@@ -21704,7 +21704,6 @@ __metadata:
prettier: ^2.8.6
prismock: ^1.33.4
resize-observer-polyfill: ^1.5.1
ts-node: ^10.9.2
tsc-absolute: ^1.0.0
turbo: ^1.10.1
typescript: ^5.7.2
@@ -44896,44 +44895,6 @@ __metadata:
languageName: node
linkType: hard
"ts-node@npm:^10.9.2":
version: 10.9.2
resolution: "ts-node@npm:10.9.2"
dependencies:
"@cspotcode/source-map-support": ^0.8.0
"@tsconfig/node10": ^1.0.7
"@tsconfig/node12": ^1.0.7
"@tsconfig/node14": ^1.0.0
"@tsconfig/node16": ^1.0.2
acorn: ^8.4.1
acorn-walk: ^8.1.1
arg: ^4.1.0
create-require: ^1.1.0
diff: ^4.0.1
make-error: ^1.1.1
v8-compile-cache-lib: ^3.0.1
yn: 3.1.1
peerDependencies:
"@swc/core": ">=1.2.50"
"@swc/wasm": ">=1.2.50"
"@types/node": "*"
typescript: ">=2.7"
peerDependenciesMeta:
"@swc/core":
optional: true
"@swc/wasm":
optional: true
bin:
ts-node: dist/bin.js
ts-node-cwd: dist/bin-cwd.js
ts-node-esm: dist/bin-esm.js
ts-node-script: dist/bin-script.js
ts-node-transpile-only: dist/bin-transpile.js
ts-script: dist/bin-script-deprecated.js
checksum: fde256c9073969e234526e2cfead42591b9a2aec5222bac154b0de2fa9e4ceb30efcd717ee8bc785a56f3a119bdd5aa27b333d9dbec94ed254bd26f8944c67ac
languageName: node
linkType: hard
"ts-pattern@npm:4.3.0":
version: 4.3.0
resolution: "ts-pattern@npm:4.3.0"