Skip to content

Commit 20d0abb

Browse files
committed
Move ts-node --swc flag to TSConfig
1 parent d7cdcef commit 20d0abb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"snapshots:update": "jest -u",
2323
"storybook": "(adb reverse tcp:7007 tcp:7007 || true) && start-storybook -c storybook -p 7007",
2424
"get-stories": "sb-rn-get-stories --config-path=./.storybook",
25-
"server": "ts-node --swc node.ts",
25+
"server": "ts-node node.ts",
2626
"deno": "deno run --allow-net deno.ts",
2727
"postinstall": "patch-package",
2828
"rename": "yarn react-native-rename",

β€Žtsconfig.jsonβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,8 @@
7070
"jest",
7171
"__tests__",
7272
"src"
73-
]
73+
],
74+
"ts-node": {
75+
"swc": true
76+
}
7477
}

0 commit comments

Comments
Β (0)