Skip to content

Commit

Permalink
chore: enable source maps for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed Jul 2, 2023
1 parent 290bcbc commit 5de4aa3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"sourceMaps": true,
"jsc": {
"parser": {
"syntax": "typescript",
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
},
"files": [
"build",
"!**/*.test.js"
"!**/*.test.js",
"!**/*.map"
],
"main": "build/index.js",
"bin": {
Expand All @@ -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",
Expand Down

0 comments on commit 5de4aa3

Please sign in to comment.