From 4c99ab0499831e9bbbac34246d96163427e78464 Mon Sep 17 00:00:00 2001 From: Sergei Zharinov Date: Sun, 2 Jul 2023 00:29:10 +0300 Subject: [PATCH] feat: Use `swc` for running scripts (#23080) --- package.json | 1 + tsconfig.json | 6 ++++- yarn.lock | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c4e9154e4fd84c..e050b30b834005 100644 --- a/package.json +++ b/package.json @@ -257,6 +257,7 @@ "@openpgp/web-stream-tools": "0.0.13", "@renovate/eslint-plugin": "file:./tools/eslint", "@semantic-release/exec": "6.0.3", + "@swc/core": "1.3.67", "@types/auth-header": "1.0.2", "@types/aws4": "1.11.3", "@types/breejs__later": "4.1.2", diff --git a/tsconfig.json b/tsconfig.json index 3739002e423b01..913c8bcc177bec 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -33,5 +33,9 @@ "config.js", "tmp" ], - "ts-node": { "transpileOnly": true, "esm": true } + "ts-node": { + "transpileOnly": true, + "esm": false, + "swc": true + } } diff --git a/yarn.lock b/yarn.lock index bf4d7eedd6b79c..c6fdc41d92233c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2910,6 +2910,72 @@ dependencies: tslib "^2.5.0" +"@swc/core-darwin-arm64@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-darwin-arm64/-/core-darwin-arm64-1.3.67.tgz#8076dcd75862b92a7987a8da5a24986ab559d793" + integrity sha512-zCT2mCkOBVNf5uJDcQ3A9KDoO1OEaGdfjsRTZTo7sejDd9AXLfJg+xgyCBBrK2jNS/uWcT21IvSv3LqKp4K8pA== + +"@swc/core-darwin-x64@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-darwin-x64/-/core-darwin-x64-1.3.67.tgz#49da279b06232a388e9c9179db1cbff81d3dee18" + integrity sha512-hXTVsfTatPEec5gFVyjGj3NccKZsYj/OXyHn6XA+l3Q76lZzGm2ISHdku//XNwXu8OmJ0HhS7LPsC4XXwxXQhg== + +"@swc/core-linux-arm-gnueabihf@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.3.67.tgz#668645ac62ea7beb4319d177f43cdefb0326cd90" + integrity sha512-l8AKL0RkDL5FRTeWMmjoz9zvAc37amxC+0rheaNwE+gZya7ObyNjnIYz5FwN+3y+z6JFU7LS2x/5f6iwruv6pg== + +"@swc/core-linux-arm64-gnu@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.3.67.tgz#709bccc5ced37b64ab5ae479bf73fc2ab5ef0b48" + integrity sha512-S8zOB1AXEpb7kmtgMaFNeLAj01VOky4B0RNZ+uJWigdrDiFT67FeZzNHUNmNSOU0QM79G+Lie/xD/beqEw0vDg== + +"@swc/core-linux-arm64-musl@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.3.67.tgz#9187378e17200b1ffb3d06b78c4a33f85dd12efb" + integrity sha512-Fex8J8ASrt13pmOr2xWh41tEeKWwXYGk3sV8L/aGHiYtIJEUi2f+RtMx3jp7LIdOD8pQptor7i5WBlfR9jhp8A== + +"@swc/core-linux-x64-gnu@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.3.67.tgz#bcdaf46c430bc85a59ae9b38ab9bd540aa1fbd2d" + integrity sha512-9bz9/bMphrv5vDg0os/d8ve0QgFpDzJgZgHUaHiGwcmfnlgdOSAaYJLIvWdcGTjZuQeV4L0m+iru357D9TXEzA== + +"@swc/core-linux-x64-musl@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.3.67.tgz#fbb63517cd72eaa3250726a4209c179ada520a57" + integrity sha512-ED0H6oLvQmhgo9zs8usmEA/lcZPGTu7K9og9K871b7HhHX0h/R+Xg2pb5KD7S/GyUHpfuopxjVROm+h6X1jMUA== + +"@swc/core-win32-arm64-msvc@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.3.67.tgz#dadce08f9245c57e9c54c1bbcc815c4bd2077fba" + integrity sha512-J1yFDLgPFeRtA8t5E159OXX+ww1gbkFg70yr4OP7EsOkOD1uMkuTf9yK/woHfsaVJlUYjJHzw7MkUIEgQBucqQ== + +"@swc/core-win32-ia32-msvc@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.3.67.tgz#be026a3a389e64c24fe67a329c04eccf744ac45e" + integrity sha512-bK11/KtasewqHxzkjKUBXRE9MSAidbZCxrgJUd49bItG2N/DHxkwMYu8Xkh5VDHdTYWv/2idYtf/VM9Yi+53qw== + +"@swc/core-win32-x64-msvc@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.3.67.tgz#6fe2f3854d91b58f6e0b00f99366cfd84334b2ea" + integrity sha512-GxzUU3+NA3cPcYxCxtfSQIS2ySD7Z8IZmKTVaWA9GOUQbKLyCE8H5js31u39+0op/1gNgxOgYFDoj2lUyvLCqw== + +"@swc/core@1.3.67": + version "1.3.67" + resolved "https://registry.npmjs.org/@swc/core/-/core-1.3.67.tgz#e0eb33285abb07cb0fd097d4190096977971da1e" + integrity sha512-9DROjzfAEt0xt0CDkOYsWpkUPyne8fl5ggWGon049678BOM7p0R0dmaalZGAsKatG5vYP1IWSKWsKhJIubDCsQ== + optionalDependencies: + "@swc/core-darwin-arm64" "1.3.67" + "@swc/core-darwin-x64" "1.3.67" + "@swc/core-linux-arm-gnueabihf" "1.3.67" + "@swc/core-linux-arm64-gnu" "1.3.67" + "@swc/core-linux-arm64-musl" "1.3.67" + "@swc/core-linux-x64-gnu" "1.3.67" + "@swc/core-linux-x64-musl" "1.3.67" + "@swc/core-win32-arm64-msvc" "1.3.67" + "@swc/core-win32-ia32-msvc" "1.3.67" + "@swc/core-win32-x64-msvc" "1.3.67" + "@szmarczak/http-timer@^4.0.5": version "4.0.6" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-4.0.6.tgz#b4a914bb62e7c272d4e5989fe4440f812ab1d807"