From 5de4aa3a066ea12eacf4acef2cfd1233cc8b6330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Sun, 2 Jul 2023 20:00:23 +0200 Subject: [PATCH] chore: enable source maps for easier debugging --- .swcrc | 1 + CONTRIBUTING.md | 2 +- package.json | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) 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/CONTRIBUTING.md b/CONTRIBUTING.md index 64d3f12..54dde60 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,7 +21,7 @@ All work on **Leon** happens directly on [GitHub](https://github.com/leon-ai). B ```sh # Download the source code -git clone https://github.com/leon-ai/leon-cli.git +git clone git@github.com:leon-ai/leon-cli.git # Install npm dependencies npm install diff --git a/package.json b/package.json index 8a84821..7b61faf 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,8 @@ }, "files": [ "build", - "!**/*.test.js" + "!**/*.test.js", + "!**/*.map" ], "main": "build/index.js", "bin": { @@ -47,6 +48,7 @@ "build": "rimraf ./build && swc ./src --out-dir ./build", "build:dev": "swc ./src --out-dir ./build --watch", "build:typescript": "tsc", + "start": "node --enable-source-maps build/index.js", "lint:commit": "commitlint", "lint:editorconfig": "editorconfig-checker", "lint:markdown": "markdownlint-cli2",