From c7bf82135b783a829e3f2bf1221a4c2b5c7caeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Sun, 2 Jul 2023 15:23:04 +0200 Subject: [PATCH] chore: enable source maps for easier debugging --- .swcrc | 1 + package.json | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.swcrc b/.swcrc index d0e4dce..728e477 100644 --- a/.swcrc +++ b/.swcrc @@ -1,4 +1,5 @@ { + "sourceMaps": true, "jsc": { "parser": { "syntax": "typescript", diff --git a/package.json b/package.json index 3281ee6..58e02bd 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "bin": "build/index.js", "files": [ "build", - "!**/*.test.js" + "!**/*.test.js", + "!**/*.map" ], "publishConfig": { "access": "public", @@ -37,13 +38,14 @@ "scripts": { "build": "rimraf ./build && swc ./src --out-dir ./build", "build:typescript": "tsc", + "start": "node --enable-source-maps build/index.js", "lint:commit": "commitlint", "lint:editorconfig": "editorconfig-checker", "lint:markdown": "markdownlint-cli2", "lint:eslint": "eslint . --ignore-path .gitignore", "lint:prettier": "prettier . --check --ignore-path .gitignore", "lint:staged": "lint-staged", - "test": "node --test build/", + "test": "node --enable-source-maps --test build/", "release": "semantic-release" }, "dependencies": {