From 2292c95814fd20a880e77ad1e99130a442d6c2a2 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Thu, 28 Nov 2024 17:23:49 +0100 Subject: [PATCH] Actually downgrade TypeScript (#902) --- .changeset/few-bananas-approve.md | 5 +++++ packages/javascript/package.json | 2 +- packages/javascript/tsconfig.json | 11 ++++++----- pnpm-lock.yaml | 16 ++++++++-------- 4 files changed, 20 insertions(+), 14 deletions(-) create mode 100644 .changeset/few-bananas-approve.md diff --git a/.changeset/few-bananas-approve.md b/.changeset/few-bananas-approve.md new file mode 100644 index 00000000..a9f23fc7 --- /dev/null +++ b/.changeset/few-bananas-approve.md @@ -0,0 +1,5 @@ +--- +"@livekit/protocol": patch +--- + +Actually downgrade TypeScript diff --git a/packages/javascript/package.json b/packages/javascript/package.json index af40db6f..22af728f 100644 --- a/packages/javascript/package.json +++ b/packages/javascript/package.json @@ -34,7 +34,7 @@ "@bufbuild/protoc-gen-es": "^1.10.0", "genversion": "^3.2.0", "tsup": "^8.3.5", - "typescript": "^5.2" + "typescript": "5.2" }, "dependencies": { "@bufbuild/protobuf": "^1.10.0" diff --git a/packages/javascript/tsconfig.json b/packages/javascript/tsconfig.json index 66ecb484..f892db4e 100644 --- a/packages/javascript/tsconfig.json +++ b/packages/javascript/tsconfig.json @@ -1,13 +1,14 @@ { "compilerOptions": { - "target": "es2015", - "module": "es2015", - "moduleResolution": "node", + "lib": ["ES2020"], + "target": "ES2020", + "module": "Node16", + "moduleResolution": "node16", "declaration": true, "declarationMap": true, "skipLibCheck": true, "sourceMap": true, - "outDir": "dist", + "outDir": "dist" }, - "include": ["src/**/*.ts"], + "include": ["src/**/*.ts"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6a521334..66800373 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,10 +32,10 @@ importers: version: 3.2.0 tsup: specifier: ^8.3.5 - version: 8.3.5(typescript@5.7.2) + version: 8.3.5(typescript@5.2.2) typescript: - specifier: ^5.2 - version: 5.7.2 + specifier: '5.2' + version: 5.2.2 packages: @@ -1059,8 +1059,8 @@ packages: engines: {node: '>=4.2.0'} hasBin: true - typescript@5.7.2: - resolution: {integrity: sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==} + typescript@5.2.2: + resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} engines: {node: '>=14.17'} hasBin: true @@ -2039,7 +2039,7 @@ snapshots: ts-interface-checker@0.1.13: {} - tsup@8.3.5(typescript@5.7.2): + tsup@8.3.5(typescript@5.2.2): dependencies: bundle-require: 5.0.0(esbuild@0.24.0) cac: 6.7.14 @@ -2058,7 +2058,7 @@ snapshots: tinyglobby: 0.2.10 tree-kill: 1.2.2 optionalDependencies: - typescript: 5.7.2 + typescript: 5.2.2 transitivePeerDependencies: - jiti - supports-color @@ -2067,7 +2067,7 @@ snapshots: typescript@4.5.2: {} - typescript@5.7.2: {} + typescript@5.2.2: {} universalify@0.1.2: {}