Skip to content

Commit 13668b5

Browse files
committed
chore: Use swc with ts-node
1 parent 0224c4c commit 13668b5

File tree

3 files changed

+137
-0
lines changed

3 files changed

+137
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"@evilmartians/lefthook": "1.8.2",
88
"@ffflorian/eslint-config": "0.10.3",
99
"@ffflorian/prettier-config": "0.3.3",
10+
"@swc/core": "1.9.3",
1011
"@types/babel__core": "7.20.4",
1112
"@types/eslint": "^8",
1213
"@types/node": "~22",

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
"strict": true,
1616
"strictFunctionTypes": true,
1717
"target": "ES2018"
18+
},
19+
"ts-node": {
20+
"swc": true
1821
}
1922
}

yarn.lock

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2783,6 +2783,138 @@ __metadata:
27832783
languageName: node
27842784
linkType: hard
27852785

2786+
"@swc/core-darwin-arm64@npm:1.9.3":
2787+
version: 1.9.3
2788+
resolution: "@swc/core-darwin-arm64@npm:1.9.3"
2789+
conditions: os=darwin & cpu=arm64
2790+
languageName: node
2791+
linkType: hard
2792+
2793+
"@swc/core-darwin-x64@npm:1.9.3":
2794+
version: 1.9.3
2795+
resolution: "@swc/core-darwin-x64@npm:1.9.3"
2796+
conditions: os=darwin & cpu=x64
2797+
languageName: node
2798+
linkType: hard
2799+
2800+
"@swc/core-linux-arm-gnueabihf@npm:1.9.3":
2801+
version: 1.9.3
2802+
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.9.3"
2803+
conditions: os=linux & cpu=arm
2804+
languageName: node
2805+
linkType: hard
2806+
2807+
"@swc/core-linux-arm64-gnu@npm:1.9.3":
2808+
version: 1.9.3
2809+
resolution: "@swc/core-linux-arm64-gnu@npm:1.9.3"
2810+
conditions: os=linux & cpu=arm64 & libc=glibc
2811+
languageName: node
2812+
linkType: hard
2813+
2814+
"@swc/core-linux-arm64-musl@npm:1.9.3":
2815+
version: 1.9.3
2816+
resolution: "@swc/core-linux-arm64-musl@npm:1.9.3"
2817+
conditions: os=linux & cpu=arm64 & libc=musl
2818+
languageName: node
2819+
linkType: hard
2820+
2821+
"@swc/core-linux-x64-gnu@npm:1.9.3":
2822+
version: 1.9.3
2823+
resolution: "@swc/core-linux-x64-gnu@npm:1.9.3"
2824+
conditions: os=linux & cpu=x64 & libc=glibc
2825+
languageName: node
2826+
linkType: hard
2827+
2828+
"@swc/core-linux-x64-musl@npm:1.9.3":
2829+
version: 1.9.3
2830+
resolution: "@swc/core-linux-x64-musl@npm:1.9.3"
2831+
conditions: os=linux & cpu=x64 & libc=musl
2832+
languageName: node
2833+
linkType: hard
2834+
2835+
"@swc/core-win32-arm64-msvc@npm:1.9.3":
2836+
version: 1.9.3
2837+
resolution: "@swc/core-win32-arm64-msvc@npm:1.9.3"
2838+
conditions: os=win32 & cpu=arm64
2839+
languageName: node
2840+
linkType: hard
2841+
2842+
"@swc/core-win32-ia32-msvc@npm:1.9.3":
2843+
version: 1.9.3
2844+
resolution: "@swc/core-win32-ia32-msvc@npm:1.9.3"
2845+
conditions: os=win32 & cpu=ia32
2846+
languageName: node
2847+
linkType: hard
2848+
2849+
"@swc/core-win32-x64-msvc@npm:1.9.3":
2850+
version: 1.9.3
2851+
resolution: "@swc/core-win32-x64-msvc@npm:1.9.3"
2852+
conditions: os=win32 & cpu=x64
2853+
languageName: node
2854+
linkType: hard
2855+
2856+
"@swc/core@npm:1.9.3":
2857+
version: 1.9.3
2858+
resolution: "@swc/core@npm:1.9.3"
2859+
dependencies:
2860+
"@swc/core-darwin-arm64": "npm:1.9.3"
2861+
"@swc/core-darwin-x64": "npm:1.9.3"
2862+
"@swc/core-linux-arm-gnueabihf": "npm:1.9.3"
2863+
"@swc/core-linux-arm64-gnu": "npm:1.9.3"
2864+
"@swc/core-linux-arm64-musl": "npm:1.9.3"
2865+
"@swc/core-linux-x64-gnu": "npm:1.9.3"
2866+
"@swc/core-linux-x64-musl": "npm:1.9.3"
2867+
"@swc/core-win32-arm64-msvc": "npm:1.9.3"
2868+
"@swc/core-win32-ia32-msvc": "npm:1.9.3"
2869+
"@swc/core-win32-x64-msvc": "npm:1.9.3"
2870+
"@swc/counter": "npm:^0.1.3"
2871+
"@swc/types": "npm:^0.1.17"
2872+
peerDependencies:
2873+
"@swc/helpers": "*"
2874+
dependenciesMeta:
2875+
"@swc/core-darwin-arm64":
2876+
optional: true
2877+
"@swc/core-darwin-x64":
2878+
optional: true
2879+
"@swc/core-linux-arm-gnueabihf":
2880+
optional: true
2881+
"@swc/core-linux-arm64-gnu":
2882+
optional: true
2883+
"@swc/core-linux-arm64-musl":
2884+
optional: true
2885+
"@swc/core-linux-x64-gnu":
2886+
optional: true
2887+
"@swc/core-linux-x64-musl":
2888+
optional: true
2889+
"@swc/core-win32-arm64-msvc":
2890+
optional: true
2891+
"@swc/core-win32-ia32-msvc":
2892+
optional: true
2893+
"@swc/core-win32-x64-msvc":
2894+
optional: true
2895+
peerDependenciesMeta:
2896+
"@swc/helpers":
2897+
optional: true
2898+
checksum: 10c0/a9507a5be580518d51cf7f41821a89e1044be6f72930efbdf3877366c27e9ff1dbca3e1a7f18698679f8c345b6698f43cd80d7dfa24ba30dcab493de9b7a336e
2899+
languageName: node
2900+
linkType: hard
2901+
2902+
"@swc/counter@npm:^0.1.3":
2903+
version: 0.1.3
2904+
resolution: "@swc/counter@npm:0.1.3"
2905+
checksum: 10c0/8424f60f6bf8694cfd2a9bca45845bce29f26105cda8cf19cdb9fd3e78dc6338699e4db77a89ae449260bafa1cc6bec307e81e7fb96dbf7dcfce0eea55151356
2906+
languageName: node
2907+
linkType: hard
2908+
2909+
"@swc/types@npm:^0.1.17":
2910+
version: 0.1.17
2911+
resolution: "@swc/types@npm:0.1.17"
2912+
dependencies:
2913+
"@swc/counter": "npm:^0.1.3"
2914+
checksum: 10c0/29f5c8933a16042956f1adb7383e836ed7646cbf679826e78b53fdd0c08e8572cb42152e527b6b530a9bd1052d33d0972f90f589761ccd252c12652c9b7a72fc
2915+
languageName: node
2916+
linkType: hard
2917+
27862918
"@tokenizer/token@npm:^0.3.0":
27872919
version: 0.3.0
27882920
resolution: "@tokenizer/token@npm:0.3.0"
@@ -9263,6 +9395,7 @@ __metadata:
92639395
"@evilmartians/lefthook": "npm:1.8.2"
92649396
"@ffflorian/eslint-config": "npm:0.10.3"
92659397
"@ffflorian/prettier-config": "npm:0.3.3"
9398+
"@swc/core": "npm:1.9.3"
92669399
"@types/babel__core": "npm:7.20.4"
92679400
"@types/eslint": "npm:^8"
92689401
"@types/node": "npm:~22"

0 commit comments

Comments
 (0)