From 9c5c2ee48b0882ef56e782c6dd784182b8988dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Sun, 2 Jul 2023 17:32:11 +0200 Subject: [PATCH] chore(cli): enable source maps for easier debugging --- .swcrc | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.swcrc b/.swcrc index a1f4516..f0fe391 100644 --- a/.swcrc +++ b/.swcrc @@ -1,4 +1,5 @@ { + "sourceMaps": true, "jsc": { "parser": { "syntax": "typescript", diff --git a/package.json b/package.json index 4c15cae..2e1ee97 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "main": "build/index.js", "bin": "build/index.js", "scripts": { - "start": "node build/index.js", + "start": "node --enable-source-maps build/index.js", "build": "rimraf ./build && swc ./cli --out-dir ./build", "build:dev": "swc ./src --out-dir ./build --watch", "build:typescript": "tsc",