Skip to content

Commit 95cbb4c

Browse files
build: add source-maps to debug build (#682)
1 parent 9eb5235 commit 95cbb4c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ module.exports = {
88
plugins: [
99
'sonarjs',
1010
],
11+
ignorePatterns: [
12+
'dist/**'
13+
],
1114
env: {
1215
node: true,
1316
},

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@
6767
"simple-git": "1.65.0"
6868
},
6969
"scripts": {
70-
"build": "babel src --out-dir dist && echo '\n\\033[0;34m[+] \\033[0;32mBuild done\\033[0m'",
71-
"build:watch": "onchange 'src/**/*.js' 'node_modules/forest-express/dist/*' --no-exclude -i -- yarn build",
70+
"build": "babel src --out-dir dist",
71+
"build:watch": "onchange 'src/**/*.js' 'node_modules/forest-express/dist/*' --no-exclude -i -- babel --source-maps inline --out-dir dist src",
7272
"lint": "./node_modules/eslint/bin/eslint.js .eslint-bin src test",
7373
"test": "jest",
7474
"test:coverage": "jest --coverage"

0 commit comments

Comments
 (0)